Lines Matching refs:mGrContext
51 if (context != mGrContext.get()) { in reset()
56 mGrContext = sk_ref_sp(context); in reset()
57 mGrContext->getResourceCacheLimits(&mMaxResources, nullptr); in reset()
64 mGrContext.reset(nullptr); in destroy()
72 mGrContext->setResourceCacheLimits(mMaxResources, mMaxResourceBytes); in updateContextCacheSizes()
100 if (!mGrContext) { in trimMemory()
104 mGrContext->flush(); in trimMemory()
109 mGrContext->freeGpuResources(); in trimMemory()
112 mGrContext->purgeUnlockedResources(mMaxResourceBytes - mBackgroundResourceBytes, true); in trimMemory()
118 if (!mGrContext) { in trimStaleResources()
121 mGrContext->flush(); in trimStaleResources()
122 mGrContext->purgeResourcesNotUsedInMs(std::chrono::seconds(30)); in trimStaleResources()
127 LOG_ALWAYS_FATAL_IF(mGrContext == nullptr); in acquireVectorDrawableAtlas()
136 if (!mGrContext) { in dumpMemoryUsage()
142 mGrContext->getResourceCacheUsage(nullptr, &bytesCached); in dumpMemoryUsage()
171 mGrContext->getResourceCachePurgeableBytes() / 1024.0f / 1024.0f); in dumpMemoryUsage()