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

Unified Diff: cc/debug_border_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 | « cc/checkerboard_draw_quad.cc ('k') | cc/debug_border_draw_quad.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/debug_border_draw_quad.h
diff --git a/cc/debug_border_draw_quad.h b/cc/debug_border_draw_quad.h
index daee5b0c7c0843e6b0ae624f51630a1d58301843..96dcec311bfd03634fc76e15b1d04ce58ea0d57e 100644
--- a/cc/debug_border_draw_quad.h
+++ b/cc/debug_border_draw_quad.h
@@ -13,18 +13,28 @@
namespace cc {
class CC_EXPORT DebugBorderDrawQuad : public DrawQuad {
-public:
- static scoped_ptr<DebugBorderDrawQuad> create(const SharedQuadState*, const gfx::Rect&, SkColor, int width);
-
- SkColor color() const { return m_color; };
- int width() const { return m_width; }
-
- static const DebugBorderDrawQuad* materialCast(const DrawQuad*);
-private:
- DebugBorderDrawQuad(const SharedQuadState*, const gfx::Rect&, SkColor, int width);
-
- SkColor m_color;
- int m_width;
+ public:
+ static scoped_ptr<DebugBorderDrawQuad> Create();
+
+ void SetNew(const SharedQuadState* shared_quad_state,
+ gfx::Rect rect,
+ SkColor color,
+ int width);
+
+ void SetAll(const SharedQuadState* shared_quad_state,
+ gfx::Rect rect,
+ gfx::Rect opaque_rect,
+ gfx::Rect visible_rect,
+ bool needs_blending,
+ SkColor color,
+ int width);
+
+ SkColor color;
+ int width;
+
+ static const DebugBorderDrawQuad* MaterialCast(const DrawQuad*);
+ private:
+ DebugBorderDrawQuad();
};
}
« no previous file with comments | « cc/checkerboard_draw_quad.cc ('k') | cc/debug_border_draw_quad.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698