Home
last modified time | relevance | path

Searched refs:getGrContext (Results 1 – 17 of 17) sorted by relevance

/frameworks/base/libs/hwui/pipeline/skia/
DSkiaGpuPipeline.cpp85 SkASSERT(mRenderThread.getGrContext() != nullptr); in createOrUpdateLayer()
86 node->setLayerSurface(SkSurfaces::RenderTarget(mRenderThread.getGrContext(), in createOrUpdateLayer()
106 << (int)(mRenderThread.getGrContext() != nullptr); in createOrUpdateLayer()
116 if (!mRenderThread.getGrContext()) { in pinImages()
121 if (skgpu::ganesh::PinAsTexture(mRenderThread.getGrContext(), image)) { in pinImages()
132 skgpu::ganesh::UnpinTexture(mRenderThread.getGrContext(), image.get()); in unpinImages()
138 GrDirectContext* context = thread.getGrContext(); in prepareToDraw()
159 mRenderThread.getGrContext(), mHardwareBuffer, kTopLeft_GrSurfaceOrigin, in getBufferSkSurface()
169 mRenderThread.getGrContext()->getResourceCacheUsage(&resources, &bytes); in dumpResourceCacheUsage()
170 size_t maxBytes = mRenderThread.getGrContext()->getResourceCacheLimit(); in dumpResourceCacheUsage()
DSkiaOpenGLPipeline.cpp150 SkASSERT(mRenderThread.getGrContext() != nullptr); in draw()
157 surface = SkSurfaces::WrapBackendRenderTarget(mRenderThread.getGrContext(), backendRT, in draw()
299 thread.getGrContext()->resetContext(); in invokeFunctor()
DSkiaVulkanPipeline.cpp160 vulkanManager().createReleaseFence(&fence, mRenderThread.getGrContext()); in flush()
178 mSurfaceColorType, mRenderThread.getGrContext(), 0); in setSurface()
DSkiaCpuPipeline.cpp82 << (int)(mRenderThread.getGrContext() != nullptr); in createOrUpdateLayer()
DSkiaDisplayList.cpp109 auto grContext = info.canvasContext.getGrContext(); in prepareListAndChildren()
DSkiaPipeline.cpp338 procs.fImageCtx = mRenderThread.getGrContext(); in endCapture()
/frameworks/base/libs/hwui/tests/unit/
DAutoBackendTextureReleaseTests.cpp45 new AutoBackendTextureRelease(renderThread.getGrContext(), buffer); in RENDERTHREAD_TEST()
63 new AutoBackendTextureRelease(renderThread.getGrContext(), buffer); in RENDERTHREAD_TEST()
67 textureRelease->makeImage(buffer, HAL_DATASPACE_UNKNOWN, renderThread.getGrContext()); in RENDERTHREAD_TEST()
DCacheManagerTests.cpp41 GrDirectContext* grContext = renderThread.getGrContext(); in RENDERTHREAD_TEST()
DShaderCacheTests.cpp383 GrDirectContext* grContext = renderThread.getGrContext(); in RENDERTHREAD_TEST()
/frameworks/base/libs/hwui/
DDeferredLayerUpdater.cpp82 slot.clear(mRenderState.getRenderThread().getGrContext()); in destroyLayer()
112 renderState.getRenderThread().getGrContext()); in createReleaseFence()
115 releaseFence, renderState.getRenderThread().getGrContext()); in createReleaseFence()
129 fence, renderState.getRenderThread().getGrContext()); in fenceWait()
171 mRenderState.getRenderThread().getGrContext()); in apply()
DReadback.cpp177 SkSurfaces::RenderTarget(mRenderThread.getGrContext(), skgpu::Budgeted::kYes, in copySurfaceInto()
184 tmpSurface = SkSurfaces::RenderTarget(mRenderThread.getGrContext(), in copySurfaceInto()
282 if (!mRenderThread.getGrContext()) { in copyLayerInto()
318 sk_sp<GrDirectContext> grContext = sk_ref_sp(mRenderThread.getGrContext()); in copyImageInto()
352 sk_sp<SkSurface> tmpSurface = SkSurfaces::RenderTarget(mRenderThread.getGrContext(), in copyLayerInto()
362 tmpSurface = SkSurfaces::RenderTarget(mRenderThread.getGrContext(), in copyLayerInto()
371 if (!skiapipeline::LayerDrawable::DrawLayer(mRenderThread.getGrContext(), in copyLayerInto()
DWebViewFunctorManager.cpp203 auto* grContext = renderthread::RenderThread::getInstance().getGrContext(); in destroyContext()
/frameworks/base/libs/hwui/renderthread/
DCanvasContext.h122 GrDirectContext* getGrContext() const { return mRenderThread.getGrContext(); } in getGrContext() function
DDrawFrameTask.cpp147 if (GrDirectContext* grContext = mRenderThread->getGrContext()) { in run()
DRenderThread.h152 GrDirectContext* getGrContext() const { return mGrContext.get(); } in getGrContext() function
DCanvasContext.cpp574 if (auto grContext = getGrContext()) { in draw()
609 if (auto grContext = getGrContext()) { in draw()
DRenderProxy.cpp256 if (thread.getGrContext()) { in purgeCaches()