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

Unified Diff: cc/test/fake_recording_source.h

Issue 2640983002: Rename paint data structures (Closed)
Patch Set: DrawingDisplayItem 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
« 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 2fe69adf9331a7cb7c4b560792a6048327db1138..bd827e63c8b17cc7011743116928dca068305b22 100644
--- a/cc/test/fake_recording_source.h
+++ b/cc/test/fake_recording_source.h
@@ -81,7 +81,8 @@ 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 PaintFlags& paint) {
client_.add_draw_rect(rect, paint);
}
@@ -89,7 +90,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 PaintFlags& paint) {
client_.add_draw_rectf(rect, paint);
}
@@ -105,11 +107,11 @@ class FakeRecordingSource : public RecordingSource {
void add_draw_image_with_paint(sk_sp<const SkImage> image,
const gfx::Point& point,
- const SkPaint& paint) {
+ const PaintFlags& 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 PaintFlags& paint) { default_paint_ = paint; }
void set_reported_memory_usage(size_t reported_memory_usage) {
client_.set_reported_memory_usage(reported_memory_usage);
@@ -131,7 +133,7 @@ class FakeRecordingSource : public RecordingSource {
private:
FakeContentLayerClient client_;
- SkPaint default_paint_;
+ PaintFlags 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