| 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 e987b1169b49a3cb0a6b6fee2f9df2556db2e217..878995d00aebba493596e0e699dd68daa3202d97 100644
|
| --- a/cc/test/fake_content_layer_client.h
|
| +++ b/cc/test/fake_content_layer_client.h
|
| @@ -10,6 +10,7 @@
|
|
|
| #include "base/compiler_specific.h"
|
| #include "cc/layers/content_layer_client.h"
|
| +#include "third_party/skia/include/core/SkBitmap.h"
|
| #include "third_party/skia/include/core/SkPaint.h"
|
| #include "ui/gfx/rect.h"
|
|
|
| @@ -31,11 +32,17 @@ class FakeContentLayerClient : public cc::ContentLayerClient {
|
| draw_rects_.push_back(std::make_pair(rect, paint));
|
| }
|
|
|
| + void add_draw_bitmap(const SkBitmap& bitmap, gfx::Point point) {
|
| + draw_bitmaps_.push_back(std::make_pair(bitmap, point));
|
| + }
|
| +
|
| private:
|
| typedef std::vector<std::pair<gfx::Rect, SkPaint> > RectPaintVector;
|
| + typedef std::vector<std::pair<SkBitmap, gfx::Point> > BitmapVector;
|
|
|
| bool paint_all_opaque_;
|
| RectPaintVector draw_rects_;
|
| + BitmapVector draw_bitmaps_;
|
| };
|
|
|
| } // namespace cc
|
|
|