2016-05-03 19:13:21 +00:00
|
|
|
/*
|
|
|
|
* Copyright 2011 Google Inc.
|
|
|
|
*
|
|
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
|
|
* found in the LICENSE file.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef SkMatrix44_DEFINED
|
|
|
|
#define SkMatrix44_DEFINED
|
|
|
|
|
2019-04-23 17:05:21 +00:00
|
|
|
#include "include/core/SkMatrix.h"
|
|
|
|
#include "include/core/SkScalar.h"
|
2016-05-03 19:13:21 +00:00
|
|
|
|
2018-06-15 17:58:41 +00:00
|
|
|
#include <atomic>
|
|
|
|
#include <cstring>
|
|
|
|
|
2020-04-14 19:44:21 +00:00
|
|
|
// This entire file is DEPRECATED, and will be removed at some point.
|
|
|
|
// SkCanvas has full support for 4x4 matrices using SkM44
|
|
|
|
|
|
|
|
// DEPRECATED
|
2016-05-03 19:13:21 +00:00
|
|
|
struct SkVector4 {
|
|
|
|
SkScalar fData[4];
|
|
|
|
|
|
|
|
SkVector4() {
|
|
|
|
this->set(0, 0, 0, 1);
|
|
|
|
}
|
|
|
|
SkVector4(const SkVector4& src) {
|
|
|
|
memcpy(fData, src.fData, sizeof(fData));
|
|
|
|
}
|
|
|
|
SkVector4(SkScalar x, SkScalar y, SkScalar z, SkScalar w = SK_Scalar1) {
|
|
|
|
fData[0] = x;
|
|
|
|
fData[1] = y;
|
|
|
|
fData[2] = z;
|
|
|
|
fData[3] = w;
|
|
|
|
}
|
|
|
|
|
|
|
|
SkVector4& operator=(const SkVector4& src) {
|
|
|
|
memcpy(fData, src.fData, sizeof(fData));
|
|
|
|
return *this;
|
|
|
|
}
|
|
|
|
|
2019-06-01 15:18:15 +00:00
|
|
|
bool operator==(const SkVector4& v) const {
|
2016-05-03 19:13:21 +00:00
|
|
|
return fData[0] == v.fData[0] && fData[1] == v.fData[1] &&
|
|
|
|
fData[2] == v.fData[2] && fData[3] == v.fData[3];
|
|
|
|
}
|
2019-06-01 15:18:15 +00:00
|
|
|
bool operator!=(const SkVector4& v) const { return !(*this == v); }
|
2016-05-03 19:13:21 +00:00
|
|
|
bool equals(SkScalar x, SkScalar y, SkScalar z, SkScalar w = SK_Scalar1) {
|
|
|
|
return fData[0] == x && fData[1] == y &&
|
|
|
|
fData[2] == z && fData[3] == w;
|
|
|
|
}
|
|
|
|
|
|
|
|
void set(SkScalar x, SkScalar y, SkScalar z, SkScalar w = SK_Scalar1) {
|
|
|
|
fData[0] = x;
|
|
|
|
fData[1] = y;
|
|
|
|
fData[2] = z;
|
|
|
|
fData[3] = w;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2020-04-14 19:44:21 +00:00
|
|
|
// DEPRECATED
|
2016-05-03 19:13:21 +00:00
|
|
|
class SK_API SkMatrix44 {
|
|
|
|
public:
|
|
|
|
|
|
|
|
enum Uninitialized_Constructor {
|
|
|
|
kUninitialized_Constructor
|
|
|
|
};
|
|
|
|
enum Identity_Constructor {
|
|
|
|
kIdentity_Constructor
|
|
|
|
};
|
2019-05-31 13:24:40 +00:00
|
|
|
enum NaN_Constructor {
|
|
|
|
kNaN_Constructor
|
|
|
|
};
|
2016-05-03 19:13:21 +00:00
|
|
|
|
2018-10-04 13:06:00 +00:00
|
|
|
SkMatrix44(Uninitialized_Constructor) {} // ironically, cannot be constexpr
|
2016-06-23 19:42:29 +00:00
|
|
|
|
|
|
|
constexpr SkMatrix44(Identity_Constructor)
|
|
|
|
: fMat{{ 1, 0, 0, 0, },
|
|
|
|
{ 0, 1, 0, 0, },
|
|
|
|
{ 0, 0, 1, 0, },
|
|
|
|
{ 0, 0, 0, 1, }}
|
2019-05-31 13:24:40 +00:00
|
|
|
, fTypeMask(kIdentity_Mask) {}
|
|
|
|
|
|
|
|
SkMatrix44(NaN_Constructor)
|
2020-01-21 11:47:03 +00:00
|
|
|
: fMat{{ SK_ScalarNaN, SK_ScalarNaN, SK_ScalarNaN, SK_ScalarNaN },
|
|
|
|
{ SK_ScalarNaN, SK_ScalarNaN, SK_ScalarNaN, SK_ScalarNaN },
|
|
|
|
{ SK_ScalarNaN, SK_ScalarNaN, SK_ScalarNaN, SK_ScalarNaN },
|
|
|
|
{ SK_ScalarNaN, SK_ScalarNaN, SK_ScalarNaN, SK_ScalarNaN }}
|
2019-05-31 13:24:40 +00:00
|
|
|
, fTypeMask(kTranslate_Mask | kScale_Mask | kAffine_Mask | kPerspective_Mask) {}
|
2016-05-03 19:13:21 +00:00
|
|
|
|
2018-10-04 13:06:00 +00:00
|
|
|
constexpr SkMatrix44() : SkMatrix44{kIdentity_Constructor} {}
|
2016-05-03 19:13:21 +00:00
|
|
|
|
2019-04-05 18:50:23 +00:00
|
|
|
SkMatrix44(const SkMatrix44& src) = default;
|
|
|
|
|
|
|
|
SkMatrix44& operator=(const SkMatrix44& src) = default;
|
2016-05-03 19:13:21 +00:00
|
|
|
|
|
|
|
SkMatrix44(const SkMatrix44& a, const SkMatrix44& b) {
|
|
|
|
this->setConcat(a, b);
|
|
|
|
}
|
|
|
|
|
|
|
|
bool operator==(const SkMatrix44& other) const;
|
|
|
|
bool operator!=(const SkMatrix44& other) const {
|
|
|
|
return !(other == *this);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* When converting from SkMatrix44 to SkMatrix, the third row and
|
|
|
|
* column is dropped. When converting from SkMatrix to SkMatrix44
|
|
|
|
* the third row and column remain as identity:
|
|
|
|
* [ a b c ] [ a b 0 c ]
|
|
|
|
* [ d e f ] -> [ d e 0 f ]
|
|
|
|
* [ g h i ] [ 0 0 1 0 ]
|
|
|
|
* [ g h 0 i ]
|
|
|
|
*/
|
|
|
|
SkMatrix44(const SkMatrix&);
|
|
|
|
SkMatrix44& operator=(const SkMatrix& src);
|
2020-01-16 21:34:34 +00:00
|
|
|
|
|
|
|
// TODO: make this explicit (will need to guard that change to update chrome, etc.
|
2020-01-17 14:07:04 +00:00
|
|
|
#ifndef SK_SUPPORT_LEGACY_IMPLICIT_CONVERSION_MATRIX44
|
|
|
|
explicit
|
|
|
|
#endif
|
2016-05-03 19:13:21 +00:00
|
|
|
operator SkMatrix() const;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Return a reference to a const identity matrix
|
|
|
|
*/
|
|
|
|
static const SkMatrix44& I();
|
|
|
|
|
2019-04-05 18:50:23 +00:00
|
|
|
using TypeMask = uint8_t;
|
|
|
|
enum : TypeMask {
|
|
|
|
kIdentity_Mask = 0,
|
|
|
|
kTranslate_Mask = 1 << 0, //!< set if the matrix has translation
|
|
|
|
kScale_Mask = 1 << 1, //!< set if the matrix has any scale != 1
|
|
|
|
kAffine_Mask = 1 << 2, //!< set if the matrix skews or rotates
|
|
|
|
kPerspective_Mask = 1 << 3, //!< set if the matrix is in perspective
|
2016-05-03 19:13:21 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns a bitfield describing the transformations the matrix may
|
|
|
|
* perform. The bitfield is computed conservatively, so it may include
|
|
|
|
* false positives. For example, when kPerspective_Mask is true, all
|
|
|
|
* other bits may be set to true even in the case of a pure perspective
|
|
|
|
* transform.
|
|
|
|
*/
|
2019-04-05 18:50:23 +00:00
|
|
|
inline TypeMask getType() const { return fTypeMask; }
|
2016-05-03 19:13:21 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Return true if the matrix is identity.
|
|
|
|
*/
|
|
|
|
inline bool isIdentity() const {
|
|
|
|
return kIdentity_Mask == this->getType();
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Return true if the matrix contains translate or is identity.
|
|
|
|
*/
|
|
|
|
inline bool isTranslate() const {
|
|
|
|
return !(this->getType() & ~kTranslate_Mask);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Return true if the matrix only contains scale or translate or is identity.
|
|
|
|
*/
|
|
|
|
inline bool isScaleTranslate() const {
|
|
|
|
return !(this->getType() & ~(kScale_Mask | kTranslate_Mask));
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns true if the matrix only contains scale or is identity.
|
|
|
|
*/
|
|
|
|
inline bool isScale() const {
|
|
|
|
return !(this->getType() & ~kScale_Mask);
|
|
|
|
}
|
|
|
|
|
|
|
|
inline bool hasPerspective() const {
|
|
|
|
return SkToBool(this->getType() & kPerspective_Mask);
|
|
|
|
}
|
|
|
|
|
|
|
|
void setIdentity();
|
|
|
|
inline void reset() { this->setIdentity();}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* get a value from the matrix. The row,col parameters work as follows:
|
|
|
|
* (0, 0) scale-x
|
|
|
|
* (0, 3) translate-x
|
|
|
|
* (3, 0) perspective-x
|
|
|
|
*/
|
2020-01-21 11:47:03 +00:00
|
|
|
inline SkScalar get(int row, int col) const {
|
2016-05-03 19:13:21 +00:00
|
|
|
SkASSERT((unsigned)row <= 3);
|
|
|
|
SkASSERT((unsigned)col <= 3);
|
|
|
|
return fMat[col][row];
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* set a value in the matrix. The row,col parameters work as follows:
|
|
|
|
* (0, 0) scale-x
|
|
|
|
* (0, 3) translate-x
|
|
|
|
* (3, 0) perspective-x
|
|
|
|
*/
|
2020-01-21 11:47:03 +00:00
|
|
|
inline void set(int row, int col, SkScalar value) {
|
2016-05-03 19:13:21 +00:00
|
|
|
SkASSERT((unsigned)row <= 3);
|
|
|
|
SkASSERT((unsigned)col <= 3);
|
|
|
|
fMat[col][row] = value;
|
2019-04-05 18:50:23 +00:00
|
|
|
this->recomputeTypeMask();
|
2016-05-03 19:13:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
inline double getDouble(int row, int col) const {
|
2020-01-21 11:47:03 +00:00
|
|
|
return double(this->get(row, col));
|
2016-05-03 19:13:21 +00:00
|
|
|
}
|
|
|
|
inline void setDouble(int row, int col, double value) {
|
2020-01-21 11:47:03 +00:00
|
|
|
this->set(row, col, SkScalar(value));
|
2016-05-03 19:13:21 +00:00
|
|
|
}
|
|
|
|
inline float getFloat(int row, int col) const {
|
2020-01-21 11:47:03 +00:00
|
|
|
return float(this->get(row, col));
|
2016-05-03 19:13:21 +00:00
|
|
|
}
|
|
|
|
inline void setFloat(int row, int col, float value) {
|
2020-01-21 11:47:03 +00:00
|
|
|
this->set(row, col, value);
|
2016-05-03 19:13:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/** These methods allow one to efficiently read matrix entries into an
|
|
|
|
* array. The given array must have room for exactly 16 entries. Whenever
|
|
|
|
* possible, they will try to use memcpy rather than an entry-by-entry
|
|
|
|
* copy.
|
2016-06-23 19:42:29 +00:00
|
|
|
*
|
|
|
|
* Col major indicates that consecutive elements of columns will be stored
|
|
|
|
* contiguously in memory. Row major indicates that consecutive elements
|
|
|
|
* of rows will be stored contiguously in memory.
|
2016-05-03 19:13:21 +00:00
|
|
|
*/
|
|
|
|
void asColMajorf(float[]) const;
|
|
|
|
void asColMajord(double[]) const;
|
|
|
|
void asRowMajorf(float[]) const;
|
|
|
|
void asRowMajord(double[]) const;
|
|
|
|
|
|
|
|
/** These methods allow one to efficiently set all matrix entries from an
|
|
|
|
* array. The given array must have room for exactly 16 entries. Whenever
|
|
|
|
* possible, they will try to use memcpy rather than an entry-by-entry
|
|
|
|
* copy.
|
2016-06-23 19:42:29 +00:00
|
|
|
*
|
|
|
|
* Col major indicates that input memory will be treated as if consecutive
|
|
|
|
* elements of columns are stored contiguously in memory. Row major
|
|
|
|
* indicates that input memory will be treated as if consecutive elements
|
|
|
|
* of rows are stored contiguously in memory.
|
2016-05-03 19:13:21 +00:00
|
|
|
*/
|
|
|
|
void setColMajorf(const float[]);
|
|
|
|
void setColMajord(const double[]);
|
|
|
|
void setRowMajorf(const float[]);
|
|
|
|
void setRowMajord(const double[]);
|
|
|
|
|
2020-01-21 11:47:03 +00:00
|
|
|
void setColMajor(const SkScalar data[]) { this->setColMajorf(data); }
|
|
|
|
void setRowMajor(const SkScalar data[]) { this->setRowMajorf(data); }
|
2016-05-03 19:13:21 +00:00
|
|
|
|
|
|
|
/* This sets the top-left of the matrix and clears the translation and
|
2018-04-20 16:04:06 +00:00
|
|
|
* perspective components (with [3][3] set to 1). m_ij is interpreted
|
|
|
|
* as the matrix entry at row = i, col = j. */
|
2020-01-21 11:47:03 +00:00
|
|
|
void set3x3(SkScalar m_00, SkScalar m_10, SkScalar m_20,
|
|
|
|
SkScalar m_01, SkScalar m_11, SkScalar m_21,
|
|
|
|
SkScalar m_02, SkScalar m_12, SkScalar m_22);
|
2016-06-23 19:42:29 +00:00
|
|
|
void set3x3RowMajorf(const float[]);
|
2016-05-03 19:13:21 +00:00
|
|
|
|
2020-01-21 11:47:03 +00:00
|
|
|
void set4x4(SkScalar m_00, SkScalar m_10, SkScalar m_20, SkScalar m_30,
|
|
|
|
SkScalar m_01, SkScalar m_11, SkScalar m_21, SkScalar m_31,
|
|
|
|
SkScalar m_02, SkScalar m_12, SkScalar m_22, SkScalar m_32,
|
|
|
|
SkScalar m_03, SkScalar m_13, SkScalar m_23, SkScalar m_33);
|
2019-04-07 00:57:43 +00:00
|
|
|
|
2020-01-21 11:47:03 +00:00
|
|
|
SkMatrix44& setTranslate(SkScalar dx, SkScalar dy, SkScalar dz);
|
|
|
|
SkMatrix44& preTranslate(SkScalar dx, SkScalar dy, SkScalar dz);
|
|
|
|
SkMatrix44& postTranslate(SkScalar dx, SkScalar dy, SkScalar dz);
|
2016-05-03 19:13:21 +00:00
|
|
|
|
2020-01-21 11:47:03 +00:00
|
|
|
SkMatrix44& setScale(SkScalar sx, SkScalar sy, SkScalar sz);
|
|
|
|
SkMatrix44& preScale(SkScalar sx, SkScalar sy, SkScalar sz);
|
|
|
|
SkMatrix44& postScale(SkScalar sx, SkScalar sy, SkScalar sz);
|
2016-05-03 19:13:21 +00:00
|
|
|
|
2020-01-21 11:47:03 +00:00
|
|
|
inline SkMatrix44& setScale(SkScalar scale) {
|
2019-11-14 21:17:50 +00:00
|
|
|
return this->setScale(scale, scale, scale);
|
2016-05-03 19:13:21 +00:00
|
|
|
}
|
2020-01-21 11:47:03 +00:00
|
|
|
inline SkMatrix44& preScale(SkScalar scale) {
|
2019-11-14 21:17:50 +00:00
|
|
|
return this->preScale(scale, scale, scale);
|
2016-05-03 19:13:21 +00:00
|
|
|
}
|
2020-01-21 11:47:03 +00:00
|
|
|
inline SkMatrix44& postScale(SkScalar scale) {
|
2019-11-14 21:17:50 +00:00
|
|
|
return this->postScale(scale, scale, scale);
|
2016-05-03 19:13:21 +00:00
|
|
|
}
|
|
|
|
|
2020-01-21 11:47:03 +00:00
|
|
|
void setRotateDegreesAbout(SkScalar x, SkScalar y, SkScalar z, SkScalar degrees) {
|
|
|
|
this->setRotateAbout(x, y, z, degrees * SK_ScalarPI / 180);
|
2016-05-03 19:13:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/** Rotate about the vector [x,y,z]. If that vector is not unit-length,
|
|
|
|
it will be automatically resized.
|
|
|
|
*/
|
2020-01-21 11:47:03 +00:00
|
|
|
void setRotateAbout(SkScalar x, SkScalar y, SkScalar z, SkScalar radians);
|
2016-05-03 19:13:21 +00:00
|
|
|
/** Rotate about the vector [x,y,z]. Does not check the length of the
|
|
|
|
vector, assuming it is unit-length.
|
|
|
|
*/
|
2020-01-21 11:47:03 +00:00
|
|
|
void setRotateAboutUnit(SkScalar x, SkScalar y, SkScalar z, SkScalar radians);
|
2016-05-03 19:13:21 +00:00
|
|
|
|
|
|
|
void setConcat(const SkMatrix44& a, const SkMatrix44& b);
|
|
|
|
inline void preConcat(const SkMatrix44& m) {
|
|
|
|
this->setConcat(*this, m);
|
|
|
|
}
|
|
|
|
inline void postConcat(const SkMatrix44& m) {
|
|
|
|
this->setConcat(m, *this);
|
|
|
|
}
|
|
|
|
|
|
|
|
friend SkMatrix44 operator*(const SkMatrix44& a, const SkMatrix44& b) {
|
|
|
|
return SkMatrix44(a, b);
|
|
|
|
}
|
|
|
|
|
|
|
|
/** If this is invertible, return that in inverse and return true. If it is
|
|
|
|
not invertible, return false and leave the inverse parameter in an
|
|
|
|
unspecified state.
|
|
|
|
*/
|
|
|
|
bool invert(SkMatrix44* inverse) const;
|
|
|
|
|
|
|
|
/** Transpose this matrix in place. */
|
|
|
|
void transpose();
|
|
|
|
|
|
|
|
/** Apply the matrix to the src vector, returning the new vector in dst.
|
|
|
|
It is legal for src and dst to point to the same memory.
|
|
|
|
*/
|
|
|
|
void mapScalars(const SkScalar src[4], SkScalar dst[4]) const;
|
|
|
|
inline void mapScalars(SkScalar vec[4]) const {
|
|
|
|
this->mapScalars(vec, vec);
|
|
|
|
}
|
|
|
|
|
|
|
|
friend SkVector4 operator*(const SkMatrix44& m, const SkVector4& src) {
|
|
|
|
SkVector4 dst;
|
|
|
|
m.mapScalars(src.fData, dst.fData);
|
|
|
|
return dst;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* map an array of [x, y, 0, 1] through the matrix, returning an array
|
|
|
|
* of [x', y', z', w'].
|
|
|
|
*
|
|
|
|
* @param src2 array of [x, y] pairs, with implied z=0 and w=1
|
|
|
|
* @param count number of [x, y] pairs in src2
|
|
|
|
* @param dst4 array of [x', y', z', w'] quads as the output.
|
|
|
|
*/
|
|
|
|
void map2(const float src2[], int count, float dst4[]) const;
|
|
|
|
void map2(const double src2[], int count, double dst4[]) const;
|
|
|
|
|
|
|
|
/** Returns true if transformating an axis-aligned square in 2d by this matrix
|
|
|
|
will produce another 2d axis-aligned square; typically means the matrix
|
|
|
|
is a scale with perhaps a 90-degree rotation. A 3d rotation through 90
|
|
|
|
degrees into a perpendicular plane collapses a square to a line, but
|
|
|
|
is still considered to be axis-aligned.
|
|
|
|
|
|
|
|
By default, tolerates very slight error due to float imprecisions;
|
|
|
|
a 90-degree rotation can still end up with 10^-17 of
|
|
|
|
"non-axis-aligned" result.
|
|
|
|
*/
|
2020-01-21 11:47:03 +00:00
|
|
|
bool preserves2dAxisAlignment(SkScalar epsilon = SK_ScalarNearlyZero) const;
|
2016-05-03 19:13:21 +00:00
|
|
|
|
|
|
|
void dump() const;
|
|
|
|
|
|
|
|
double determinant() const;
|
|
|
|
|
|
|
|
private:
|
2016-06-23 19:42:29 +00:00
|
|
|
/* This is indexed by [col][row]. */
|
2020-01-21 11:47:03 +00:00
|
|
|
SkScalar fMat[4][4];
|
2019-04-05 18:50:23 +00:00
|
|
|
TypeMask fTypeMask;
|
2016-05-03 19:13:21 +00:00
|
|
|
|
2018-04-26 12:32:37 +00:00
|
|
|
static constexpr int kAllPublic_Masks = 0xF;
|
2016-05-03 19:13:21 +00:00
|
|
|
|
2016-09-09 17:36:17 +00:00
|
|
|
void as3x4RowMajorf(float[]) const;
|
|
|
|
void set3x4RowMajorf(const float[]);
|
2016-06-22 15:18:54 +00:00
|
|
|
|
2020-01-21 11:47:03 +00:00
|
|
|
SkScalar transX() const { return fMat[3][0]; }
|
|
|
|
SkScalar transY() const { return fMat[3][1]; }
|
|
|
|
SkScalar transZ() const { return fMat[3][2]; }
|
2016-05-03 19:13:21 +00:00
|
|
|
|
2020-01-21 11:47:03 +00:00
|
|
|
SkScalar scaleX() const { return fMat[0][0]; }
|
|
|
|
SkScalar scaleY() const { return fMat[1][1]; }
|
|
|
|
SkScalar scaleZ() const { return fMat[2][2]; }
|
2016-05-03 19:13:21 +00:00
|
|
|
|
2020-01-21 11:47:03 +00:00
|
|
|
SkScalar perspX() const { return fMat[0][3]; }
|
|
|
|
SkScalar perspY() const { return fMat[1][3]; }
|
|
|
|
SkScalar perspZ() const { return fMat[2][3]; }
|
2016-05-03 19:13:21 +00:00
|
|
|
|
2019-04-05 18:50:23 +00:00
|
|
|
void recomputeTypeMask();
|
2016-05-03 19:13:21 +00:00
|
|
|
|
2019-04-05 18:50:23 +00:00
|
|
|
inline void setTypeMask(TypeMask mask) {
|
|
|
|
SkASSERT(0 == (~kAllPublic_Masks & mask));
|
|
|
|
fTypeMask = mask;
|
2016-05-03 19:13:21 +00:00
|
|
|
}
|
2016-06-22 15:18:54 +00:00
|
|
|
|
2020-01-21 11:47:03 +00:00
|
|
|
inline const SkScalar* values() const { return &fMat[0][0]; }
|
2017-01-04 16:05:05 +00:00
|
|
|
|
2016-06-22 15:18:54 +00:00
|
|
|
friend class SkColorSpace;
|
2020-01-08 22:33:04 +00:00
|
|
|
friend class SkCanvas;
|
2020-01-16 18:58:22 +00:00
|
|
|
friend class SkM44;
|
2016-05-03 19:13:21 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|