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 91ab3fb0d38103b37a08a0ab9e8a9c25df79ee49..4bf9e8aebeb212c0644c4fef3f3b228f6d288cab 100644 |
| --- a/cc/resources/drawing_display_item.cc |
| +++ b/cc/resources/drawing_display_item.cc |
| @@ -26,12 +26,10 @@ DrawingDisplayItem::~DrawingDisplayItem() { |
| void DrawingDisplayItem::Raster(SkCanvas* canvas, |
| SkDrawPictureCallback* callback) const { |
| - canvas->save(); |
|
danakj
2015/04/28 21:46:41
could you say this in a comment here?
jbroman
2015/04/28 21:48:16
Done. Was debating whether I should.
|
| if (callback) |
| picture_->playback(canvas, callback); |
| else |
| canvas->drawPicture(picture_.get()); |
|
ajuma
2015/04/28 21:48:50
Does drawPicture also guarantee save/restore?
jbroman
2015/04/28 21:55:33
Yes.
It always dispatches either to SkRecordDraw,
|
| - canvas->restore(); |
| } |
| bool DrawingDisplayItem::IsSuitableForGpuRasterization() const { |