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

Unified Diff: ui/gl/gl_surface_x11.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_wgl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_surface_x11.cc
diff --git a/ui/gl/gl_surface_x11.cc b/ui/gl/gl_surface_x11.cc
index 5053a56531ee037c2623b26f561ab2732c7fee18..3673a1de592c98cf5787823999435358758d1de8 100644
--- a/ui/gl/gl_surface_x11.cc
+++ b/ui/gl/gl_surface_x11.cc
@@ -185,6 +185,10 @@ bool NativeViewGLSurfaceOSMesa::IsOffscreen() {
}
bool NativeViewGLSurfaceOSMesa::SwapBuffers() {
+ TRACE_EVENT2("gpu", "NativeViewGLSurfaceOSMesa:RealSwapBuffers",
+ "width", GetSize().width(),
+ "height", GetSize().height());
+
gfx::Size size = GetSize();
XWindowAttributes attributes;
« no previous file with comments | « ui/gl/gl_surface_wgl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698