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

Unified Diff: cc/playback/drawing_display_item.cc

Issue 1423653005: Further plumb visual rect into cc:DisplayItemList. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix clip recorder params in omnibox. Created 5 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 | « cc/playback/drawing_display_item.h ('k') | cc/playback/filter_display_item.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/playback/drawing_display_item.cc
diff --git a/cc/playback/drawing_display_item.cc b/cc/playback/drawing_display_item.cc
index e43ad7271c3f0ea9842cdb5f0b23bcbfcaaa47e4..05935778582c5d8d11b716610cac185db21816d5 100644
--- a/cc/playback/drawing_display_item.cc
+++ b/cc/playback/drawing_display_item.cc
@@ -90,10 +90,18 @@ void DrawingDisplayItem::Raster(SkCanvas* canvas,
}
void DrawingDisplayItem::AsValueInto(
+ const gfx::Rect& visual_rect,
base::trace_event::TracedValue* array) const {
array->BeginDictionary();
array->SetString("name", "DrawingDisplayItem");
+ array->BeginArray("visualRect");
+ array->AppendInteger(visual_rect.x());
+ array->AppendInteger(visual_rect.y());
+ array->AppendInteger(visual_rect.width());
+ array->AppendInteger(visual_rect.height());
+ array->EndArray();
+
array->BeginArray("cullRect");
array->AppendInteger(picture_->cullRect().x());
array->AppendInteger(picture_->cullRect().y());
« no previous file with comments | « cc/playback/drawing_display_item.h ('k') | cc/playback/filter_display_item.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698