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

Unified Diff: ui/gfx/transform.h

Issue 23724024: Refactor TransformPoint{,Reverse}. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and resolve conflicts. Created 7 years, 3 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 | « ui/gfx/interpolated_transform_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 f9819f3cdebd0bc640db3d9b2439ffb38790e7d8..0c686560f65b3308f5d4d55f922ebeb9592f5e3c 100644
--- a/ui/gfx/transform.h
+++ b/ui/gfx/transform.h
@@ -182,19 +182,19 @@ class UI_EXPORT Transform {
// Applies the transformation on the point. Returns true if the point is
// transformed successfully.
- void TransformPoint(Point3F& point) const;
+ void TransformPoint(Point3F* point) const;
// Applies the transformation on the point. Returns true if the point is
// transformed successfully. Rounds the result to the nearest point.
- void TransformPoint(Point& point) const;
+ void TransformPoint(Point* point) const;
// Applies the reverse transformation on the point. Returns true if the
// transformation can be inverted.
- bool TransformPointReverse(Point3F& point) const;
+ bool TransformPointReverse(Point3F* point) const;
// Applies the reverse transformation on the point. Returns true if the
// transformation can be inverted. Rounds the result to the nearest point.
- bool TransformPointReverse(Point& point) const;
+ bool TransformPointReverse(Point* point) const;
// Applies transformation on the rectangle. Returns true if the transformed
// rectangle was axis aligned. If it returns false, rect will be the
@@ -237,10 +237,10 @@ class UI_EXPORT Transform {
private:
void TransformPointInternal(const SkMatrix44& xform,
- Point& point) const;
+ Point* point) const;
void TransformPointInternal(const SkMatrix44& xform,
- Point3F& point) const;
+ Point3F* point) const;
SkMatrix44 matrix_;
« no previous file with comments | « ui/gfx/interpolated_transform_unittest.cc ('k') | ui/gfx/transform.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698