| Index: cc/quads/draw_polygon.h
|
| diff --git a/cc/quads/draw_polygon.h b/cc/quads/draw_polygon.h
|
| index 32643eed23c78ebf264ca21e0ce934c2c6a772a9..b94ff1ef777185a31a37c593c30f6fb7bc317bd7 100644
|
| --- a/cc/quads/draw_polygon.h
|
| +++ b/cc/quads/draw_polygon.h
|
| @@ -24,11 +24,11 @@ class CC_EXPORT DrawPolygon {
|
| DrawPolygon();
|
| ~DrawPolygon();
|
|
|
| - DrawPolygon(DrawQuad* original_ref,
|
| + DrawPolygon(const DrawQuad* original_ref,
|
| const std::vector<gfx::Point3F>& in_points,
|
| const gfx::Vector3dF& normal,
|
| int draw_order_index = 0);
|
| - DrawPolygon(DrawQuad* original_ref,
|
| + DrawPolygon(const DrawQuad* original_ref,
|
| const gfx::RectF& visible_content_rect,
|
| const gfx::Transform& transform,
|
| int draw_order_index = 0);
|
| @@ -56,11 +56,9 @@ class CC_EXPORT DrawPolygon {
|
| const gfx::Vector3dF& normal() const { return normal_; }
|
| const DrawQuad* original_ref() const { return original_ref_; }
|
| int order_index() const { return order_index_; }
|
| -
|
| + bool is_split() const { return is_split_; }
|
| scoped_ptr<DrawPolygon> CreateCopy();
|
|
|
| - static gfx::Vector3dF default_normal;
|
| -
|
| private:
|
| void ApplyTransform(const gfx::Transform& transform);
|
| void ApplyTransformToNormal(const gfx::Transform& transform);
|
| @@ -76,7 +74,8 @@ class CC_EXPORT DrawPolygon {
|
| // we need.
|
| // This DrawQuad is owned by the caller and its lifetime must be preserved
|
| // as long as this DrawPolygon is alive.
|
| - DrawQuad* original_ref_;
|
| + const DrawQuad* original_ref_;
|
| + bool is_split_;
|
| };
|
|
|
| } // namespace cc
|
|
|