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

Unified Diff: cc/checkerboard_draw_quad.h

Issue 11411050: cc: Make the DrawQuad subclasses into struct-like classes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 1 month 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 | « no previous file | cc/checkerboard_draw_quad.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/checkerboard_draw_quad.h
diff --git a/cc/checkerboard_draw_quad.h b/cc/checkerboard_draw_quad.h
index 2306c1cf9597a310e679553cf5e93ba49597400d..5f1c83e45022818bc61dd4841b1353a26d741cfe 100644
--- a/cc/checkerboard_draw_quad.h
+++ b/cc/checkerboard_draw_quad.h
@@ -13,16 +13,25 @@
namespace cc {
class CC_EXPORT CheckerboardDrawQuad : public DrawQuad {
-public:
- static scoped_ptr<CheckerboardDrawQuad> create(const SharedQuadState*, const gfx::Rect&, SkColor);
+ public:
+ static scoped_ptr<CheckerboardDrawQuad> Create();
- SkColor color() const { return m_color; };
+ void SetNew(const SharedQuadState* shared_quad_state,
+ gfx::Rect rect,
+ SkColor color);
- static const CheckerboardDrawQuad* materialCast(const DrawQuad*);
-private:
- CheckerboardDrawQuad(const SharedQuadState*, const gfx::Rect&, SkColor);
+ void SetAll(const SharedQuadState* shared_quad_state,
+ gfx::Rect rect,
+ gfx::Rect opaque_rect,
+ gfx::Rect visible_rect,
+ bool needs_blending,
+ SkColor color);
- SkColor m_color;
+ SkColor color;
+
+ static const CheckerboardDrawQuad* MaterialCast(const DrawQuad*);
+ private:
+ CheckerboardDrawQuad();
};
}
« no previous file with comments | « no previous file | cc/checkerboard_draw_quad.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698