diff options
author | junov@chromium.org <junov@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-28 19:12:26 +0000 |
---|---|---|
committer | junov@chromium.org <junov@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-28 19:12:26 +0000 |
commit | f974be6286864c490aafbb4e3303717f2b6a2075 (patch) | |
tree | 769e7902247f437d9b97ad17d87693f3a9255219 /cc/test/fake_content_layer_client.h | |
parent | 408c45cade60baf38333d68218201a1330c98085 (diff) | |
download | chromium_src-f974be6286864c490aafbb4e3303717f2b6a2075.zip chromium_src-f974be6286864c490aafbb4e3303717f2b6a2075.tar.gz chromium_src-f974be6286864c490aafbb4e3303717f2b6a2075.tar.bz2 |
Fixing tile grid size used by cc:Picture to make it respect current tile configuration. And rolling skia DEPS to r7896
BUG=https://code.google.com/p/chromium/issues/detail?id=174965
TEST=telemetry scrolling tests with impl-side painting enabled.
Review URL: https://codereview.chromium.org/12221077
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@185288 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/test/fake_content_layer_client.h')
-rw-r--r-- | cc/test/fake_content_layer_client.h | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/cc/test/fake_content_layer_client.h b/cc/test/fake_content_layer_client.h index 85ab26e..c39683d 100644 --- a/cc/test/fake_content_layer_client.h +++ b/cc/test/fake_content_layer_client.h @@ -5,21 +5,31 @@ #ifndef CC_TEST_FAKE_CONTENT_LAYER_CLIENT_H_ #define CC_TEST_FAKE_CONTENT_LAYER_CLIENT_H_ +#include <vector> + #include "base/compiler_specific.h" #include "cc/content_layer_client.h" +#include "ui/gfx/rect.h" namespace cc { class FakeContentLayerClient : public cc::ContentLayerClient { public: FakeContentLayerClient(); + virtual ~FakeContentLayerClient(); + + virtual void paintContents(SkCanvas*, const gfx::Rect& rect, + gfx::RectF& opaque_rect) OVERRIDE; - virtual void paintContents(SkCanvas*, const gfx::Rect& rect, gfx::RectF& opaqueRect) OVERRIDE; + void setPaintAllOpaque(bool opaque) { paint_all_opaque_ = opaque; } - void setPaintAllOpaque(bool opaque) { m_paintAllOpaque = opaque; } + void addDrawRect(const gfx::Rect& rect) { draw_rects_.push_back(rect); } private: - bool m_paintAllOpaque; + typedef std::vector<gfx::Rect> RectVector; + + bool paint_all_opaque_; + RectVector draw_rects_; }; } // namespace cc |