Chromium Code Reviews| 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); |
| } |