Home
last modified time | relevance | path

Searched refs:grContext (Results 1 – 10 of 10) 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()
58 ASSERT_TRUE(SkImage_pinAsTexture(image.get(), grContext)); in RENDERTHREAD_SKIA_PIPELINE_TEST()
62 ASSERT_TRUE(0 == grContext->getResourceCachePurgeableBytes()); in RENDERTHREAD_SKIA_PIPELINE_TEST()
71 SkImage_unpinAsTexture(image.get(), grContext); in RENDERTHREAD_SKIA_PIPELINE_TEST()
[all …]
/frameworks/base/libs/hwui/renderthread/
DRenderThread.cpp215 sk_sp<GrContext> grContext(GrContext::MakeGL(std::move(glInterface), options)); in requireGlContext() local
216 LOG_ALWAYS_FATAL_IF(!grContext.get()); in requireGlContext()
217 setGrContext(grContext); in requireGlContext()
229 sk_sp<GrContext> grContext = mVkManager->createContext(options); in requireVkContext() local
230 LOG_ALWAYS_FATAL_IF(!grContext.get()); in requireVkContext()
231 setGrContext(grContext); in requireVkContext()
DVulkanManager.h62 SkColorType surfaceColorType, GrContext* grContext,
73 status_t fenceWait(sp<Fence>& fence, GrContext* grContext);
77 status_t createReleaseFence(sp<Fence>& nativeFence, GrContext* grContext);
DVulkanSurface.h38 sk_sp<SkColorSpace> colorSpace, GrContext* grContext,
105 SkISize maxWindowSize, GrContext* grContext);
DVulkanManager.cpp559 SkColorType surfaceColorType, GrContext* grContext, in createSurface() argument
566 return VulkanSurface::Create(window, colorMode, surfaceColorType, surfaceColorSpace, grContext, in createSurface()
570 status_t VulkanManager::fenceWait(sp<Fence>& fence, GrContext* grContext) { in fenceWait() argument
612 grContext->wait(1, &beSemaphore); in fenceWait()
613 grContext->flush(); in fenceWait()
618 status_t VulkanManager::createReleaseFence(sp<Fence>& nativeFence, GrContext* grContext) { in createReleaseFence() argument
646 grContext->flush(kNone_GrFlushFlags, 1, &backendSemaphore, in createReleaseFence()
DCacheManager.h60 void reset(sk_sp<GrContext> grContext);
DVulkanSurface.cpp165 GrContext* grContext, const VulkanManager& vkManager, in Create() argument
307 return new VulkanSurface(window, windowInfo, minSize, maxSize, grContext); in Create()
384 SkISize minWindowSize, SkISize maxWindowSize, GrContext* grContext) in VulkanSurface() argument
387 , mGrContext(grContext) in VulkanSurface()
/frameworks/base/libs/hwui/
DWebViewFunctorManager.cpp116 auto* grContext = renderthread::RenderThread::getInstance().getGrContext(); in destroyContext() local
117 if (grContext) grContext->resetContext(); in destroyContext()
DReadback.cpp119 sk_sp<GrContext> grContext = sk_ref_sp(mRenderThread.getGrContext()); in copyImageInto() local
122 !grContext->colorTypeSupportedAsSurface(bitmap->colorType())) { in copyImageInto()
/frameworks/base/libs/hwui/pipeline/skia/
DSkiaPipeline.cpp215 auto grContext = mRenderThread.getGrContext(); in renderVectorDrawableCache() local
216 atlas->prepareForDraw(grContext); in renderVectorDrawableCache()
219 vd->updateCache(atlas, grContext); in renderVectorDrawableCache()