Commit 2c5847f9 authored by Michael Tang's avatar Michael Tang Committed by Commit Bot

[Paint Preview] Remove paint recording flag usage in composition codepath

Change-Id: Id3868d6e9fd854a0c7fd34868101227dd6adb540
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2363362
Commit-Queue: Michael Tang <tangm@microsoft.com>
Commit-Queue: Mike Reed <reed@google.com>
Reviewed-by: default avatarMike Reed <reed@google.com>
Reviewed-by: default avatarCalder Kitagawa <ckitagawa@chromium.org>
Cr-Commit-Position: refs/heads/master@{#799872}
parent da458835
...@@ -111,8 +111,7 @@ sk_sp<SkPicture> GetPictureFromDeserialContext(const void* data, ...@@ -111,8 +111,7 @@ sk_sp<SkPicture> GetPictureFromDeserialContext(const void* data,
-context->scroll_offsets.width() - it->second.scroll_offsets.width(), -context->scroll_offsets.width() - it->second.scroll_offsets.width(),
-context->scroll_offsets.height() - it->second.scroll_offsets.height()); -context->scroll_offsets.height() - it->second.scroll_offsets.height());
canvas->drawPicture(it->second.picture, &apply_scroll_offsets, nullptr); canvas->drawPicture(it->second.picture, &apply_scroll_offsets, nullptr);
return recorder.finishRecordingAsPicture( return recorder.finishRecordingAsPicture();
SkPictureRecorder::kPlaybackDrawPicture_RecordFlag);
} }
} // namespace } // namespace
......
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