Lines Matching refs:SkMatrix44

56 static bool nearly_equal(const SkMatrix44& a, const SkMatrix44& b) {  in nearly_equal()
68 static bool is_identity(const SkMatrix44& m) { in is_identity()
69 SkMatrix44 identity(SkMatrix44::kIdentity_Constructor); in is_identity()
80 SkMatrix44* placeholderMatrix = new SkMatrix44(SkMatrix44::kUninitialized_Constructor); in test_constructor()
81 SkAutoTDelete<SkMatrix44> deleteMe(placeholderMatrix); in test_constructor()
92SkMatrix44* testMatrix = new(placeholderMatrix) SkMatrix44(SkMatrix44::kUninitialized_Constructor); in test_constructor()
103 testMatrix = new(placeholderMatrix) SkMatrix44(SkMatrix44::kIdentity_Constructor); in test_constructor()
106 REPORTER_ASSERT(reporter, *testMatrix == SkMatrix44::I()); in test_constructor()
109 SkMatrix44 scaleMatrix(SkMatrix44::kUninitialized_Constructor); in test_constructor()
112 testMatrix = new(&scaleMatrix) SkMatrix44(SkMatrix::I()); in test_constructor()
114 REPORTER_ASSERT(reporter, *testMatrix == SkMatrix44::I()); in test_constructor()
118 SkMatrix44 mat(SkMatrix44::kUninitialized_Constructor); in test_translate()
119 SkMatrix44 inverse(SkMatrix44::kUninitialized_Constructor); in test_translate()
122 REPORTER_ASSERT(reporter, bits_isonly(mat.getType(), SkMatrix44::kIdentity_Mask)); in test_translate()
124 REPORTER_ASSERT(reporter, bits_isonly(mat.getType(), SkMatrix44::kTranslate_Mask)); in test_translate()
126 REPORTER_ASSERT(reporter, bits_isonly(inverse.getType(), SkMatrix44::kTranslate_Mask)); in test_translate()
128 SkMatrix44 a(SkMatrix44::kUninitialized_Constructor); in test_translate()
129 SkMatrix44 b(SkMatrix44::kUninitialized_Constructor); in test_translate()
130 SkMatrix44 c(SkMatrix44::kUninitialized_Constructor); in test_translate()
146 SkMatrix44 mat(SkMatrix44::kUninitialized_Constructor); in test_scale()
147 SkMatrix44 inverse(SkMatrix44::kUninitialized_Constructor); in test_scale()
150 REPORTER_ASSERT(reporter, bits_isonly(mat.getType(), SkMatrix44::kIdentity_Mask)); in test_scale()
152 REPORTER_ASSERT(reporter, bits_isonly(mat.getType(), SkMatrix44::kScale_Mask)); in test_scale()
154 REPORTER_ASSERT(reporter, bits_isonly(inverse.getType(), SkMatrix44::kScale_Mask)); in test_scale()
156 SkMatrix44 a(SkMatrix44::kUninitialized_Constructor); in test_scale()
157 SkMatrix44 b(SkMatrix44::kUninitialized_Constructor); in test_scale()
158 SkMatrix44 c(SkMatrix44::kUninitialized_Constructor); in test_scale()
173 static void make_i(SkMatrix44* mat) { mat->setIdentity(); } in make_i()
174 static void make_t(SkMatrix44* mat) { mat->setTranslate(1, 2, 3); } in make_t()
175 static void make_s(SkMatrix44* mat) { mat->setScale(1, 2, 3); } in make_s()
176 static void make_st(SkMatrix44* mat) { in make_st()
180 static void make_a(SkMatrix44* mat) { in make_a()
183 static void make_p(SkMatrix44* mat) { in make_p()
191 typedef void (*Make44Proc)(SkMatrix44*);
197 static void test_map2(skiatest::Reporter* reporter, const SkMatrix44& mat) { in test_map2()
216 SkMatrix44 mat(SkMatrix44::kUninitialized_Constructor); in test_map2()
225 SkMatrix44 matrix(SkMatrix44::kIdentity_Constructor); in test_gettype()
228 REPORTER_ASSERT(reporter, SkMatrix44::kIdentity_Mask == matrix.getType()); in test_gettype()
233 expectedMask = SkMatrix44::kScale_Mask; in test_gettype()
237 expectedMask |= SkMatrix44::kTranslate_Mask; in test_gettype()
241 expectedMask |= SkMatrix44::kAffine_Mask; in test_gettype()
245 REPORTER_ASSERT(reporter, matrix.getType() & SkMatrix44::kPerspective_Mask); in test_gettype()
260 SkMatrix44 rot(SkMatrix44::kUninitialized_Constructor); in test_common_angles()
273 SkMatrix44 a(SkMatrix44::kUninitialized_Constructor); in test_concat()
274 SkMatrix44 b(SkMatrix44::kUninitialized_Constructor); in test_concat()
275 SkMatrix44 c(SkMatrix44::kUninitialized_Constructor); in test_concat()
276 SkMatrix44 d(SkMatrix44::kUninitialized_Constructor); in test_concat()
313 SkMatrix44 a(SkMatrix44::kIdentity_Constructor); in test_determinant()
317 SkMatrix44 b(SkMatrix44::kUninitialized_Constructor); in test_determinant()
320 SkMatrix44 c = b = a; in test_determinant()
326 SkMatrix44 d = a; in test_determinant()
330 SkMatrix44 e = a; in test_determinant()
338 SkMatrix44 inverse(SkMatrix44::kUninitialized_Constructor); in test_invert()
341 SkMatrix44 identity(SkMatrix44::kIdentity_Constructor); in test_invert()
350 SkMatrix44 translation(SkMatrix44::kUninitialized_Constructor); in test_invert()
360 SkMatrix44 scale(SkMatrix44::kUninitialized_Constructor); in test_invert()
370 SkMatrix44 scaleTranslation(SkMatrix44::kUninitialized_Constructor); in test_invert()
381 SkMatrix44 rotation(SkMatrix44::kUninitialized_Constructor); in test_invert()
384 SkMatrix44 expected(SkMatrix44::kUninitialized_Constructor); in test_invert()
393 SkMatrix44 affine(SkMatrix44::kUninitialized_Constructor); in test_invert()
406 SkMatrix44 perspective(SkMatrix44::kIdentity_Constructor); in test_invert()
417 SkMatrix44 affineAndPerspective(SkMatrix44::kIdentity_Constructor); in test_invert()
432 SkMatrix44 a(SkMatrix44::kUninitialized_Constructor); in test_transpose()
433 SkMatrix44 b(SkMatrix44::kUninitialized_Constructor); in test_transpose()
448 SkMatrix44 a(SkMatrix44::kUninitialized_Constructor); in test_get_set_double()
463 SkMatrix44 a(SkMatrix44::kUninitialized_Constructor); in test_set_row_col_major()
464 SkMatrix44 b(SkMatrix44::kUninitialized_Constructor); in test_set_row_col_major()
500 SkMatrix44 a44(SkMatrix44::kUninitialized_Constructor); in test_3x3_conversion()
508 SkMatrix44 a44flattened = a33; in test_3x3_conversion()
509 SkMatrix44 expected44flattened(SkMatrix44::kUninitialized_Constructor); in test_3x3_conversion()
533 SkMatrix44 transform(SkMatrix44::kIdentity_Constructor); in test_has_perspective()
572 static SkVector4 mul_with_persp_divide(const SkMatrix44& transform, const SkVector4& target) { in mul_with_persp_divide()
585 const SkMatrix44& transform) { in empirically_preserves_2d_axis_alignment()
601 static void test(bool expected, skiatest::Reporter* reporter, const SkMatrix44& transform) { in test()
612 SkMatrix44 transform(SkMatrix44::kUninitialized_Constructor); in test_preserves_2d_axis_alignment()
613 SkMatrix44 transform2(SkMatrix44::kUninitialized_Constructor); in test_preserves_2d_axis_alignment()
774 SkMatrix44 mat(SkMatrix44::kUninitialized_Constructor); in test_toint()
789 SkMatrix44 mat(SkMatrix44::kUninitialized_Constructor); in DEF_TEST()
790 SkMatrix44 inverse(SkMatrix44::kUninitialized_Constructor); in DEF_TEST()
791 SkMatrix44 iden1(SkMatrix44::kUninitialized_Constructor); in DEF_TEST()
792 SkMatrix44 iden2(SkMatrix44::kUninitialized_Constructor); in DEF_TEST()
793 SkMatrix44 rot(SkMatrix44::kUninitialized_Constructor); in DEF_TEST()