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

Unified Diff: sky/compositor/layer.cc

Issue 757643002: Add some trace events to Sky compositor (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 | « no previous file | sky/compositor/layer_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/compositor/layer.cc
diff --git a/sky/compositor/layer.cc b/sky/compositor/layer.cc
index 7631db72c2d242658381da9410ce1adaeb1154b9..8d2ec8bc811276c8cc19093c7707a95ef7718221 100644
--- a/sky/compositor/layer.cc
+++ b/sky/compositor/layer.cc
@@ -4,6 +4,7 @@
#include "sky/compositor/layer.h"
+#include "base/debug/trace_event.h"
#include "mojo/skia/ganesh_surface.h"
#include "sky/compositor/layer_host.h"
#include "third_party/skia/include/core/SkCanvas.h"
@@ -25,6 +26,8 @@ void Layer::SetSize(const gfx::Size& size) {
}
void Layer::Display() {
+ TRACE_EVENT0("sky", "Layer::Display");
+
DCHECK(host_);
mojo::GaneshSurface surface(host_->ganesh_context(),
« no previous file with comments | « no previous file | sky/compositor/layer_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698