Home
last modified time | relevance | path

Searched refs:grContext (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/libs/hwui/tests/unit/
DCacheManagerTests.cpp27 static size_t getCacheUsage(GrContext* grContext) { in getCacheUsage() argument
29 grContext->getResourceCacheUsage(nullptr, &cacheUsage); in getCacheUsage()
35 GrContext* grContext = renderThread.getGrContext(); in RENDERTHREAD_SKIA_PIPELINE_TEST() local
36 ASSERT_TRUE(grContext != nullptr); in RENDERTHREAD_SKIA_PIPELINE_TEST()
41 while (getCacheUsage(grContext) <= renderThread.cacheManager().getBackgroundCacheSize()) { in RENDERTHREAD_SKIA_PIPELINE_TEST()
43 sk_sp<SkSurface> surface = SkSurface::MakeRenderTarget(grContext, SkBudgeted::kYes, info); in RENDERTHREAD_SKIA_PIPELINE_TEST()
46 grContext->flush(); in RENDERTHREAD_SKIA_PIPELINE_TEST()
55 ASSERT_TRUE(0 == grContext->getResourceCachePurgeableBytes()); in RENDERTHREAD_SKIA_PIPELINE_TEST()
64 const size_t purgeableBytes = grContext->getResourceCachePurgeableBytes(); in RENDERTHREAD_SKIA_PIPELINE_TEST()
69 ASSERT_TRUE(0 < grContext->getResourceCachePurgeableBytes()); in RENDERTHREAD_SKIA_PIPELINE_TEST()
[all …]
/frameworks/base/libs/hwui/pipeline/skia/
DSkiaOpenGLReadback.cpp43 sk_sp<GrContext> grContext = sk_ref_sp(mRenderThread.getGrContext()); in copyImageInto() local
47 grContext.reset(GrContext::Create(GrBackend::kOpenGL_GrBackend, in copyImageInto()
50 grContext->resetContext(); in copyImageInto()
60 sk_sp<SkImage> image(SkImage::MakeFromAdoptedTexture(grContext.get(), backendTexture, in copyImageInto()
102 grContext.get(), SkBudgeted::kYes, bitmap->info()); in copyImageInto()
DSkiaPipeline.cpp188 auto grContext = mRenderThread.getGrContext(); in renderVectorDrawableCache() local
189 atlas->prepareForDraw(grContext); in renderVectorDrawableCache()
191 vd->updateCache(atlas, grContext); in renderVectorDrawableCache()
193 grContext->flush(); in renderVectorDrawableCache()
DSkiaOpenGLPipeline.cpp262 sk_sp<GrContext> grContext = sk_ref_sp(renderThread.getGrContext()); in allocateHardwareBitmap() local
279 isSupported = grContext->caps()->isConfigTexturable(kRGBA_half_GrPixelConfig); in allocateHardwareBitmap()
384 grContext->resetContext(kTextureBinding_GrGLBackendState); in allocateHardwareBitmap()
/frameworks/base/libs/hwui/renderthread/
DCacheManager.h63 void reset(GrContext* grContext);