summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorccameron@chromium.org <ccameron@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-06 00:44:06 +0000
committerccameron@chromium.org <ccameron@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-06 00:44:06 +0000
commit6bee46be15227625551f758e72e401010b985407 (patch)
treeda161f69081c5d5b4febc259435f883a12725ab8
parent2838ed4a0db63dfe37fe6eee150f055d8c945a16 (diff)
downloadchromium_src-6bee46be15227625551f758e72e401010b985407.zip
chromium_src-6bee46be15227625551f758e72e401010b985407.tar.gz
chromium_src-6bee46be15227625551f758e72e401010b985407.tar.bz2
Add comment explianing memory policy on Mac.
TBR=nduca@chromium.org BUG= Review URL: https://chromiumcodereview.appspot.com/13655002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192674 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--content/common/gpu/gpu_memory_manager.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/content/common/gpu/gpu_memory_manager.cc b/content/common/gpu/gpu_memory_manager.cc
index 9a1402c..c17bf65 100644
--- a/content/common/gpu/gpu_memory_manager.cc
+++ b/content/common/gpu/gpu_memory_manager.cc
@@ -765,6 +765,9 @@ void GpuMemoryManager::AssignSurfacesAllocations() {
allocation.renderer_allocation.bytes_limit_when_visible =
client_state->bytes_allocation_when_visible_;
+ // Use a more conservative memory allocation policy on Mac because the
+ // platform is unstable when under memory pressure.
+ // http://crbug.com/141377
allocation.renderer_allocation.priority_cutoff_when_visible =
#if defined(OS_MACOSX)
GpuMemoryAllocationForRenderer::kPriorityCutoffAllowNiceToHave;