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

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

Issue 2309013002: [GeometryInterface] Add fromFloat32Array & fromFloat64Array function (Closed)
Patch Set: [GeometryInterface] Add fromFloat32Array & fromFloat64Array function Created 4 years, 3 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.h
diff --git a/third_party/WebKit/Source/core/dom/DOMMatrix.h b/third_party/WebKit/Source/core/dom/DOMMatrix.h
index 570198a44b7d1cbcbaccd7d3d4a8fcd99a0a12e9..80617cb65a8b09dfe1259255d6bee59b01090329 100644
--- a/third_party/WebKit/Source/core/dom/DOMMatrix.h
+++ b/third_party/WebKit/Source/core/dom/DOMMatrix.h
@@ -15,6 +15,8 @@ public:
static DOMMatrix* create();
static DOMMatrix* create(DOMMatrixReadOnly*);
static DOMMatrix* create(const SkMatrix44&);
+ static DOMMatrix* fromFloat32Array(DOMFloat32Array*, ExceptionState&);
+ static DOMMatrix* fromFloat64Array(DOMFloat64Array*, ExceptionState&);
void setA(double value) { m_matrix->setM11(value); }
void setB(double value) { m_matrix->setM12(value); }
@@ -53,6 +55,8 @@ public:
private:
DOMMatrix(const TransformationMatrix&, bool is2D = true);
+ template <typename T>
+ DOMMatrix(T sequence, int size);
void setIs2D(bool value);
};

Powered by Google App Engine
This is Rietveld 408576698