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

Unified Diff: cc/quads/draw_polygon.h

Issue 1497153002: Replace inverse transform with Cross-product computation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moved section and rebased again Created 5 years 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 | « no previous file | 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 93c36024fc24562b5303e3b30591ddd77543c411..668d9f2dc28e1de89c30243b30929d5a3ae4216a 100644
--- a/cc/quads/draw_polygon.h
+++ b/cc/quads/draw_polygon.h
@@ -59,10 +59,14 @@ class CC_EXPORT DrawPolygon {
bool is_split() const { return is_split_; }
scoped_ptr<DrawPolygon> CreateCopy();
+ void RecomputeNormalForTesting();
+
private:
void ApplyTransform(const gfx::Transform& transform);
void ApplyTransformToNormal(const gfx::Transform& transform);
+ void ConstructNormal();
+
std::vector<gfx::Point3F> points_;
// Normalized, necessitated by distance calculations and tests of coplanarity.
gfx::Vector3dF normal_;
« no previous file with comments | « no previous file | cc/quads/draw_polygon.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698