Home
last modified time | relevance | path

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

/frameworks/base/libs/hwui/tests/unit/
DCacheManagerTests.cpp29 static size_t getCacheUsage(GrContext* grContext) { in getCacheUsage() argument
31 grContext->getResourceCacheUsage(nullptr, &cacheUsage); in getCacheUsage()
37 GrContext* grContext = renderThread.getGrContext(); in RENDERTHREAD_SKIA_PIPELINE_TEST() local
38 ASSERT_TRUE(grContext != nullptr); in RENDERTHREAD_SKIA_PIPELINE_TEST()
44 while (getCacheUsage(grContext) <= renderThread.cacheManager().getBackgroundCacheSize()) { in RENDERTHREAD_SKIA_PIPELINE_TEST()
46 sk_sp<SkSurface> surface = SkSurface::MakeRenderTarget(grContext, SkBudgeted::kYes, info); in RENDERTHREAD_SKIA_PIPELINE_TEST()
49 grContext->flush(); in RENDERTHREAD_SKIA_PIPELINE_TEST()
59 ASSERT_TRUE(SkImage_pinAsTexture(image.get(), grContext)); in RENDERTHREAD_SKIA_PIPELINE_TEST()
63 ASSERT_TRUE(0 == grContext->getResourceCachePurgeableBytes()); in RENDERTHREAD_SKIA_PIPELINE_TEST()
72 SkImage_unpinAsTexture(image.get(), grContext); in RENDERTHREAD_SKIA_PIPELINE_TEST()
[all …]
/frameworks/base/libs/hwui/pipeline/skia/
DSkiaOpenGLReadback.cpp44 sk_sp<GrContext> grContext = sk_ref_sp(mRenderThread.getGrContext()); in copyImageInto() local
48 grContext = GrContext::MakeGL(std::move(glInterface)); in copyImageInto()
50 grContext->resetContext(); in copyImageInto()
69 !grContext->caps()->isConfigRenderable(kRGBA_half_GrPixelConfig, false)) { in copyImageInto()
77 sk_sp<SkImage> image(SkImage::MakeFromAdoptedTexture(grContext.get(), backendTexture, in copyImageInto()
114 SkSurface::MakeRenderTarget(grContext.get(), SkBudgeted::kYes, bitmap->info()); in copyImageInto()
DSkiaOpenGLPipeline.cpp300 static bool isFP16Supported(const sk_sp<GrContext>& grContext) { in isFP16Supported() argument
304 std::call_once(sOnceFlag, [](const sk_sp<GrContext>& grContext) { in isFP16Supported() argument
305 if (!grContext->caps()->isConfigTexturable(kRGBA_half_GrPixelConfig)) { in isFP16Supported()
315 }, grContext); in isFP16Supported()
324 sk_sp<GrContext> grContext = sk_ref_sp(renderThread.getGrContext()); in allocateHardwareBitmap() local
341 isSupported = isFP16Supported(grContext); in allocateHardwareBitmap()
439 grContext->resetContext(kTextureBinding_GrGLBackendState); in allocateHardwareBitmap()
DSkiaPipeline.cpp229 auto grContext = mRenderThread.getGrContext(); in renderVectorDrawableCache() local
230 atlas->prepareForDraw(grContext); in renderVectorDrawableCache()
233 vd->updateCache(atlas, grContext); in renderVectorDrawableCache()
/frameworks/base/libs/hwui/renderthread/
DEglManager.cpp145 sk_sp<GrContext> grContext(GrContext::MakeGL(std::move(glInterface), options)); in initialize() local
146 LOG_ALWAYS_FATAL_IF(!grContext.get()); in initialize()
147 mRenderThread.setGrContext(grContext); in initialize()
DCacheManager.h64 void reset(sk_sp<GrContext> grContext);
DVulkanManager.cpp114 sk_sp<GrContext> grContext(GrContext::MakeVulkan(mBackendContext, options)); in initialize() local
115 LOG_ALWAYS_FATAL_IF(!grContext.get()); in initialize()
116 mRenderThread.setGrContext(grContext); in initialize()