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

Unified Diff: ui/gfx/gl/gl_switches.cc

Issue 7530008: Add --gpu-no-context-lost commandline switch. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 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
« no previous file with comments | « ui/gfx/gl/gl_switches.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/gl/gl_switches.cc
===================================================================
--- ui/gfx/gl/gl_switches.cc (revision 94381)
+++ ui/gfx/gl/gl_switches.cc (working copy)
@@ -9,6 +9,10 @@
// Stop the GPU from synchronizing on the vsync before presenting.
const char kDisableGpuVsync[] = "disable-gpu-vsync";
+// Turns on GPU logging (debug build only).
+const char kEnableGPUServiceLogging[] = "enable-gpu-service-logging";
+const char kEnableGPUClientLogging[] = "enable-gpu-client-logging";
+
// Select which implementation of GL the GPU process should use. Options are:
// desktop: whatever desktop OpenGL the user has installed (Linux and Mac
// default).
@@ -17,8 +21,9 @@
// osmesa: The OSMesa software renderer.
const char kUseGL[] = "use-gl";
-// Turns on GPU logging (debug build only).
-const char kEnableGPUServiceLogging[] = "enable-gpu-service-logging";
-const char kEnableGPUClientLogging[] = "enable-gpu-client-logging";
+// Inform Chrome that a GPU context will not be lost in power saving mode,
+// screen saving mode, etc. Note that this flag does not ensure that a GPU
+// context will never be lost in any situations, say, a GPU reset.
+const char kGpuNoContextLost[] = "gpu-no-context-lost";
} // namespace switches
« no previous file with comments | « ui/gfx/gl/gl_switches.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698