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

Unified Diff: third_party/WebKit/Source/core/dom/DOMMatrix.cpp

Issue 2041193005: [compositorworker] compositor proxy mutation updates underlying layers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@compositor-worker-upstream-registration
Patch Set: raise if not initialized Created 4 years, 6 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/core/dom/DOMMatrix.cpp
diff --git a/third_party/WebKit/Source/core/dom/DOMMatrix.cpp b/third_party/WebKit/Source/core/dom/DOMMatrix.cpp
index 802ab17963d148fd2aba4ff7ffa03004b5cd24b2..46922eb1802a1e2124ae8cd5c68c416a4e8de863 100644
--- a/third_party/WebKit/Source/core/dom/DOMMatrix.cpp
+++ b/third_party/WebKit/Source/core/dom/DOMMatrix.cpp
@@ -16,6 +16,12 @@ DOMMatrix* DOMMatrix::create(DOMMatrixReadOnly* other)
return new DOMMatrix(other->matrix(), other->is2D());
}
+DOMMatrix* DOMMatrix::create(const SkMatrix44& matrix)
+{
+ TransformationMatrix transformationMatrix(matrix);
+ return new DOMMatrix(transformationMatrix, transformationMatrix.isAffine());
+}
+
DOMMatrix::DOMMatrix(const TransformationMatrix& matrix, bool is2D)
{
m_matrix = TransformationMatrix::create(matrix);

Powered by Google App Engine
This is Rietveld 408576698