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

Unified Diff: cc/picture.cc

Issue 11830010: Adds the picture width and height to record and raster trace events used by the picture pile to help (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix line lengths Created 7 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: cc/picture.cc
diff --git a/cc/picture.cc b/cc/picture.cc
index b0e36e89c17b186b911bbee97184c496771b5a5a..ac4cb384ddb6ab00fe6bce9ee29d8914953d655d 100644
--- a/cc/picture.cc
+++ b/cc/picture.cc
@@ -48,7 +48,8 @@ scoped_refptr<Picture> Picture::Clone() const {
void Picture::Record(ContentLayerClient* painter,
RenderingStats& stats) {
- TRACE_EVENT0("cc", "Picture::Record");
+ TRACE_EVENT2("cc", "Picture::Record",
+ "width", layer_rect_.width(), "height", layer_rect_.height());
// Record() should only be called once.
DCHECK(!picture_);
@@ -93,7 +94,8 @@ void Picture::Raster(
SkCanvas* canvas,
gfx::Rect content_rect,
float contents_scale) {
- TRACE_EVENT0("cc", "Picture::Raster");
+ TRACE_EVENT2("cc", "Picture::Raster",
+ "width", layer_rect_.width(), "height", layer_rect_.height());
DCHECK(picture_);
canvas->save();
« 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