Index: cc/test/fake_content_layer_client.h |
diff --git a/cc/test/fake_content_layer_client.h b/cc/test/fake_content_layer_client.h |
index 9615240bceb710cd826a7717268decd34198f316..44160e4d9c359fcb147fd32cbcd0e76415971c4d 100644 |
--- a/cc/test/fake_content_layer_client.h |
+++ b/cc/test/fake_content_layer_client.h |
@@ -13,6 +13,7 @@ |
#include "third_party/skia/include/core/SkBitmap.h" |
#include "third_party/skia/include/core/SkPaint.h" |
#include "ui/gfx/geometry/rect.h" |
+#include "ui/gfx/geometry/rect_f.h" |
#include "ui/gfx/transform.h" |
namespace cc { |
@@ -50,7 +51,11 @@ class FakeContentLayerClient : public ContentLayerClient { |
fill_with_nonsolid_color_ = nonsolid; |
} |
- void add_draw_rect(const gfx::RectF& rect, const SkPaint& paint) { |
+ void add_draw_rect(const gfx::Rect& rect, const SkPaint& paint) { |
+ draw_rects_.push_back(std::make_pair(gfx::RectF(rect), paint)); |
+ } |
+ |
+ void add_draw_rectf(const gfx::RectF& rect, const SkPaint& paint) { |
draw_rects_.push_back(std::make_pair(rect, paint)); |
} |