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

Unified Diff: cc/paint/skia_paint_canvas.cc

Issue 2769533002: Clean up calls to ToSkPicture (Closed)
Patch Set: Rebase Created 3 years, 9 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
« no previous file with comments | « cc/paint/skia_paint_canvas.h ('k') | third_party/WebKit/Source/platform/graphics/PaintGeneratedImage.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/paint/skia_paint_canvas.cc
diff --git a/cc/paint/skia_paint_canvas.cc b/cc/paint/skia_paint_canvas.cc
index 0421d89fc95d4fd8fc364117c621e4d69139cd90..a4ab9c19057a84c7114e7fe603223acee209f728 100644
--- a/cc/paint/skia_paint_canvas.cc
+++ b/cc/paint/skia_paint_canvas.cc
@@ -268,10 +268,8 @@ void SkiaPaintCanvas::drawDisplayItemList(
display_item_list->Raster(canvas_, nullptr);
}
-void SkiaPaintCanvas::drawPicture(sk_sp<const PaintRecord> record,
- const SkMatrix* matrix,
- const PaintFlags* flags) {
- canvas_->drawPicture(ToSkPicture(record.get()), matrix, ToSkPaint(flags));
+void SkiaPaintCanvas::drawPicture(sk_sp<const PaintRecord> record) {
+ record->playback(canvas_);
}
bool SkiaPaintCanvas::isClipEmpty() const {
« no previous file with comments | « cc/paint/skia_paint_canvas.h ('k') | third_party/WebKit/Source/platform/graphics/PaintGeneratedImage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698