Index: ui/gl/gl_surface_wgl.cc |
diff --git a/ui/gl/gl_surface_wgl.cc b/ui/gl/gl_surface_wgl.cc |
index 7e1c3a7ad1fe9f2ec1cf127ba6eeadfb1f80b0b3..045a624bd0a881150a9277aed09e5aeda5e70e37 100644 |
--- a/ui/gl/gl_surface_wgl.cc |
+++ b/ui/gl/gl_surface_wgl.cc |
@@ -4,6 +4,7 @@ |
#include "ui/gl/gl_surface_wgl.h" |
+#include "base/debug/trace_event.h" |
#include "base/logging.h" |
#include "base/memory/scoped_ptr.h" |
#include "ui/gl/gl_bindings.h" |
@@ -267,6 +268,10 @@ bool NativeViewGLSurfaceWGL::IsOffscreen() { |
} |
bool NativeViewGLSurfaceWGL::SwapBuffers() { |
+ TRACE_EVENT2("gpu", "NativeViewGLSurfaceWGL:RealSwapBuffers", |
+ "width", GetSize().width(), |
+ "height", GetSize().height()); |
+ |
// Resize the child window to match the parent before swapping. Do not repaint |
// it as it moves. |
RECT rect; |