Home
last modified time | relevance | path

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

/frameworks/base/libs/hwui/tests/unit/
DCacheManagerTests.cpp29 static size_t getCacheUsage(GrDirectContext* grContext) { in getCacheUsage() argument
31 grContext->getResourceCacheUsage(nullptr, &cacheUsage); in getCacheUsage()
38 GrDirectContext* grContext = renderThread.getGrContext(); in RENDERTHREAD_SKIA_PIPELINE_TEST() local
39 ASSERT_TRUE(grContext != nullptr); in RENDERTHREAD_SKIA_PIPELINE_TEST()
45 while (getCacheUsage(grContext) <= renderThread.cacheManager().getBackgroundCacheSize()) { in RENDERTHREAD_SKIA_PIPELINE_TEST()
47 sk_sp<SkSurface> surface = SkSurface::MakeRenderTarget(grContext, SkBudgeted::kYes, info); in RENDERTHREAD_SKIA_PIPELINE_TEST()
50 grContext->flushAndSubmit(); 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.cpp260 sk_sp<GrDirectContext> grContext(GrDirectContext::MakeGL(std::move(glInterface), options)); in requireGlContext() local
261 LOG_ALWAYS_FATAL_IF(!grContext.get()); in requireGlContext()
262 setGrContext(grContext); in requireGlContext()
278 sk_sp<GrDirectContext> grContext = mVkManager->createContext(options); in requireVkContext() local
279 LOG_ALWAYS_FATAL_IF(!grContext.get()); in requireVkContext()
280 setGrContext(grContext); in requireVkContext()
DVulkanSurface.h39 sk_sp<SkColorSpace> colorSpace, GrDirectContext* grContext,
106 VulkanSurface(ANativeWindow* window, const WindowInfo& windowInfo, GrDirectContext* grContext);
DVulkanManager.h82 GrDirectContext* grContext,
91 status_t fenceWait(int fence, GrDirectContext* grContext);
95 status_t createReleaseFence(int* nativeFence, GrDirectContext* grContext);
DVulkanManager.cpp606 GrDirectContext* grContext, in createSurface() argument
613 return VulkanSurface::Create(window, colorMode, surfaceColorType, surfaceColorSpace, grContext, in createSurface()
617 status_t VulkanManager::fenceWait(int fence, GrDirectContext* grContext) { in fenceWait() argument
662 grContext->wait(1, &beSemaphore); in fenceWait()
663 grContext->flushAndSubmit(); in fenceWait()
668 status_t VulkanManager::createReleaseFence(int* nativeFence, GrDirectContext* grContext) { in createReleaseFence() argument
704 GrSemaphoresSubmitted submitted = grContext->flush(flushInfo); in createReleaseFence()
705 grContext->submit(); in createReleaseFence()
DVulkanSurface.cpp121 GrDirectContext* grContext, const VulkanManager& vkManager, in Create() argument
140 return new VulkanSurface(window, windowInfo, grContext); in Create()
315 GrDirectContext* grContext) in VulkanSurface() argument
316 : mNativeWindow(window), mWindowInfo(windowInfo), mGrContext(grContext) {} in VulkanSurface()
DCacheManager.h65 void reset(sk_sp<GrDirectContext> grContext);
DDrawFrameTask.cpp185 if (GrDirectContext* grContext = mRenderThread->getGrContext()) { in run() local
186 grContext->flushAndSubmit(); in run()
DCanvasContext.cpp474 if (auto grContext = getGrContext()) { in draw() local
475 if (grContext->abandoned()) { in draw()
485 if (auto grContext = getGrContext()) { in draw() local
488 grContext->flushAndSubmit(); in draw()
/frameworks/base/libs/hwui/
DWebViewFunctorManager.cpp186 auto* grContext = renderthread::RenderThread::getInstance().getGrContext(); in destroyContext() local
187 if (grContext) grContext->resetContext(); in destroyContext()
DReadback.cpp89 sk_sp<GrDirectContext> grContext = mRenderThread.requireGrContext(); in copySurfaceInto() local
301 sk_sp<GrDirectContext> grContext = sk_ref_sp(mRenderThread.getGrContext()); in copyImageInto() local
/frameworks/native/libs/renderengine/skia/
DSkiaGLRenderEngine.cpp521 auto grContext = getActiveGrContext(); in mapExternalTextureBuffer() local
529 std::make_shared<AutoBackendTexture::LocalRef>(grContext, in mapExternalTextureBuffer()
744 auto grContext = getActiveGrContext(); in drawLayers() local
755 std::make_shared<AutoBackendTexture::LocalRef>(grContext, in drawLayers()
763 sk_sp<SkSurface> dstSurface = surfaceTextureRef->getOrCreateSurface(dstDataspace, grContext); in drawLayers()
925 mBlurFilter->generate(grContext, layer->backgroundBlurRadius, blurInput, in drawLayers()
939 mBlurFilter->generate(grContext, region.blurRadius, blurInput, in drawLayers()
1012 AutoBackendTexture::LocalRef>(grContext, in drawLayers()
1038 sk_sp<SkImage> image = imageTextureRef->makeImage(layerDataspace, alphaType, grContext); in drawLayers()
1131 bool success = grContext->submit(requireSync); in drawLayers()