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

Unified Diff: ui/gl/gl_surface_nsview.mm

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_glx.cc ('k') | ui/gl/gl_surface_wgl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_surface_nsview.mm
diff --git a/ui/gl/gl_surface_nsview.mm b/ui/gl/gl_surface_nsview.mm
index ded07197108e0df232bf15fc784311d84505df88..9818dbfb1c57317aa66bcf66abcb597e50c442b3 100644
--- a/ui/gl/gl_surface_nsview.mm
+++ b/ui/gl/gl_surface_nsview.mm
@@ -7,6 +7,7 @@
#import <AppKit/NSOpenGL.h>
#import <AppKit/NSView.h>
+#include "base/debug/trace_event.h"
#include "ui/gl/gl_context_nsview.h"
namespace gfx {
@@ -27,6 +28,9 @@ bool GLSurfaceNSView::IsOffscreen() {
}
bool GLSurfaceNSView::SwapBuffers() {
+ TRACE_EVENT2("gpu", "GLSurfaceNSView:RealSwapBuffers",
+ "width", GetSize().width(),
+ "height", GetSize().height());
context_->FlushBuffer();
return true;
}
« no previous file with comments | « ui/gl/gl_surface_glx.cc ('k') | ui/gl/gl_surface_wgl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698