Lines Matching refs:mGrContext
59 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()
159 mGrContext->setResourceCacheLimits(mMaxResources, mMaxResourceBytes); in trimMemory()
165 if (!mGrContext) { in trimStaleResources()
168 mGrContext->flush(); in trimStaleResources()
169 mGrContext->purgeResourcesNotUsedInMs(std::chrono::seconds(30)); in trimStaleResources()
174 LOG_ALWAYS_FATAL_IF(mGrContext == nullptr); in acquireVectorDrawableAtlas()
183 if (!mGrContext) { in dumpMemoryUsage()
205 mGrContext->dumpMemoryStatistics(&gpuTracer); in dumpMemoryUsage()