Searched refs:mGrContext (Results 1 – 4 of 4) sorted by relevance
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()[all …]
105 GrContext* getGrContext() const { return mGrContext.get(); } in getGrContext()166 sk_sp<GrContext> mGrContext; variable
68 sk_sp<GrContext> mGrContext; variable
271 if (mGrContext.get()) { in setGrContext()272 mGrContext->releaseResourcesAndAbandonContext(); in setGrContext()274 mGrContext.reset(context); in setGrContext()