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

Unified Diff: cc/test/fake_content_layer_client.h

Issue 12221077: Fixing tile grid size used by cc:Picture to make it respect current tile configuration (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rolling skia to 7896 Created 7 years, 10 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
« no previous file with comments | « cc/picture_pile_base.cc ('k') | cc/test/fake_content_layer_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 85ab26e92af7a7ad5e4414768565e31d0e8fab5c..c39683d86a8c7b409235828addd779b99eefb78d 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
« no previous file with comments | « cc/picture_pile_base.cc ('k') | cc/test/fake_content_layer_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698