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

Unified Diff: ui/gl/gl_surface_wgl.cc

Issue 137823002: GPU: Add trace for real SwapBuffers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix include order. Created 6 years, 11 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_surface_nsview.mm ('k') | ui/gl/gl_surface_x11.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « ui/gl/gl_surface_nsview.mm ('k') | ui/gl/gl_surface_x11.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698