Commit 6ebd2b85 authored by jbroman's avatar jbroman Committed by Commit bot

cc: Remove save/restore from DrawingDisplayItem::Raster.

Skia already calls save/restore on the canvas.

BUG=

Review URL: https://codereview.chromium.org/1116523002

Cr-Commit-Position: refs/heads/master@{#327395}
parent bf22ae4e
......@@ -26,12 +26,12 @@ DrawingDisplayItem::~DrawingDisplayItem() {
void DrawingDisplayItem::Raster(SkCanvas* canvas,
SkDrawPictureCallback* callback) const {
canvas->save();
// SkPicture always does a wrapping save/restore on the canvas, so it is not
// necessary here.
if (callback)
picture_->playback(canvas, callback);
else
canvas->drawPicture(picture_.get());
canvas->restore();
}
bool DrawingDisplayItem::IsSuitableForGpuRasterization() const {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment