Home
last modified time | relevance | path

Searched refs:maxResourceBytes (Results 1 – 12 of 12) sorted by relevance

/external/skia/src/gpu/vk/
DGrVkSecondaryCBDrawContext.cpp92 size_t maxResourceBytes = direct->getResourceCacheLimit(); in characterize() local
108 maxResourceBytes, in characterize()
144 size_t maxResourceBytes = direct->getResourceCacheLimit(); in isCompatible() local
165 characterization.cacheMaxResourceBytes() <= maxResourceBytes && in isCompatible()
/external/skia/bench/
DDDLRecorderBench.cpp18 size_t maxResourceBytes = direct->getResourceCacheLimit(); in create_characterization() local
36 maxResourceBytes, ii, backendFormat, 1, in create_characterization()
/external/skqp/src/image/
DSkSurface_Gpu.cpp170 size_t maxResourceBytes; in onCharacterize() local
171 ctx->getResourceCacheLimits(&maxResourceCount, &maxResourceBytes); in onCharacterize()
190 characterization->set(ctx->threadSafeProxy(), maxResourceBytes, ii, rtc->origin(), in onCharacterize()
213 size_t maxResourceBytes; in isCompatible() local
214 ctx->getResourceCacheLimits(&maxResourceCount, &maxResourceBytes); in isCompatible()
243 characterization.cacheMaxResourceBytes() <= maxResourceBytes && in isCompatible()
/external/skqp/tests/
DDeferredDisplayListTest.cpp330 size_t maxResourceBytes; in createCharacterization() local
331 context->getResourceCacheLimits(&maxResourceCount, &maxResourceBytes); in createCharacterization()
343 maxResourceBytes, ii, backendFormat, fSampleCount, in createCharacterization()
587 size_t maxResourceBytes; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
588 context->getResourceCacheLimits(&maxResourceCount, &maxResourceBytes); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
590 context->setResourceCacheLimits(maxResourceCount, maxResourceBytes/2); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
597 context->setResourceCacheLimits(2*maxResourceCount, maxResourceBytes); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
601 context->setResourceCacheLimits(maxResourceCount, 2*maxResourceBytes); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
605 context->setResourceCacheLimits(maxResourceCount, maxResourceBytes); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
/external/skia/tests/
DDeferredDisplayListTest.cpp186 size_t maxResourceBytes = dContext->getResourceCacheLimit(); in createCharacterization() local
203 maxResourceBytes, ii, backendFormat, fSampleCount, in createCharacterization()
436 size_t maxResourceBytes = dContext->getResourceCacheLimit(); in DDLSurfaceCharacterizationTestImpl() local
438 dContext->setResourceCacheLimit(maxResourceBytes/2); in DDLSurfaceCharacterizationTestImpl()
445 context->setResourceCacheLimits(2*maxResourceCount, maxResourceBytes); in DDLSurfaceCharacterizationTestImpl()
449 context->setResourceCacheLimits(maxResourceCount, 2*maxResourceBytes); in DDLSurfaceCharacterizationTestImpl()
453 context->setResourceCacheLimits(maxResourceCount, maxResourceBytes); in DDLSurfaceCharacterizationTestImpl()
926 size_t maxResourceBytes = dContext->getResourceCacheLimit(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
930 [proxy, reporter, maxResourceBytes](const GrBackendFormat& backendFormat, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
943 maxResourceBytes, ii, backendFormat, 1, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
/external/skqp/include/gpu/
DGrContext.h136 void getResourceCacheLimits(int* maxResources, size_t* maxResourceBytes) const;
162 void setResourceCacheLimits(int maxResources, size_t maxResourceBytes);
/external/skia/src/gpu/
DGrDirectContext.cpp278 void GrDirectContext::getResourceCacheLimits(int* maxResources, size_t* maxResourceBytes) const { in getResourceCacheLimits()
283 if (maxResourceBytes) { in getResourceCacheLimits()
284 *maxResourceBytes = this->getResourceCacheLimit(); in getResourceCacheLimits()
293 void GrDirectContext::setResourceCacheLimits(int unused, size_t maxResourceBytes) { in setResourceCacheLimits() argument
295 this->setResourceCacheLimit(maxResourceBytes); in setResourceCacheLimits()
298 void GrDirectContext::setResourceCacheLimit(size_t maxResourceBytes) { in setResourceCacheLimit() argument
300 fResourceCache->setLimit(maxResourceBytes); in setResourceCacheLimit()
/external/skia/fuzz/
DFuzzCreateDDL.cpp145 size_t maxResourceBytes = dContext->getResourceCacheLimit(); in make_characterization() local
147 maxResourceBytes, ii, backendFormat, kSampleCount, in make_characterization()
/external/skia/include/gpu/
DGrDirectContext.h206 void getResourceCacheLimits(int* maxResources, size_t* maxResourceBytes) const;
236 void setResourceCacheLimits(int maxResources, size_t maxResourceBytes);
245 void setResourceCacheLimit(size_t maxResourceBytes);
/external/skia/src/image/
DSkSurface_Gpu.cpp241 size_t maxResourceBytes = direct->getResourceCacheLimit(); in onCharacterize() local
265 maxResourceBytes, in onCharacterize()
337 size_t maxResourceBytes = direct->getResourceCacheLimit(); in onIsCompatible() local
374 characterization.cacheMaxResourceBytes() <= maxResourceBytes && in onIsCompatible()
/external/skqp/src/gpu/
DGrContext.cpp1108 void GrContext::getResourceCacheLimits(int* maxResources, size_t* maxResourceBytes) const { in getResourceCacheLimits()
1113 if (maxResourceBytes) { in getResourceCacheLimits()
1114 *maxResourceBytes = fResourceCache->getMaxResourceBytes(); in getResourceCacheLimits()
1118 void GrContext::setResourceCacheLimits(int maxResources, size_t maxResourceBytes) { in setResourceCacheLimits() argument
1120 fResourceCache->setLimits(maxResources, maxResourceBytes); in setResourceCacheLimits()
/external/skia/modules/canvaskit/
Dcanvaskit_bindings.cpp808 optional_override([](GrDirectContext& self, size_t maxResourceBytes)->void { in EMSCRIPTEN_BINDINGS() argument
812 self.setResourceCacheLimits(maxResources, maxResourceBytes); in EMSCRIPTEN_BINDINGS()