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

Unified Diff: cc/playback/float_clip_display_item.cc

Issue 2523673004: [NOT FOR COMMIT] Fully replace SkCanvas uses.
Patch Set: Support Android build. Created 4 years 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/float_clip_display_item.h ('k') | cc/playback/image_hijack_canvas.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/playback/float_clip_display_item.cc
diff --git a/cc/playback/float_clip_display_item.cc b/cc/playback/float_clip_display_item.cc
index cdf16a0462bbdc0912b19080c462c3275bf82199..20398516766f8790715916d6e33a7a464e67798a 100644
--- a/cc/playback/float_clip_display_item.cc
+++ b/cc/playback/float_clip_display_item.cc
@@ -42,7 +42,7 @@ void FloatClipDisplayItem::ToProtobuf(proto::DisplayItem* proto) const {
RectFToProto(clip_rect_, details->mutable_clip_rect());
}
-void FloatClipDisplayItem::Raster(SkCanvas* canvas,
+void FloatClipDisplayItem::Raster(CdlCanvas* canvas,
SkPicture::AbortCallback* callback) const {
canvas->save();
canvas->clipRect(gfx::RectFToSkRect(clip_rect_));
@@ -74,9 +74,8 @@ void EndFloatClipDisplayItem::ToProtobuf(proto::DisplayItem* proto) const {
proto->set_type(proto::DisplayItem::Type_EndFloatClip);
}
-void EndFloatClipDisplayItem::Raster(
- SkCanvas* canvas,
- SkPicture::AbortCallback* callback) const {
+void EndFloatClipDisplayItem::Raster(CdlCanvas* canvas,
+ SkPicture::AbortCallback* callback) const {
canvas->restore();
}
« no previous file with comments | « cc/playback/float_clip_display_item.h ('k') | cc/playback/image_hijack_canvas.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698