Home
last modified time | relevance | path

Searched refs:mGrContext (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/libs/hwui/renderthread/
DCacheManager.cpp59 if (context != mGrContext) { in reset()
64 mGrContext = std::move(context); in reset()
65 mGrContext->getResourceCacheLimits(&mMaxResources, nullptr); in reset()
72 mGrContext.reset(nullptr); in destroy()
82 mGrContext->setResourceCacheLimits(mMaxResources, mMaxResourceBytes); in updateContextCacheSizes()
142 if (!mGrContext) { in trimMemory()
146 mGrContext->flush(); in trimMemory()
151 mGrContext->freeGpuResources(); in trimMemory()
157 mGrContext->purgeUnlockedResources(true); in trimMemory()
158 mGrContext->setResourceCacheLimits(mMaxResources, mBackgroundResourceBytes); in trimMemory()
[all …]
DRenderThread.h97 GrContext* getGrContext() const { return mGrContext.get(); } in getGrContext()
155 sk_sp<GrContext> mGrContext; variable
DRenderThread.cpp234 if (mGrContext) { in setGrContext()
235 mGrContext->releaseResourcesAndAbandonContext(); in setGrContext()
237 mGrContext = std::move(context); in setGrContext()
DCacheManager.h69 sk_sp<GrContext> mGrContext; variable