Lines Matching refs:SkMatrix
25 #include <SkMatrix.h>
159 void Matrix4::load(const SkMatrix& v) {
162 data[kScaleX] = v[SkMatrix::kMScaleX];
163 data[kSkewX] = v[SkMatrix::kMSkewX];
164 data[kTranslateX] = v[SkMatrix::kMTransX];
166 data[kSkewY] = v[SkMatrix::kMSkewY];
167 data[kScaleY] = v[SkMatrix::kMScaleY];
168 data[kTranslateY] = v[SkMatrix::kMTransY];
170 data[kPerspective0] = v[SkMatrix::kMPersp0];
171 data[kPerspective1] = v[SkMatrix::kMPersp1];
172 data[kPerspective2] = v[SkMatrix::kMPersp2];
176 // NOTE: The flags are compatible between SkMatrix and this class.
177 // However, SkMatrix::getType() does not return the flag
186 void Matrix4::copyTo(SkMatrix& v) const {
189 v.set(SkMatrix::kMScaleX, data[kScaleX]);
190 v.set(SkMatrix::kMSkewX, data[kSkewX]);
191 v.set(SkMatrix::kMTransX, data[kTranslateX]);
193 v.set(SkMatrix::kMSkewY, data[kSkewY]);
194 v.set(SkMatrix::kMScaleY, data[kScaleY]);
195 v.set(SkMatrix::kMTransY, data[kTranslateY]);
197 v.set(SkMatrix::kMPersp0, data[kPerspective0]);
198 v.set(SkMatrix::kMPersp1, data[kPerspective1]);
199 v.set(SkMatrix::kMPersp2, data[kPerspective2]);