diff options
author | gman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-07 05:21:12 +0000 |
---|---|---|
committer | gman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-07 05:21:12 +0000 |
commit | b8f1d48cde7936b0de0ddd73393beea9cce6c353 (patch) | |
tree | 9596d3f14a7c2d98e1da1d2f150951f204cd9d7e /ui/gl/gl_switches.cc | |
parent | 128ef148febd3ffe1a2100a0fe07a68e8f4b3b1c (diff) | |
download | chromium_src-b8f1d48cde7936b0de0ddd73393beea9cce6c353.zip chromium_src-b8f1d48cde7936b0de0ddd73393beea9cce6c353.tar.gz chromium_src-b8f1d48cde7936b0de0ddd73393beea9cce6c353.tar.bz2 |
Add TRACE calls for all gpu driver calls
Adds a switch --enable-gpu-service-tracing that calls TRACE
on every gpu-process call into the GL driver.
BUG=none
Review URL: https://chromiumcodereview.appspot.com/12207003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@181212 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/gl/gl_switches.cc')
-rw-r--r-- | ui/gl/gl_switches.cc | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/ui/gl/gl_switches.cc b/ui/gl/gl_switches.cc index c197cf7..eec3bb8 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 |