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

Side by Side Diff: third_party/WebKit/Source/core/dom/DOMMatrix.h

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: Use RAII pattern 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef DOMMatrix_h 5 #ifndef DOMMatrix_h
6 #define DOMMatrix_h 6 #define DOMMatrix_h
7 7
8 #include "core/dom/DOMMatrixReadOnly.h" 8 #include "core/dom/DOMMatrixReadOnly.h"
9 9
10 namespace blink { 10 namespace blink {
11 11
12 class DOMMatrix : public DOMMatrixReadOnly { 12 class DOMMatrix : public DOMMatrixReadOnly {
13 DEFINE_WRAPPERTYPEINFO(); 13 DEFINE_WRAPPERTYPEINFO();
14 public: 14 public:
15 static DOMMatrix* create(); 15 static DOMMatrix* create();
16 static DOMMatrix* create(DOMMatrixReadOnly*); 16 static DOMMatrix* create(DOMMatrixReadOnly*);
17 static DOMMatrix* create(const SkMatrix44&);
17 18
18 void setA(double value) { m_matrix->setM11(value); } 19 void setA(double value) { m_matrix->setM11(value); }
19 void setB(double value) { m_matrix->setM12(value); } 20 void setB(double value) { m_matrix->setM12(value); }
20 void setC(double value) { m_matrix->setM21(value); } 21 void setC(double value) { m_matrix->setM21(value); }
21 void setD(double value) { m_matrix->setM22(value); } 22 void setD(double value) { m_matrix->setM22(value); }
22 void setE(double value) { m_matrix->setM41(value); } 23 void setE(double value) { m_matrix->setM41(value); }
23 void setF(double value) { m_matrix->setM42(value); } 24 void setF(double value) { m_matrix->setM42(value); }
24 25
25 void setM11(double value) { m_matrix->setM11(value); } 26 void setM11(double value) { m_matrix->setM11(value); }
26 void setM12(double value) { m_matrix->setM12(value); } 27 void setM12(double value) { m_matrix->setM12(value); }
(...skipping 22 matching lines...) Expand all
49 50
50 private: 51 private:
51 DOMMatrix(const TransformationMatrix&, bool is2D = true); 52 DOMMatrix(const TransformationMatrix&, bool is2D = true);
52 53
53 void setIs2D(bool value); 54 void setIs2D(bool value);
54 }; 55 };
55 56
56 } // namespace blink 57 } // namespace blink
57 58
58 #endif 59 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/CompositorProxy.idl ('k') | third_party/WebKit/Source/core/dom/DOMMatrix.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698