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

Unified Diff: cc/stream_video_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/solid_color_layer_impl_unittest.cc ('k') | cc/stream_video_draw_quad.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/stream_video_draw_quad.h
diff --git a/cc/stream_video_draw_quad.h b/cc/stream_video_draw_quad.h
index 508a001afc19af593e2853b9c3dc03c1a3f3bd40..9e6154b8dccbee8b7ef18fa6623d2e83cf69d8f1 100644
--- a/cc/stream_video_draw_quad.h
+++ b/cc/stream_video_draw_quad.h
@@ -13,18 +13,29 @@
namespace cc {
class CC_EXPORT StreamVideoDrawQuad : public DrawQuad {
-public:
- static scoped_ptr<StreamVideoDrawQuad> create(const SharedQuadState*, const gfx::Rect&, const gfx::Rect& opaqueRect, unsigned textureId, const WebKit::WebTransformationMatrix&);
-
- unsigned textureId() const { return m_textureId; }
- const WebKit::WebTransformationMatrix& matrix() const { return m_matrix; }
-
- static const StreamVideoDrawQuad* materialCast(const DrawQuad*);
-private:
- StreamVideoDrawQuad(const SharedQuadState*, const gfx::Rect&, const gfx::Rect& opaqueRect, unsigned textureId, const WebKit::WebTransformationMatrix&);
-
- unsigned m_textureId;
- WebKit::WebTransformationMatrix m_matrix;
+ public:
+ static scoped_ptr<StreamVideoDrawQuad> Create();
+
+ void SetNew(const SharedQuadState* shared_quad_state,
+ gfx::Rect rect,
+ gfx::Rect opaque_rect,
+ unsigned texture_id,
+ const WebKit::WebTransformationMatrix& matrix);
+
+ void SetAll(const SharedQuadState* shared_quad_state,
+ gfx::Rect rect,
+ gfx::Rect opaque_rect,
+ gfx::Rect visible_rect,
+ bool needs_blending,
+ unsigned texture_id,
+ const WebKit::WebTransformationMatrix& matrix);
+
+ unsigned texture_id;
+ WebKit::WebTransformationMatrix matrix;
+
+ static const StreamVideoDrawQuad* MaterialCast(const DrawQuad*);
+ private:
+ StreamVideoDrawQuad();
};
}
« no previous file with comments | « cc/solid_color_layer_impl_unittest.cc ('k') | cc/stream_video_draw_quad.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698