summaryrefslogtreecommitdiffstats
path: root/ui/gl/gl_egl_api_implementation.h
diff options
context:
space:
mode:
authorgman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-07 05:21:12 +0000
committergman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-07 05:21:12 +0000
commitb8f1d48cde7936b0de0ddd73393beea9cce6c353 (patch)
tree9596d3f14a7c2d98e1da1d2f150951f204cd9d7e /ui/gl/gl_egl_api_implementation.h
parent128ef148febd3ffe1a2100a0fe07a68e8f4b3b1c (diff)
downloadchromium_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_egl_api_implementation.h')
-rw-r--r--ui/gl/gl_egl_api_implementation.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/ui/gl/gl_egl_api_implementation.h b/ui/gl/gl_egl_api_implementation.h
index 457f60e..cbc92e5 100644
--- a/ui/gl/gl_egl_api_implementation.h
+++ b/ui/gl/gl_egl_api_implementation.h
@@ -40,6 +40,22 @@ class GL_EXPORT RealEGLApi : public EGLApiBase {
void Initialize(DriverEGL* driver);
};
+
+// Inserts a TRACE for every EGL call.
+class GL_EXPORT TraceEGLApi : public EGLApi {
+ public:
+ TraceEGLApi(EGLApi* egl_api) : egl_api_(egl_api) { }
+ virtual ~TraceEGLApi();
+
+ // Include the auto-generated part of this class. We split this because
+ // it means we can easily edit the non-auto generated parts right here in
+ // this file instead of having to edit some template or the code generator.
+ #include "gl_bindings_api_autogen_egl.h"
+
+ private:
+ EGLApi* egl_api_;
+};
+
} // namespace gfx
#endif // UI_GL_EGL_API_IMPLEMENTATION_H_