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

Unified Diff: ui/gfx/transform.h

Issue 8383006: Adds function to invert a transform to ui::Transform (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixes as requested Created 9 years, 2 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 | « no previous file | 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 483aa564652c9cf47d2b0ae49d475406a3a9a596..4f830d59cdd07165dd3faf80a5bcbad7565937d7 100644
--- a/ui/gfx/transform.h
+++ b/ui/gfx/transform.h
@@ -69,6 +69,9 @@ class UI_EXPORT Transform {
// Does the transformation change anything?
bool HasChange() const;
+ // Inverts the transform which is passed in. Returns true if successful.
sky 2011/10/24 21:09:00 This description is a bit misleading. I think you
+ bool GetInverse(Transform* transform) const;
+
// Applies the transformation on the point. Returns true if the point is
// transformed successfully.
void TransformPoint(gfx::Point3f& point) const;
« no previous file with comments | « no previous file | ui/gfx/transform.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698