/frameworks/base/libs/hwui/tests/unit/ |
D | CacheManagerTests.cpp | 29 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/ |
D | RenderThread.cpp | 260 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()
|
D | VulkanSurface.h | 39 sk_sp<SkColorSpace> colorSpace, GrDirectContext* grContext, 106 VulkanSurface(ANativeWindow* window, const WindowInfo& windowInfo, GrDirectContext* grContext);
|
D | VulkanManager.h | 82 GrDirectContext* grContext, 91 status_t fenceWait(int fence, GrDirectContext* grContext); 95 status_t createReleaseFence(int* nativeFence, GrDirectContext* grContext);
|
D | VulkanManager.cpp | 606 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()
|
D | VulkanSurface.cpp | 121 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()
|
D | CacheManager.h | 65 void reset(sk_sp<GrDirectContext> grContext);
|
D | DrawFrameTask.cpp | 185 if (GrDirectContext* grContext = mRenderThread->getGrContext()) { in run() local 186 grContext->flushAndSubmit(); in run()
|
D | CanvasContext.cpp | 474 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/ |
D | WebViewFunctorManager.cpp | 186 auto* grContext = renderthread::RenderThread::getInstance().getGrContext(); in destroyContext() local 187 if (grContext) grContext->resetContext(); in destroyContext()
|
D | Readback.cpp | 89 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/ |
D | SkiaGLRenderEngine.cpp | 521 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()
|