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 462fa4732e475f42407cad9f0eec0132d3c147dc..e987b1169b49a3cb0a6b6fee2f9df2556db2e217 100644 |
--- a/cc/test/fake_content_layer_client.h |
+++ b/cc/test/fake_content_layer_client.h |
@@ -5,10 +5,12 @@ |
#ifndef CC_TEST_FAKE_CONTENT_LAYER_CLIENT_H_ |
#define CC_TEST_FAKE_CONTENT_LAYER_CLIENT_H_ |
+#include <utility> |
#include <vector> |
#include "base/compiler_specific.h" |
#include "cc/layers/content_layer_client.h" |
+#include "third_party/skia/include/core/SkPaint.h" |
#include "ui/gfx/rect.h" |
namespace cc { |
@@ -25,13 +27,15 @@ class FakeContentLayerClient : public cc::ContentLayerClient { |
void set_paint_all_opaque(bool opaque) { paint_all_opaque_ = opaque; } |
- void add_draw_rect(const gfx::Rect& rect) { draw_rects_.push_back(rect); } |
+ void add_draw_rect(const gfx::Rect& rect, const SkPaint& paint) { |
+ draw_rects_.push_back(std::make_pair(rect, paint)); |
+ } |
private: |
- typedef std::vector<gfx::Rect> RectVector; |
+ typedef std::vector<std::pair<gfx::Rect, SkPaint> > RectPaintVector; |
bool paint_all_opaque_; |
- RectVector draw_rects_; |
+ RectPaintVector draw_rects_; |
}; |
} // namespace cc |