Lines Matching refs:mMemoryPolicy
45 : mRenderThread(thread), mMemoryPolicy(loadMemoryPolicy()) { in CacheManager()
47 mMemoryPolicy.initialMaxSurfaceAreaScale); in CacheManager()
62 mMaxResourceBytes = mMaxSurfaceArea * mMemoryPolicy.surfaceSizeMultiplier; in setupCacheLimits()
63 mBackgroundResourceBytes = mMaxResourceBytes * mMemoryPolicy.backgroundRetentionPercent; in setupCacheLimits()
71 mBackgroundCpuFontCacheBytes = mMaxCpuFontCacheBytes * mMemoryPolicy.backgroundRetentionPercent; in setupCacheLimits()
137 mGrContext->purgeUnlockedResources(toSkiaEnum(mMemoryPolicy.purgeScratchOnly)); in trimMemory()
194 mMemoryPolicy.surfaceSizeMultiplier, in dumpMemoryUsage()
195 mMemoryPolicy.backgroundRetentionPercent * 100.0f, in dumpMemoryUsage()
196 mMemoryPolicy.useAlternativeUiHidden ? "true" : "false"); in dumpMemoryUsage()
200 log.appendFormat(" GPU Context timeout: %" PRIu64 "\n", ns2s(mMemoryPolicy.contextTimeout)); in dumpMemoryUsage()
288 ns2ms(std::clamp(frameDiffNanos, mMemoryPolicy.minimumResourceRetention, in onThreadIdle()
289 mMemoryPolicy.maximumResourceRetention)); in onThreadIdle()
291 toSkiaEnum(mMemoryPolicy.purgeScratchOnly)); in onThreadIdle()
296 if (mMemoryPolicy.contextTimeout > 0) { in scheduleDestroyContext()
297 mRenderThread.queue().postDelayed(mMemoryPolicy.contextTimeout, in scheduleDestroyContext()
325 if (mMemoryPolicy.useAlternativeUiHidden && areAllContextsStopped()) { in checkUiHidden()
345 if (mMemoryPolicy.releaseContextOnStoppedOnly && areAllContextsStopped()) { in onContextStopped()