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

Unified Diff: ui/gfx/transform.h

Issue 1883623002: Correct normal computation for inverted polygons. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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/draw_polygon_unittest.cc ('k') | ui/gfx/transform.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/transform.h
diff --git a/ui/gfx/transform.h b/ui/gfx/transform.h
index 75c4797744a4310c569751bfc4380224286d5b84..5bd74b51d6577eb136cc84cd4e88a013798b7a4e 100644
--- a/ui/gfx/transform.h
+++ b/ui/gfx/transform.h
@@ -198,6 +198,9 @@ class GFX_EXPORT Transform {
// Applies the transformation to the point.
void TransformPoint(Point* point) const;
+ // Applies the transformation to the vector.
+ void TransformVector(Vector3dF* vector) const;
+
// Applies the reverse transformation on the point. Returns true if the
// transformation can be inverted.
bool TransformPointReverse(Point3F* point) const;
@@ -266,6 +269,9 @@ class GFX_EXPORT Transform {
void TransformPointInternal(const SkMatrix44& xform,
Point3F* point) const;
+ void TransformVectorInternal(const SkMatrix44& xform,
+ Vector3dF* vector) const;
+
SkMatrix44 matrix_;
// copy/assign are allowed.
« no previous file with comments | « cc/quads/draw_polygon_unittest.cc ('k') | ui/gfx/transform.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698