summaryrefslogtreecommitdiffstats
path: root/gpu
diff options
context:
space:
mode:
authorccameron@chromium.org <ccameron@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-04 22:43:42 +0000
committerccameron@chromium.org <ccameron@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-04 22:43:42 +0000
commitc6c825fddf29b4fd851cd2a53bd86c36693c5358 (patch)
tree81c1f02d906b8f94785d725c557e2a514f337830 /gpu
parent70760a7406c507cdf0e45bb772bd2efac16f7a53 (diff)
downloadchromium_src-c6c825fddf29b4fd851cd2a53bd86c36693c5358.zip
chromium_src-c6c825fddf29b4fd851cd2a53bd86c36693c5358.tar.gz
chromium_src-c6c825fddf29b4fd851cd2a53bd86c36693c5358.tar.bz2
Enable GpuMemoryManager policy for impl-side painting.
Add a flag to switch back to the old policy for testing. The new policy needs to be enabled for impl-side painting (because otherwise impl-side painting will pre-paint more aggressively than is reasonable). BUG=168413 Review URL: https://chromiumcodereview.appspot.com/11953060 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@180542 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu')
-rw-r--r--gpu/command_buffer/service/gpu_switches.cc6
-rw-r--r--gpu/command_buffer/service/gpu_switches.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/gpu/command_buffer/service/gpu_switches.cc b/gpu/command_buffer/service/gpu_switches.cc
index d029cfb..aebaf8b 100644
--- a/gpu/command_buffer/service/gpu_switches.cc
+++ b/gpu/command_buffer/service/gpu_switches.cc
@@ -45,6 +45,11 @@ const char kEnforceGLMinimums[] = "enforce-gl-minimums";
// affected systems.
const char kForceGLFinishWorkaround[] = "force-glfinish-workaround";
+// Disable the nonuniform GPU memory memory and instead use the scheme that
+// distributes memory uniformly to all visible renderers.
+const char kDisableNonuniformGpuMemPolicy[] =
+ "disable-nonuniform-gpu-mem-policy";
+
// Sets the total amount of memory that may be allocated for GPU resources
const char kForceGpuMemAvailableMb[] = "force-gpu-mem-available-mb";
@@ -65,6 +70,7 @@ const char* kGpuSwitches[] = {
kDisableGpuProgramCache,
kEnforceGLMinimums,
kForceGLFinishWorkaround,
+ kDisableNonuniformGpuMemPolicy,
kForceGpuMemAvailableMb,
kGpuProgramCacheSizeKb,
kTraceGL,
diff --git a/gpu/command_buffer/service/gpu_switches.h b/gpu/command_buffer/service/gpu_switches.h
index 0a51e70..1314854 100644
--- a/gpu/command_buffer/service/gpu_switches.h
+++ b/gpu/command_buffer/service/gpu_switches.h
@@ -22,6 +22,7 @@ GPU_EXPORT extern const char kEnableGPUServiceLoggingGPU[];
GPU_EXPORT extern const char kDisableGpuProgramCache[];
GPU_EXPORT extern const char kEnforceGLMinimums[];
GPU_EXPORT extern const char kForceGLFinishWorkaround[];
+GPU_EXPORT extern const char kDisableNonuniformGpuMemPolicy[];
GPU_EXPORT extern const char kForceGpuMemAvailableMb[];
GPU_EXPORT extern const char kGpuProgramCacheSizeKb[];
GPU_EXPORT extern const char kTraceGL[];