Index: cc/shared_quad_state.h |
diff --git a/cc/shared_quad_state.h b/cc/shared_quad_state.h |
index 743d671c1e44da3cb493c63099b619d0dd9ad0c7..350e80bddb6830349dd6a38a2083029f9cdfa17b 100644 |
--- a/cc/shared_quad_state.h |
+++ b/cc/shared_quad_state.h |
@@ -12,20 +12,26 @@ |
namespace cc { |
-struct CC_EXPORT SharedQuadState { |
- int id; |
- |
- // Transforms from quad's original content space to its target content space. |
- WebKit::WebTransformationMatrix quadTransform; |
- // This rect lives in the content space for the quad's originating layer. |
- gfx::Rect visibleContentRect; |
- gfx::Rect clippedRectInTarget; |
- float opacity; |
- |
- static scoped_ptr<SharedQuadState> create(const WebKit::WebTransformationMatrix& quadTransform, const gfx::Rect& visibleContentRect, const gfx::Rect& clippedRectInTarget, float opacity); |
- SharedQuadState(const WebKit::WebTransformationMatrix& quadTransform, const gfx::Rect& visibleContentRect, const gfx::Rect& clippedRectInTarget, float opacity); |
- |
- scoped_ptr<SharedQuadState> copy() const; |
+class CC_EXPORT SharedQuadState { |
+ public: |
+ static scoped_ptr<SharedQuadState> Create(); |
+ |
+ scoped_ptr<SharedQuadState> Copy() const; |
+ |
+ void SetAll(const WebKit::WebTransformationMatrix& content_to_target_transform, |
+ const gfx::Rect& visible_content_rect, |
+ const gfx::Rect& clipped_rect_in_target, |
+ float opacity); |
+ |
+ // Transforms from quad's original content space to its target content space. |
+ WebKit::WebTransformationMatrix content_to_target_transform; |
+ // This rect lives in the content space for the quad's originating layer. |
+ gfx::Rect visible_content_rect; |
+ gfx::Rect clipped_rect_in_target; |
+ float opacity; |
+ |
+ private: |
+ SharedQuadState(); |
}; |
} |