Home
last modified time | relevance | path

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

/frameworks/base/libs/hwui/tests/unit/
DVectorDrawableAtlasTests.cpp30 atlas.prepareForDraw(renderThread.getGrContext()); in RENDERTHREAD_SKIA_PIPELINE_TEST()
40 VDRects[i] = atlas.requestNewEntry(10, 10, renderThread.getGrContext()); in RENDERTHREAD_SKIA_PIPELINE_TEST()
80 VDRects[i] = atlas.requestNewEntry(10, 10, renderThread.getGrContext()); in RENDERTHREAD_SKIA_PIPELINE_TEST()
94 atlas.prepareForDraw(renderThread.getGrContext()); in RENDERTHREAD_SKIA_PIPELINE_TEST()
102 VDRects[i] = atlas.requestNewEntry(10, 10, renderThread.getGrContext()); in RENDERTHREAD_SKIA_PIPELINE_TEST()
117 atlas.prepareForDraw(renderThread.getGrContext()); in RENDERTHREAD_SKIA_PIPELINE_TEST()
127 VDRects[i] = atlas.requestNewEntry(10, 10, renderThread.getGrContext()); in RENDERTHREAD_SKIA_PIPELINE_TEST()
154 AtlasEntry entry = atlas.requestNewEntry(4, 4, renderThread.getGrContext()); in RENDERTHREAD_SKIA_PIPELINE_TEST()
160 atlas.repackIfNeeded(renderThread.getGrContext()); in RENDERTHREAD_SKIA_PIPELINE_TEST()
DCacheManagerTests.cpp37 GrContext* grContext = renderThread.getGrContext(); in RENDERTHREAD_SKIA_PIPELINE_TEST()
/frameworks/base/libs/hwui/pipeline/skia/
DSkiaPipeline.cpp60 if (SkImage_pinAsTexture(image, mRenderThread.getGrContext())) { in pinImages()
71 SkImage_unpinAsTexture(image.get(), mRenderThread.getGrContext()); in unpinImages()
141 GrContext* currentContext = layerNode->getLayerSurface()->getCanvas()->getGrContext(); in renderLayersImpl()
170 SkASSERT(mRenderThread.getGrContext() != nullptr); in createOrUpdateLayer()
171 node->setLayerSurface(SkSurface::MakeRenderTarget(mRenderThread.getGrContext(), in createOrUpdateLayer()
191 << (int)(mRenderThread.getGrContext() != nullptr); in createOrUpdateLayer()
201 GrContext* context = thread.getGrContext(); in prepareToDraw()
215 auto grContext = mRenderThread.getGrContext(); in renderVectorDrawableCache()
435 mRenderThread.getGrContext()->getResourceCacheUsage(&resources, &bytes); in dumpResourceCacheUsage()
436 mRenderThread.getGrContext()->getResourceCacheLimits(&maxResources, &maxBytes); in dumpResourceCacheUsage()
DGLFunctorDrawable.cpp76 if (canvas->getGrContext() == nullptr) { in onDraw()
106 SkSurface::MakeRenderTarget(canvas->getGrContext(), SkBudgeted::kYes, surfaceInfo); in onDraw()
161 canvas->getGrContext()->resetContext(grState); in onDraw()
212 canvas->getGrContext()->resetContext(); in onDraw()
DSkiaOpenGLPipeline.cpp97 SkASSERT(mRenderThread.getGrContext() != nullptr); in draw()
99 mRenderThread.getGrContext(), backendRT, this->getSurfaceOrigin(), colorType, in draw()
218 thread.getGrContext()->resetContext(); in invokeFunctor()
DSkiaVulkanPipeline.cpp75 ShaderCache::get().onVkFrameFlushed(mRenderThread.getGrContext()); in draw()
130 mRenderThread.getGrContext(), extraBuffers); in setSurface()
DVkFunctorDrawable.cpp98 if (canvas->getGrContext() == nullptr) { in onDraw()
DLayerDrawable.cpp32 DrawLayer(canvas->getGrContext(), canvas, layer, nullptr, nullptr, true); in onDraw()
DVkInteropFunctorDrawable.cpp69 if (canvas->getGrContext() == nullptr) { in onDraw()
/frameworks/base/libs/hwui/surfacetexture/
DImageConsumer.cpp201 st.mCurrentDataSpace, false, renderState.getRenderThread().getGrContext()); in dequeueImage()
216 item.mFence, renderState.getRenderThread().getGrContext()); in dequeueImage()
239 releaseFence, renderState.getRenderThread().getGrContext()); in dequeueImage()
283 renderState.getRenderThread().getGrContext()); in dequeueImage()
/frameworks/base/libs/hwui/renderthread/
DCanvasContext.h108 GrContext* getGrContext() const { return mRenderThread.getGrContext(); } in getGrContext() function
DRenderProxy.cpp375 if (thread.getGrContext() != nullptr) { in repackVectorDrawableAtlas()
377 thread.getGrContext()); in repackVectorDrawableAtlas()
386 if (thread.getGrContext() != nullptr) { in releaseVDAtlasEntries()
DRenderThread.h105 GrContext* getGrContext() const { return mGrContext.get(); } in getGrContext() function
DCanvasContext.cpp616 if (!thread.getGrContext()) return; in trimMemory()
/frameworks/base/libs/hwui/
DWebViewFunctorManager.cpp116 auto* grContext = renderthread::RenderThread::getInstance().getGrContext(); in destroyContext()
DVectorDrawable.cpp559 if (canvas->getGrContext() == nullptr) { in draw()