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

Unified Diff: cc/paint/skia_paint_canvas.h

Issue 2768143002: Back PaintRecord with PaintOpBuffer instead of SkPicture (Closed)
Patch Set: More unit tests Created 3 years, 8 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/paint/skia_paint_canvas.h
diff --git a/cc/paint/skia_paint_canvas.h b/cc/paint/skia_paint_canvas.h
index f751f7781664aed4a1e5b28d0dc419a34c44ed91..8d9b048a340adbb0197a5b739eac3a6792276d3a 100644
--- a/cc/paint/skia_paint_canvas.h
+++ b/cc/paint/skia_paint_canvas.h
@@ -53,7 +53,7 @@ class CC_PAINT_EXPORT SkiaPaintCanvas final : public PaintCanvas {
int y) override;
int save() override;
int saveLayer(const SkRect* bounds, const PaintFlags* flags) override;
- int saveLayerAlpha(const SkRect* bounds, U8CPU alpha) override;
+ int saveLayerAlpha(const SkRect* bounds, uint8_t alpha) override;
void restore() override;
int getSaveCount() const override;
@@ -145,9 +145,9 @@ class CC_PAINT_EXPORT SkiaPaintCanvas final : public PaintCanvas {
SkIRect* clip_bounds) override;
bool ToPixmap(SkPixmap* output) override;
- void AnnotateRectWithURL(const SkRect& rect, SkData* data) override;
- void AnnotateNamedDestination(const SkPoint& point, SkData* data) override;
- void AnnotateLinkToDestination(const SkRect& rect, SkData* data) override;
+ void Annotate(AnnotationType type,
+ const SkRect& rect,
+ sk_sp<SkData> data) override;
void PlaybackPaintRecord(sk_sp<const PaintRecord> record) override;

Powered by Google App Engine
This is Rietveld 408576698