Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(570)

Unified Diff: content/common/gpu/gpu_memory_manager.cc

Issue 11475050: Aggressively discard tiles on OS X to see if it improves (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Resolve against HEAD Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/gpu_memory_manager.cc
diff --git a/content/common/gpu/gpu_memory_manager.cc b/content/common/gpu/gpu_memory_manager.cc
index 386ad90cf6ccee6a66fcaa9b1b60caf8029e7698..18b0264a81fa4c740b0015932432ae1b04943ac0 100644
--- a/content/common/gpu/gpu_memory_manager.cc
+++ b/content/common/gpu/gpu_memory_manager.cc
@@ -483,8 +483,15 @@ void GpuMemoryManager::Manage() {
// Set the state when visible.
allocation.renderer_allocation.bytes_limit_when_visible =
bytes_limit_when_visible;
+ // Experiment to determine if aggressively discarding tiles on OS X
+ // results in greater stability.
+#if defined(OS_MACOSX)
+ allocation.renderer_allocation.priority_cutoff_when_visible =
+ GpuMemoryAllocationForRenderer::kPriorityCutoffAllowNiceToHave;
+#else
allocation.renderer_allocation.priority_cutoff_when_visible =
GpuMemoryAllocationForRenderer::kPriorityCutoffAllowEverything;
+#endif
// Set the state when backgrounded.
bool allow_allocation_when_backgrounded = false;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698