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

Unified Diff: ui/gfx/transform.h

Issue 1013463003: Update from https://crrev.com/320931 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 9 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 | « tools/valgrind/gtest_exclude/unit_tests.gtest-drmemory_win32.txt ('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 68a734e624054810deea74265d8b46a2d493dc4e..7f2c5991d8d19b9b8479922347279316b357811c 100644
--- a/ui/gfx/transform.h
+++ b/ui/gfx/transform.h
@@ -188,6 +188,9 @@ class GFX_EXPORT Transform {
//
void FlattenTo2d();
+ // Returns true if the 3rd row and 3rd column are both (0, 0, 1, 0).
+ bool IsFlat() const;
+
// Returns the x and y translation components of the matrix.
Vector2dF To2dTranslation() const;
« no previous file with comments | « tools/valgrind/gtest_exclude/unit_tests.gtest-drmemory_win32.txt ('k') | ui/gfx/transform.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698