Searched refs:mGrContext (Results 1 – 4 of 4) sorted by relevance
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()[all …]
97 GrContext* getGrContext() const { return mGrContext.get(); } in getGrContext()155 sk_sp<GrContext> mGrContext; variable
234 if (mGrContext) { in setGrContext()235 mGrContext->releaseResourcesAndAbandonContext(); in setGrContext()237 mGrContext = std::move(context); in setGrContext()
69 sk_sp<GrContext> mGrContext; variable