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

Unified Diff: cc/quads/draw_polygon.h

Issue 1001833005: Update from https://crrev.com/320343 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Supress Created 5 years, 9 months 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/quads/content_draw_quad_base.h ('k') | cc/quads/draw_polygon.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « cc/quads/content_draw_quad_base.h ('k') | cc/quads/draw_polygon.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698