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

Unified Diff: gpu/command_buffer/service/gpu_switches.cc

Issue 10823092: Add a flag to specify the amount of total GPU memory available. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix botched merge, some touch-ups Created 8 years, 5 months 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
Index: gpu/command_buffer/service/gpu_switches.cc
diff --git a/gpu/command_buffer/service/gpu_switches.cc b/gpu/command_buffer/service/gpu_switches.cc
index 7f9f8b9f8d01b88adb410f97e9aba7a884d7a4d9..69737b581d6e7516a60f1851401327660952e4b6 100644
--- a/gpu/command_buffer/service/gpu_switches.cc
+++ b/gpu/command_buffer/service/gpu_switches.cc
@@ -37,6 +37,9 @@ const char kEnforceGLMinimums[] = "enforce-gl-minimums";
// affected systems.
const char kForceGLFinishWorkaround[] = "force-glfinish-workaround";
+// Sets the total amount of memory that may be allocated for GPU resources
+const char kForceGpuMemAvailableMb[] = "force-gpu-mem-available-mb";
+
// Sets the maximum size of the in-memory gpu program cache, in kb
const char kGpuProgramCacheSizeKb[] = "gpu-program-cache-size-kb";
@@ -52,6 +55,7 @@ const char* kGpuSwitches[] = {
kDisableGpuProgramCache,
kEnforceGLMinimums,
kForceGLFinishWorkaround,
+ kForceGpuMemAvailableMb,
kGpuProgramCacheSizeKb,
kTraceGL,
};

Powered by Google App Engine
This is Rietveld 408576698