Lines Matching refs:SkMScalar
20 static bool nearly_equal_mscalar(SkMScalar a, SkMScalar b) { in nearly_equal_mscalar()
21 const SkMScalar tolerance = SK_MScalar1 / 200000; in nearly_equal_mscalar()
23 return SkTAbs<SkMScalar>(a - b) <= tolerance; in nearly_equal_mscalar()
181 SkMScalar data[] = { in make_p()
195 SkMScalar src2[] = { 1, 2 }; in test_map2()
196 SkMScalar src4[] = { src2[0], src2[1], 0, 1 }; in test_map2()
197 SkMScalar dstA[4], dstB[4]; in test_map2()
245 SkMScalar dx = 0; in test_gettype()
246 SkMScalar dy = 0; in test_gettype()
247 SkMScalar dz = 0; in test_gettype()
523 SkMScalar values4x4[16] = { 1, 2, 3, 4, in test_3x3_conversion()
530 SkMScalar values4x4flattened[16] = { 1, 2, 0, 4, in test_3x3_conversion()
650 SkMScalar a; // row 1, column 1 in test_preserves_2d_axis_alignment()
651 SkMScalar b; // row 1, column 2 in test_preserves_2d_axis_alignment()
652 SkMScalar c; // row 2, column 1 in test_preserves_2d_axis_alignment()
653 SkMScalar d; // row 2, column 2 in test_preserves_2d_axis_alignment()
769 SkMScalar x1; in test_preserves_2d_axis_alignment()
770 SkMScalar y1; in test_preserves_2d_axis_alignment()
771 SkMScalar z1; in test_preserves_2d_axis_alignment()
772 SkMScalar degrees1; in test_preserves_2d_axis_alignment()
773 SkMScalar x2; in test_preserves_2d_axis_alignment()
774 SkMScalar y2; in test_preserves_2d_axis_alignment()
775 SkMScalar z2; in test_preserves_2d_axis_alignment()
776 SkMScalar degrees2; in test_preserves_2d_axis_alignment()
811 SkMScalar sum = SkMScalarFloor(mat.get(0, 0)) + in test_toint()
819 REPORTER_ASSERT(reporter, static_cast<SkMScalar>(isum) == SkIntToMScalar(isum)); in test_toint()