aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/utils/SkMatrix44.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/utils/SkMatrix44.h b/include/utils/SkMatrix44.h
index af632d755b..53841fab63 100644
--- a/include/utils/SkMatrix44.h
+++ b/include/utils/SkMatrix44.h
@@ -21,9 +21,6 @@
#include "SkMatrix.h"
#include "SkScalar.h"
-// uncomment this to use doubles for matrix44
-#define SK_MSCALAR_IS_DOUBLE
-
#ifdef SK_MSCALAR_IS_DOUBLE
typedef double SkMScalar;
static inline double SkFloatToMScalar(float x) {
@@ -126,6 +123,11 @@ public:
SkMScalar get(int row, int col) const;
void set(int row, int col, const SkMScalar& value);
+ void asColMajorf(float[]) const;
+ void asColMajord(double[]) const;
+ void asRowMajorf(float[]) const;
+ void asRowMajord(double[]) const;
+
bool isIdentity() const;
void setIdentity();
void reset() { this->setIdentity();}