summaryrefslogtreecommitdiffstats
path: root/content/common/gpu/gpu_memory_manager.h
diff options
context:
space:
mode:
authorccameron@chromium.org <ccameron@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-13 01:36:07 +0000
committerccameron@chromium.org <ccameron@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-13 01:36:07 +0000
commitcfc72471658542bb238c6a2a2cdca07432aa6db6 (patch)
tree923e53b0bc9be314feabab5b62d505d5eed28eec /content/common/gpu/gpu_memory_manager.h
parent52c0f5df833e8dfe0d8c9befe39d7c18996f3fb5 (diff)
downloadchromium_src-cfc72471658542bb238c6a2a2cdca07432aa6db6.zip
chromium_src-cfc72471658542bb238c6a2a2cdca07432aa6db6.tar.gz
chromium_src-cfc72471658542bb238c6a2a2cdca07432aa6db6.tar.bz2
Distribute extra memory evenly among visible clients
After computing all clients' memory budgets, take any extra memory left over and distribute it amongst the visible clients (so that, if their memory requirments suddenly jump, they don't need to wait for a roundtrip to the GPU process to get extra memory). Disallow keeping around backgrounded tabs' contents on Android, to keep the maximum for the main tab. Explicitly limit the memory to use for prepainting by specifying NiceToHave on Mac to avoid performance problems. BUG=175125 TBR=nduca, piman Review URL: https://codereview.chromium.org/12212143 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182083 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/common/gpu/gpu_memory_manager.h')
-rw-r--r--content/common/gpu/gpu_memory_manager.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/content/common/gpu/gpu_memory_manager.h b/content/common/gpu/gpu_memory_manager.h
index 895f7b9..73f15fd 100644
--- a/content/common/gpu/gpu_memory_manager.h
+++ b/content/common/gpu/gpu_memory_manager.h
@@ -124,6 +124,7 @@ class CONTENT_EXPORT GpuMemoryManager :
// Compute the allocation for clients when visible and not visible.
void ComputeVisibleSurfacesAllocationsNonuniform();
void ComputeNonvisibleSurfacesAllocationsNonuniform();
+ void DistributeRemainingMemoryToVisibleSurfaces();
// Compute the budget for a client. Allow at most bytes_above_required_cap
// bytes above client_state's required level. Allow at most