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

Unified Diff: cc/playback/compositing_display_item.cc

Issue 1138923005: Remove SK_LEGACY_DRAWPICTURECALLBACK (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: analysis_canvas_unittest fix Created 5 years, 7 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/playback/compositing_display_item.h ('k') | cc/playback/display_item.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/playback/compositing_display_item.cc
diff --git a/cc/playback/compositing_display_item.cc b/cc/playback/compositing_display_item.cc
index bee1fb15dcb67ac2f01f7fb5fc8bf8ebd1fba664..cb6117ee4ba963e203d776ebcc972f25f59a56aa 100644
--- a/cc/playback/compositing_display_item.cc
+++ b/cc/playback/compositing_display_item.cc
@@ -38,7 +38,7 @@ void CompositingDisplayItem::SetNew(uint8_t alpha,
}
void CompositingDisplayItem::Raster(SkCanvas* canvas,
- SkDrawPictureCallback* callback) const {
+ SkPicture::AbortCallback* callback) const {
SkPaint paint;
paint.setXfermodeMode(xfermode_);
paint.setAlpha(alpha_);
@@ -65,8 +65,9 @@ EndCompositingDisplayItem::EndCompositingDisplayItem() {
EndCompositingDisplayItem::~EndCompositingDisplayItem() {
}
-void EndCompositingDisplayItem::Raster(SkCanvas* canvas,
- SkDrawPictureCallback* callback) const {
+void EndCompositingDisplayItem::Raster(
+ SkCanvas* canvas,
+ SkPicture::AbortCallback* callback) const {
canvas->restore();
}
« no previous file with comments | « cc/playback/compositing_display_item.h ('k') | cc/playback/display_item.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698