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

Unified Diff: cc/test/fake_picture_pile.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: Created 5 years, 4 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/test/fake_picture_pile.h
diff --git a/cc/test/fake_picture_pile.h b/cc/test/fake_picture_pile.h
index 30f95a0533d94357de7bc3dffbcbd2e53fb45f58..cc888ab899b0e584d2986340dc8d3c8374b637dc 100644
--- a/cc/test/fake_picture_pile.h
+++ b/cc/test/fake_picture_pile.h
@@ -77,16 +77,24 @@ class FakePicturePile : public PicturePile {
void SetPixelRecordDistance(int d) { pixel_record_distance_ = d; }
- 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_bitmap(const SkBitmap& bitmap, const gfx::Point& point) {
- client_.add_draw_bitmap(bitmap, point, default_paint_);
+ void add_draw_rect_with_paint(const gfx::Rect& rect, const SkPaint& paint) {
+ client_.add_draw_rect(rect, paint);
}
- void add_draw_rect_with_paint(const gfx::RectF& 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) {
+ add_draw_bitmap_with_paint(bitmap, point, default_paint_);
}
void add_draw_bitmap_with_paint(const SkBitmap& bitmap,

Powered by Google App Engine
This is Rietveld 408576698