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

Unified Diff: cc/resources/drawing_display_item.cc

Issue 816443003: cc: Include pictures in trace output for DisplayItemLists (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased 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
Index: cc/resources/drawing_display_item.cc
diff --git a/cc/resources/drawing_display_item.cc b/cc/resources/drawing_display_item.cc
index f8d3c62ce6f1c909954dee1f338ea5878250ab4e..294858213b90f60c8008e07309e0220ab82efe38 100644
--- a/cc/resources/drawing_display_item.cc
+++ b/cc/resources/drawing_display_item.cc
@@ -31,6 +31,13 @@ void DrawingDisplayItem::Raster(SkCanvas* canvas,
canvas->restore();
}
+void DrawingDisplayItem::RasterForTracing(SkCanvas* canvas) const {
vmpstr 2015/01/08 21:44:34 This seems to be basically ::Raster with nullptr a
ajuma 2015/01/08 22:20:58 We need playback instead of drawPicture to make th
vmpstr 2015/01/08 22:45:59 Ah I see. FWIW, you can just Raster and give is so
ajuma 2015/01/08 23:16:11 Added a comment.
+ canvas->save();
+ canvas->translate(location_.x(), location_.y());
+ picture_->playback(canvas);
+ canvas->restore();
+}
+
bool DrawingDisplayItem::IsSuitableForGpuRasterization() const {
return picture_->suitableForGpuRasterization(NULL);
}

Powered by Google App Engine
This is Rietveld 408576698