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

Unified Diff: cc/test/fake_display_list_recording_source.h

Issue 1314943008: cc: Remove implicit conversions from Rect to RectF in src/cc/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rectfconvert-cc: rebase-and-sandwich-strategy Created 5 years, 3 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_delegated_renderer_layer_impl.cc ('k') | cc/test/fake_picture_pile.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/fake_display_list_recording_source.h
diff --git a/cc/test/fake_display_list_recording_source.h b/cc/test/fake_display_list_recording_source.h
index 9a1ce8b781f44036d5519e288e21caff578f260b..d5471a42fc18bbc834e05c4dca1050c8e2b8536c 100644
--- a/cc/test/fake_display_list_recording_source.h
+++ b/cc/test/fake_display_list_recording_source.h
@@ -62,14 +62,22 @@ class FakeDisplayListRecordingSource : public DisplayListRecordingSource {
recorded_viewport_, 0, RECORD_NORMALLY);
}
- void add_draw_rect(const gfx::RectF& rect) {
+ void add_draw_rect(const gfx::Rect& rect) {
client_.add_draw_rect(rect, default_paint_);
}
- void add_draw_rect_with_paint(const gfx::RectF& rect, const SkPaint& paint) {
+ void add_draw_rect_with_paint(const gfx::Rect& rect, const SkPaint& paint) {
client_.add_draw_rect(rect, paint);
}
+ void add_draw_rectf(const gfx::RectF& rect) {
+ client_.add_draw_rectf(rect, default_paint_);
+ }
+
+ void add_draw_rectf_with_paint(const gfx::RectF& rect, const SkPaint& paint) {
+ client_.add_draw_rectf(rect, paint);
+ }
+
void add_draw_bitmap(const SkBitmap& bitmap, const gfx::Point& point) {
client_.add_draw_bitmap(bitmap, point, default_paint_);
}
« no previous file with comments | « cc/test/fake_delegated_renderer_layer_impl.cc ('k') | cc/test/fake_picture_pile.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698