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()
92 …SkMatrix44* 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()
110 SkMatrix44 mat(SkMatrix44::kUninitialized_Constructor); in test_translate()
111 SkMatrix44 inverse(SkMatrix44::kUninitialized_Constructor); in test_translate()
114 REPORTER_ASSERT(reporter, bits_isonly(mat.getType(), SkMatrix44::kIdentity_Mask)); in test_translate()
116 REPORTER_ASSERT(reporter, bits_isonly(mat.getType(), SkMatrix44::kTranslate_Mask)); in test_translate()
118 REPORTER_ASSERT(reporter, bits_isonly(inverse.getType(), SkMatrix44::kTranslate_Mask)); in test_translate()
120 SkMatrix44 a(SkMatrix44::kUninitialized_Constructor); in test_translate()
121 SkMatrix44 b(SkMatrix44::kUninitialized_Constructor); in test_translate()
122 SkMatrix44 c(SkMatrix44::kUninitialized_Constructor); in test_translate()
138 SkMatrix44 mat(SkMatrix44::kUninitialized_Constructor); in test_scale()
139 SkMatrix44 inverse(SkMatrix44::kUninitialized_Constructor); in test_scale()
142 REPORTER_ASSERT(reporter, bits_isonly(mat.getType(), SkMatrix44::kIdentity_Mask)); in test_scale()
144 REPORTER_ASSERT(reporter, bits_isonly(mat.getType(), SkMatrix44::kScale_Mask)); in test_scale()
146 REPORTER_ASSERT(reporter, bits_isonly(inverse.getType(), SkMatrix44::kScale_Mask)); in test_scale()
148 SkMatrix44 a(SkMatrix44::kUninitialized_Constructor); in test_scale()
149 SkMatrix44 b(SkMatrix44::kUninitialized_Constructor); in test_scale()
150 SkMatrix44 c(SkMatrix44::kUninitialized_Constructor); in test_scale()
165 static void make_i(SkMatrix44* mat) { mat->setIdentity(); } in make_i()
166 static void make_t(SkMatrix44* mat) { mat->setTranslate(1, 2, 3); } in make_t()
167 static void make_s(SkMatrix44* mat) { mat->setScale(1, 2, 3); } in make_s()
168 static void make_st(SkMatrix44* mat) { in make_st()
172 static void make_a(SkMatrix44* mat) { in make_a()
175 static void make_p(SkMatrix44* mat) { in make_p()
183 typedef void (*Make44Proc)(SkMatrix44*);
189 static void test_map2(skiatest::Reporter* reporter, const SkMatrix44& mat) { in test_map2()
208 SkMatrix44 mat(SkMatrix44::kUninitialized_Constructor); in test_map2()
217 SkMatrix44 matrix(SkMatrix44::kIdentity_Constructor); in test_gettype()
220 REPORTER_ASSERT(reporter, SkMatrix44::kIdentity_Mask == matrix.getType()); in test_gettype()
225 expectedMask = SkMatrix44::kScale_Mask; in test_gettype()
229 expectedMask |= SkMatrix44::kTranslate_Mask; in test_gettype()
233 expectedMask |= SkMatrix44::kAffine_Mask; in test_gettype()
237 REPORTER_ASSERT(reporter, matrix.getType() & SkMatrix44::kPerspective_Mask); in test_gettype()
252 SkMatrix44 rot(SkMatrix44::kUninitialized_Constructor); in test_common_angles()
265 SkMatrix44 a(SkMatrix44::kUninitialized_Constructor); in test_concat()
266 SkMatrix44 b(SkMatrix44::kUninitialized_Constructor); in test_concat()
267 SkMatrix44 c(SkMatrix44::kUninitialized_Constructor); in test_concat()
268 SkMatrix44 d(SkMatrix44::kUninitialized_Constructor); in test_concat()
305 SkMatrix44 a(SkMatrix44::kIdentity_Constructor); in test_determinant()
309 SkMatrix44 b(SkMatrix44::kUninitialized_Constructor); in test_determinant()
312 SkMatrix44 c = b = a; in test_determinant()
318 SkMatrix44 d = a; in test_determinant()
322 SkMatrix44 e = a; in test_determinant()
330 SkMatrix44 inverse(SkMatrix44::kUninitialized_Constructor); in test_invert()
333 SkMatrix44 identity(SkMatrix44::kIdentity_Constructor); in test_invert()
342 SkMatrix44 translation(SkMatrix44::kUninitialized_Constructor); in test_invert()
352 SkMatrix44 scale(SkMatrix44::kUninitialized_Constructor); in test_invert()
362 SkMatrix44 scaleTranslation(SkMatrix44::kUninitialized_Constructor); in test_invert()
373 SkMatrix44 rotation(SkMatrix44::kUninitialized_Constructor); in test_invert()
376 SkMatrix44 expected(SkMatrix44::kUninitialized_Constructor); in test_invert()
385 SkMatrix44 affine(SkMatrix44::kUninitialized_Constructor); in test_invert()
398 SkMatrix44 perspective(SkMatrix44::kIdentity_Constructor); in test_invert()
409 SkMatrix44 affineAndPerspective(SkMatrix44::kIdentity_Constructor); in test_invert()
424 SkMatrix44 a(SkMatrix44::kUninitialized_Constructor); in test_transpose()
425 SkMatrix44 b(SkMatrix44::kUninitialized_Constructor); in test_transpose()
440 SkMatrix44 a(SkMatrix44::kUninitialized_Constructor); in test_get_set_double()
455 SkMatrix44 a(SkMatrix44::kUninitialized_Constructor); in test_set_row_col_major()
456 SkMatrix44 b(SkMatrix44::kUninitialized_Constructor); in test_set_row_col_major()
492 SkMatrix44 a44(SkMatrix44::kUninitialized_Constructor); in test_3x3_conversion()
500 SkMatrix44 a44flattened = a33; in test_3x3_conversion()
501 SkMatrix44 expected44flattened(SkMatrix44::kUninitialized_Constructor); in test_3x3_conversion()
525 SkMatrix44 mat(SkMatrix44::kUninitialized_Constructor); in DEF_TEST()
526 SkMatrix44 inverse(SkMatrix44::kUninitialized_Constructor); in DEF_TEST()
527 SkMatrix44 iden1(SkMatrix44::kUninitialized_Constructor); in DEF_TEST()
528 SkMatrix44 iden2(SkMatrix44::kUninitialized_Constructor); in DEF_TEST()
529 SkMatrix44 rot(SkMatrix44::kUninitialized_Constructor); in DEF_TEST()