Chromium Code Reviews| Index: ui/gl/gl_surface_egl.cc |
| diff --git a/ui/gl/gl_surface_egl.cc b/ui/gl/gl_surface_egl.cc |
| index d11577b3fd10f621f3d028b3d75198ec4793e4d0..4c0e163340dd60ef6856c5a7df420c5e801a9a09 100644 |
| --- a/ui/gl/gl_surface_egl.cc |
| +++ b/ui/gl/gl_surface_egl.cc |
| @@ -12,6 +12,7 @@ |
| #include <android/native_window_jni.h> |
| #endif |
| +#include "base/debug/trace_event.h" |
|
no sievers
2014/01/14 22:22:18
nit: order
epennerAtGoogle
2014/01/14 22:40:53
Oy. I figured presubmit was referring to the osmes
|
| #include "base/command_line.h" |
| #include "base/logging.h" |
| #include "base/memory/scoped_ptr.h" |
| @@ -394,6 +395,10 @@ bool NativeViewGLSurfaceEGL::IsOffscreen() { |
| } |
| bool NativeViewGLSurfaceEGL::SwapBuffers() { |
| + TRACE_EVENT2("gpu", "NativeViewGLSurfaceEGL:RealSwapBuffers", |
| + "width", GetSize().width(), |
| + "height", GetSize().height()); |
| + |
| if (!eglSwapBuffers(GetDisplay(), surface_)) { |
| DVLOG(1) << "eglSwapBuffers failed with error " |
| << GetLastEGLErrorString(); |