Commit 6bee46be authored by ccameron@chromium.org's avatar ccameron@chromium.org

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
parent 2838ed4a
...@@ -765,6 +765,9 @@ void GpuMemoryManager::AssignSurfacesAllocations() { ...@@ -765,6 +765,9 @@ void GpuMemoryManager::AssignSurfacesAllocations() {
allocation.renderer_allocation.bytes_limit_when_visible = allocation.renderer_allocation.bytes_limit_when_visible =
client_state->bytes_allocation_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 = allocation.renderer_allocation.priority_cutoff_when_visible =
#if defined(OS_MACOSX) #if defined(OS_MACOSX)
GpuMemoryAllocationForRenderer::kPriorityCutoffAllowNiceToHave; GpuMemoryAllocationForRenderer::kPriorityCutoffAllowNiceToHave;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment