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

Unified Diff: third_party/WebKit/Source/platform/transforms/AffineTransform.h

Issue 2265453003: Add platform/transforms pretty printers for logging and testing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update per reviewer comments Created 4 years, 4 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
Index: third_party/WebKit/Source/platform/transforms/AffineTransform.h
diff --git a/third_party/WebKit/Source/platform/transforms/AffineTransform.h b/third_party/WebKit/Source/platform/transforms/AffineTransform.h
index 8cf1bd26fb3b66a714eecbdb62b9f41dd0ebef11..7acf4cb904c43665429dab147dd3cf183ace284c 100644
--- a/third_party/WebKit/Source/platform/transforms/AffineTransform.h
+++ b/third_party/WebKit/Source/platform/transforms/AffineTransform.h
@@ -183,6 +183,11 @@ public:
memcpy(m, m_transform, sizeof(Transform));
}
+ // If |asMatrix| is true, the transform is returned as a matrix in row-major
+ // order. Otherwise, the transform's decomposition is returned which shows
+ // the translation, scale, etc.
+ String toString(bool asMatrix = false) const;
+
private:
void setMatrix(const Transform m)
{

Powered by Google App Engine
This is Rietveld 408576698