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

Unified Diff: ui/compositor/layer.cc

Issue 876863002: Record layer name when recording paint event. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Created 5 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/layer.cc
diff --git a/ui/compositor/layer.cc b/ui/compositor/layer.cc
index 537e4550764562e8ab276f60fc86c20cec9fc61b..13ded04d54b5a96cbaca4ba34c8fb856ce933f1e 100644
--- a/ui/compositor/layer.cc
+++ b/ui/compositor/layer.cc
@@ -729,7 +729,7 @@ void Layer::RequestCopyOfOutput(scoped_ptr<cc::CopyOutputRequest> request) {
void Layer::PaintContents(SkCanvas* sk_canvas,
const gfx::Rect& clip,
ContentLayerClient::GraphicsContextStatus gc_status) {
- TRACE_EVENT0("ui", "Layer::PaintContents");
+ TRACE_EVENT1("ui", "Layer::PaintContents", "name", name_);
scoped_ptr<gfx::Canvas> canvas(gfx::Canvas::CreateCanvasWithoutScaling(
sk_canvas, device_scale_factor_));
if (delegate_)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698