Chromium Code Reviews| Index: ui/gfx/transform.cc |
| diff --git a/ui/gfx/transform.cc b/ui/gfx/transform.cc |
| index 53981450964b38141f29b06aabc1747ec4147189..1e048b27f70a054156ccbfec9337ce4f9a53c6c1 100644 |
| --- a/ui/gfx/transform.cc |
| +++ b/ui/gfx/transform.cc |
| @@ -102,6 +102,10 @@ bool Transform::HasChange() const { |
| return !matrix_.isIdentity(); |
| } |
| +bool Transform::Invert() { |
| + return matrix_.invert(&matrix_); |
| +} |
| + |
| void Transform::TransformPoint(gfx::Point& point) const { |
| TransformPointInternal(matrix_, point); |
| } |