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

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: 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 879e747be73c3e0606d5304d949acc8da1e0e407..6a8ea604c996652f6f3f7e6932023926cb99fe53 100644
--- a/content/common/gpu/gpu_memory_manager.cc
+++ b/content/common/gpu/gpu_memory_manager.cc
@@ -474,6 +474,13 @@ void GpuMemoryManager::Manage() {
allocation.renderer_allocation.priority_cutoff_when_visible =
GpuMemoryAllocationForRenderer::kPriorityCutoffAllowEverything;
+ // Expermient to determine if aggressively discarding tiles on OS X
vangelis 2012/12/08 01:07:02 typo: experiment nit: Ideally you'll want to merg
+ // results in greater stability.
+#if defined(OS_MACOSX)
+ allocation.renderer_allocation.priority_cutoff_when_visible =
+ GpuMemoryAllocationForRenderer::kPriorityCutoffAllowNiceToHave;
+#endif
+
// Set the state when backgrounded.
bool allow_allocation_when_backgrounded = false;
if (client_state->visible) {
« 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