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

Unified Diff: ui/gl/gl_switches.cc

Issue 12207003: Add TRACE calls for all gpu driver calls (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 10 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/gl/gl_switches.h ('k') | ui/gl/gl_wgl_api_implementation.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_switches.cc
diff --git a/ui/gl/gl_switches.cc b/ui/gl/gl_switches.cc
index c197cf74ea6f540efc1e27223eee28c5fdd4c3ac..eec3bb8b2ba361736c8c29c63496fa1aa2bbb8ee 100644
--- a/ui/gl/gl_switches.cc
+++ b/ui/gl/gl_switches.cc
@@ -3,6 +3,7 @@
// found in the LICENSE file.
#include "ui/gl/gl_switches.h"
+#include "base/basictypes.h"
namespace gfx {
@@ -24,6 +25,9 @@ const char kDisableGpuVsync[] = "disable-gpu-vsync";
const char kEnableGPUServiceLogging[] = "enable-gpu-service-logging";
const char kEnableGPUClientLogging[] = "enable-gpu-client-logging";
+// Turns on calling TRACE for every GL call.
+const char kEnableGPUServiceTracing[] = "enable-gpu-service-tracing";
+
// Select which implementation of GL the GPU process should use. Options are:
// desktop: whatever desktop OpenGL the user has installed (Linux and Mac
// default).
@@ -58,5 +62,18 @@ const char kGpuSwitchingOptionNameAutomatic[] = "automatic";
// library first, but fall back to regular library if loading fails.
const char kTestGLLib[] = "test-gl-lib";
+// This is the list of switches passed from this file that are passed from the
+// GpuProcessHost to the GPU Process. Add your switch to this list if you need
+// to read it in the GPU process, else don't add it.
+const char* kGLSwitchesCopiedFromGpuProcessHost[] = {
+ kDisableGpuVsync,
+ kEnableGPUServiceLogging,
+ kEnableGPUServiceTracing,
+ kGpuNoContextLost,
+ kGpuSwitching,
+};
+const int kGLSwitchesCopiedFromGpuProcessHostNumSwitches =
+ arraysize(kGLSwitchesCopiedFromGpuProcessHost);
+
} // namespace switches
« no previous file with comments | « ui/gl/gl_switches.h ('k') | ui/gl/gl_wgl_api_implementation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698