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

Unified Diff: cc/playback/clip_path_display_item.cc

Issue 2640983002: Rename paint data structures (Closed)
Patch Set: Clean up comments, fix mac build Created 3 years, 11 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
Index: cc/playback/clip_path_display_item.cc
diff --git a/cc/playback/clip_path_display_item.cc b/cc/playback/clip_path_display_item.cc
index 5d18b3b7aec15845589927c09d6c2753f934c803..b472caaa74910940669bb6cc96c429ae9718b144 100644
--- a/cc/playback/clip_path_display_item.cc
+++ b/cc/playback/clip_path_display_item.cc
@@ -11,7 +11,6 @@
#include "base/trace_event/trace_event_argument.h"
#include "cc/proto/display_item.pb.h"
#include "cc/proto/skia_conversions.h"
-#include "third_party/skia/include/core/SkCanvas.h"
namespace cc {
@@ -62,8 +61,8 @@ void ClipPathDisplayItem::ToProtobuf(proto::DisplayItem* proto) const {
}
}
-void ClipPathDisplayItem::Raster(SkCanvas* canvas,
- SkPicture::AbortCallback* callback) const {
+void ClipPathDisplayItem::Raster(PaintCanvas* canvas,
+ PaintRecord::AbortCallback* callback) const {
canvas->save();
canvas->clipPath(clip_path_, antialias_);
}
@@ -91,8 +90,8 @@ void EndClipPathDisplayItem::ToProtobuf(proto::DisplayItem* proto) const {
}
void EndClipPathDisplayItem::Raster(
- SkCanvas* canvas,
- SkPicture::AbortCallback* callback) const {
+ PaintCanvas* canvas,
+ PaintRecord::AbortCallback* callback) const {
canvas->restore();
}

Powered by Google App Engine
This is Rietveld 408576698