Lines Matching refs:mGrContext
67 if (context != mGrContext) { in reset()
72 mGrContext = std::move(context); in reset()
73 mGrContext->getResourceCacheLimits(&mMaxResources, nullptr); in reset()
74 mGrContext->setResourceCacheLimits(mMaxResources, mMaxResourceBytes); in reset()
80 mGrContext.reset(nullptr); in destroy()
106 if (!mGrContext) { in trimMemory()
110 mGrContext->flush(); in trimMemory()
115 mGrContext->freeGpuResources(); in trimMemory()
122 mGrContext->purgeUnlockedResources(true); in trimMemory()
123 mGrContext->setResourceCacheLimits(mMaxResources, mBackgroundResourceBytes); in trimMemory()
124 mGrContext->setResourceCacheLimits(mMaxResources, mMaxResourceBytes); in trimMemory()
132 mGrContext->flush(kSyncCpu_GrFlushFlag, 0, nullptr); in trimMemory()
136 if (!mGrContext) { in trimStaleResources()
139 mGrContext->flush(); in trimStaleResources()
140 mGrContext->purgeResourcesNotUsedInMs(std::chrono::seconds(30)); in trimStaleResources()
145 LOG_ALWAYS_FATAL_IF(mGrContext == nullptr); in acquireVectorDrawableAtlas()
154 if (!mGrContext) { in dumpMemoryUsage()
176 mGrContext->dumpMemoryStatistics(&gpuTracer); in dumpMemoryUsage()