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

Unified Diff: cc/test/fake_recording_source.h

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/test/fake_raster_source.cc ('k') | cc/test/fake_scrollbar.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/fake_recording_source.h
diff --git a/cc/test/fake_recording_source.h b/cc/test/fake_recording_source.h
index 83737373976f049d6d4aadf16e4a9cd7f715d474..684773bc3003bd9c79b2dde07867d6c4f5fa5631 100644
--- a/cc/test/fake_recording_source.h
+++ b/cc/test/fake_recording_source.h
@@ -85,7 +85,7 @@ class FakeRecordingSource : public RecordingSource {
client_.add_draw_rect(rect, default_paint_);
}
- void add_draw_rect_with_paint(const gfx::Rect& rect, const SkPaint& paint) {
+ void add_draw_rect_with_paint(const gfx::Rect& rect, const CdlPaint& paint) {
client_.add_draw_rect(rect, paint);
}
@@ -93,7 +93,8 @@ class FakeRecordingSource : public RecordingSource {
client_.add_draw_rectf(rect, default_paint_);
}
- void add_draw_rectf_with_paint(const gfx::RectF& rect, const SkPaint& paint) {
+ void add_draw_rectf_with_paint(const gfx::RectF& rect,
+ const CdlPaint& paint) {
client_.add_draw_rectf(rect, paint);
}
@@ -109,11 +110,11 @@ class FakeRecordingSource : public RecordingSource {
void add_draw_image_with_paint(sk_sp<const SkImage> image,
const gfx::Point& point,
- const SkPaint& paint) {
+ const CdlPaint& paint) {
client_.add_draw_image(std::move(image), point, paint);
}
- void set_default_paint(const SkPaint& paint) { default_paint_ = paint; }
+ void set_default_paint(const CdlPaint& paint) { default_paint_ = paint; }
void set_reported_memory_usage(size_t reported_memory_usage) {
client_.set_reported_memory_usage(reported_memory_usage);
@@ -135,7 +136,7 @@ class FakeRecordingSource : public RecordingSource {
private:
FakeContentLayerClient client_;
- SkPaint default_paint_;
+ CdlPaint default_paint_;
base::WaitableEvent* playback_allowed_event_;
};
« no previous file with comments | « cc/test/fake_raster_source.cc ('k') | cc/test/fake_scrollbar.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698