Home
last modified time | relevance | path

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

/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.cpp144 SkSurface::MakeRenderTarget(mRenderThread.getGrContext(), SkBudgeted::kYes, in copySurfaceInto()
151 tmpSurface = SkSurface::MakeRenderTarget(mRenderThread.getGrContext(), SkBudgeted::kYes, in copySurfaceInto()
283 if (!mRenderThread.getGrContext()) { in copyLayerInto()
319 sk_sp<GrDirectContext> grContext = sk_ref_sp(mRenderThread.getGrContext()); in copyImageInto()
353 sk_sp<SkSurface> tmpSurface = SkSurface::MakeRenderTarget(mRenderThread.getGrContext(), in copyLayerInto()
361 tmpSurface = SkSurface::MakeRenderTarget(mRenderThread.getGrContext(), SkBudgeted::kYes, in copyLayerInto()
369 if (!skiapipeline::LayerDrawable::DrawLayer(mRenderThread.getGrContext(), in copyLayerInto()
DWebViewFunctorManager.cpp198 auto* grContext = renderthread::RenderThread::getInstance().getGrContext(); in destroyContext()
/frameworks/base/libs/hwui/pipeline/skia/
DSkiaPipeline.cpp62 if (!mRenderThread.getGrContext()) { in pinImages()
67 if (SkImage_pinAsTexture(image, mRenderThread.getGrContext())) { in pinImages()
78 SkImage_unpinAsTexture(image.get(), mRenderThread.getGrContext()); in unpinImages()
178 SkASSERT(mRenderThread.getGrContext() != nullptr); in createOrUpdateLayer()
179 node->setLayerSurface(SkSurface::MakeRenderTarget(mRenderThread.getGrContext(), in createOrUpdateLayer()
199 << (int)(mRenderThread.getGrContext() != nullptr); in createOrUpdateLayer()
209 GrDirectContext* context = thread.getGrContext(); in prepareToDraw()
586 mRenderThread.getGrContext()->getResourceCacheUsage(&resources, &bytes); in dumpResourceCacheUsage()
587 size_t maxBytes = mRenderThread.getGrContext()->getResourceCacheLimit(); in dumpResourceCacheUsage()
DSkiaOpenGLPipeline.cpp106 SkASSERT(mRenderThread.getGrContext() != nullptr); in draw()
108 mRenderThread.getGrContext(), backendRT, this->getSurfaceOrigin(), colorType, in draw()
218 thread.getGrContext()->resetContext(); in invokeFunctor()
DSkiaVulkanPipeline.cpp152 mSurfaceColorType, mRenderThread.getGrContext(), 0); in setSurface()
/frameworks/base/libs/hwui/renderthread/
DCanvasContext.h118 GrDirectContext* getGrContext() const { return mRenderThread.getGrContext(); } in getGrContext() function
DRenderThread.h154 GrDirectContext* getGrContext() const { return mGrContext.get(); } in getGrContext() function
DCanvasContext.cpp476 if (auto grContext = getGrContext()) { in draw()
488 if (auto grContext = getGrContext()) { in draw()
877 if (!thread.getGrContext()) return; in trimMemory()
DDrawFrameTask.cpp196 if (GrDirectContext* grContext = mRenderThread->getGrContext()) { in run()
DRenderProxy.cpp210 if (thread.getGrContext()) { in purgeCaches()
/frameworks/base/libs/hwui/tests/unit/
DCacheManagerTests.cpp38 GrDirectContext* grContext = renderThread.getGrContext(); in RENDERTHREAD_SKIA_PIPELINE_TEST()
DShaderCacheTests.cpp382 GrDirectContext* grContext = renderThread.getGrContext(); in RENDERTHREAD_SKIA_PIPELINE_TEST()