Home
last modified time | relevance | path

Searched refs:getGrContext (Results 1 – 15 of 15) 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.cpp62 if (SkImage_pinAsTexture(image, mRenderThread.getGrContext())) { in pinImages()
73 SkImage_unpinAsTexture(image.get(), mRenderThread.getGrContext()); in unpinImages()
147 GrContext* currentContext = layerNode->getLayerSurface()->getCanvas()->getGrContext(); in renderLayersImpl()
180 SkASSERT(mRenderThread.getGrContext() != nullptr); in createOrUpdateLayer()
181 node->setLayerSurface(SkSurface::MakeRenderTarget(mRenderThread.getGrContext(), in createOrUpdateLayer()
200 << " has context " << (int)(mRenderThread.getGrContext() != nullptr); in createOrUpdateLayer()
214 GrContext* context = thread.getGrContext(); in prepareToDraw()
229 auto grContext = mRenderThread.getGrContext(); in renderVectorDrawableCache()
458 mRenderThread.getGrContext()->getResourceCacheUsage(&resources, &bytes); in dumpResourceCacheUsage()
459 mRenderThread.getGrContext()->getResourceCacheLimits(&maxResources, &maxBytes); in dumpResourceCacheUsage()
DSkiaOpenGLPipeline.cpp82 SkASSERT(mRenderThread.getGrContext() != nullptr); in draw()
84 mRenderThread.getGrContext(), backendRT, kBottomLeft_GrSurfaceOrigin, nullptr, &props)); in draw()
126 if (!mRenderThread.getGrContext()) { in copyLayerInto()
142 sk_sp<SkSurface> tmpSurface = SkSurface::MakeRenderTarget(mRenderThread.getGrContext(), in copyLayerInto()
147 tmpSurface = SkSurface::MakeRenderTarget(mRenderThread.getGrContext(), in copyLayerInto()
157 if (LayerDrawable::DrawLayer(mRenderThread.getGrContext(), tmpSurface->getCanvas(), layer, in copyLayerInto()
243 thread.getGrContext()->resetContext(); in invokeFunctor()
324 sk_sp<GrContext> grContext = sk_ref_sp(renderThread.getGrContext()); in allocateHardwareBitmap()
DGLFunctorDrawable.cpp80 if (canvas->getGrContext() == nullptr) { in onDraw()
108 tmpSurface = SkSurface::MakeRenderTarget(canvas->getGrContext(), SkBudgeted::kYes, in onDraw()
162 canvas->getGrContext()->resetContext(grState); in onDraw()
209 canvas->getGrContext()->resetContext(); in onDraw()
DLayerDrawable.cpp33 DrawLayer(canvas->getGrContext(), canvas, layer); in onDraw()
DSkiaOpenGLReadback.cpp44 sk_sp<GrContext> grContext = sk_ref_sp(mRenderThread.getGrContext()); in copyImageInto()
/frameworks/base/libs/hwui/
DVkLayer.cpp30 surface = SkSurface::MakeRenderTarget(mRenderState.getGrContext(), SkBudgeted::kNo, info); in updateTexture()
/frameworks/base/libs/hwui/renderthread/
DCanvasContext.h116 GrContext* getGrContext() const { return mRenderThread.getGrContext(); } in getGrContext() function
DRenderProxy.cpp364 if (thread.getGrContext() != nullptr) { in repackVectorDrawableAtlas()
366 thread.getGrContext()); in repackVectorDrawableAtlas()
375 if (thread.getGrContext() != nullptr) { in releaseVDAtlasEntries()
DRenderThread.h97 GrContext* getGrContext() const { return mGrContext.get(); } in getGrContext() function
DVulkanManager.cpp117 DeviceInfo::initialize(mRenderThread.getGrContext()->caps()->maxRenderTargetSize()); in initialize()
323 mRenderThread.getGrContext(), backendRT, kTopLeft_GrSurfaceOrigin, nullptr, &props); in createBuffers()
DCanvasContext.cpp642 if (!thread.getGrContext()) return; in trimMemory()
/frameworks/base/libs/hwui/renderstate/
DRenderState.h115 GrContext* getGrContext() const;
DRenderState.cpp110 GrContext* RenderState::getGrContext() const { in getGrContext() function in android::uirenderer::RenderState
111 return mRenderThread.getGrContext(); in getGrContext()