Lines Matching refs:SK_Scalar1

16     const SkScalar tolerance = SK_Scalar1 / 200000;  in nearly_equal_scalar()
124 src.set(0, 0, SK_Scalar1*10, SK_Scalar1*10); in test_matrix_recttorect()
130 dst.offset(SK_Scalar1, SK_Scalar1); in test_matrix_recttorect()
135 dst.fRight += SK_Scalar1; in test_matrix_recttorect()
174 REPORTER_ASSERT(reporter, SK_Scalar1 == identity.getMinScale()); in test_matrix_min_max_scale()
175 REPORTER_ASSERT(reporter, SK_Scalar1 == identity.getMaxScale()); in test_matrix_min_max_scale()
177 REPORTER_ASSERT(reporter, success && SK_Scalar1 == scales[0] && SK_Scalar1 == scales[1]); in test_matrix_min_max_scale()
180 scale.setScale(SK_Scalar1 * 2, SK_Scalar1 * 4); in test_matrix_min_max_scale()
181 REPORTER_ASSERT(reporter, SK_Scalar1 * 2 == scale.getMinScale()); in test_matrix_min_max_scale()
182 REPORTER_ASSERT(reporter, SK_Scalar1 * 4 == scale.getMaxScale()); in test_matrix_min_max_scale()
184 … REPORTER_ASSERT(reporter, success && SK_Scalar1 * 2 == scales[0] && SK_Scalar1 * 4 == scales[1]); in test_matrix_min_max_scale()
187 rot90Scale.setRotate(90 * SK_Scalar1); in test_matrix_min_max_scale()
188 rot90Scale.postScale(SK_Scalar1 / 4, SK_Scalar1 / 2); in test_matrix_min_max_scale()
189 REPORTER_ASSERT(reporter, SK_Scalar1 / 4 == rot90Scale.getMinScale()); in test_matrix_min_max_scale()
190 REPORTER_ASSERT(reporter, SK_Scalar1 / 2 == rot90Scale.getMaxScale()); in test_matrix_min_max_scale()
192 … REPORTER_ASSERT(reporter, success && SK_Scalar1 / 4 == scales[0] && SK_Scalar1 / 2 == scales[1]); in test_matrix_min_max_scale()
195 rotate.setRotate(128 * SK_Scalar1); in test_matrix_min_max_scale()
196 …REPORTER_ASSERT(reporter, SkScalarNearlyEqual(SK_Scalar1, rotate.getMinScale(), SK_ScalarNearlyZer… in test_matrix_min_max_scale()
197 …REPORTER_ASSERT(reporter, SkScalarNearlyEqual(SK_Scalar1, rotate.getMaxScale(), SK_ScalarNearlyZer… in test_matrix_min_max_scale()
200 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(SK_Scalar1, scales[0], SK_ScalarNearlyZero)); in test_matrix_min_max_scale()
201 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(SK_Scalar1, scales[1], SK_ScalarNearlyZero)); in test_matrix_min_max_scale()
204 translate.setTranslate(10 * SK_Scalar1, -5 * SK_Scalar1); in test_matrix_min_max_scale()
205 REPORTER_ASSERT(reporter, SK_Scalar1 == translate.getMinScale()); in test_matrix_min_max_scale()
206 REPORTER_ASSERT(reporter, SK_Scalar1 == translate.getMaxScale()); in test_matrix_min_max_scale()
208 REPORTER_ASSERT(reporter, success && SK_Scalar1 == scales[0] && SK_Scalar1 == scales[1]); in test_matrix_min_max_scale()
212 perspX.setPerspX(SK_Scalar1 / 1000); in test_matrix_min_max_scale()
213 REPORTER_ASSERT(reporter, -SK_Scalar1 == perspX.getMinScale()); in test_matrix_min_max_scale()
214 REPORTER_ASSERT(reporter, -SK_Scalar1 == perspX.getMaxScale()); in test_matrix_min_max_scale()
236 perspY.setPerspY(-SK_Scalar1 / 500); in test_matrix_min_max_scale()
237 REPORTER_ASSERT(reporter, -SK_Scalar1 == perspY.getMinScale()); in test_matrix_min_max_scale()
238 REPORTER_ASSERT(reporter, -SK_Scalar1 == perspY.getMaxScale()); in test_matrix_min_max_scale()
242 …REPORTER_ASSERT(reporter, !success && -5 * SK_Scalar1 == scales[0] && -5 * SK_Scalar1 == scales[1… in test_matrix_min_max_scale()
278 static const SkScalar gVectorScaleTol = (105 * SK_Scalar1) / 100; in test_matrix_min_max_scale()
279 static const SkScalar gCloseScaleTol = (97 * SK_Scalar1) / 100; in test_matrix_min_max_scale()
381 mat.setPerspX(SK_Scalar1 / 2); in test_matrix_preserve_shape()
387 mat.setPerspY(SK_Scalar1 / 2); in test_matrix_preserve_shape()
442 mat.setAll(0, 0, 0, 0, 0, 0, 0, 0, SK_Scalar1); in test_matrix_preserve_shape()
447 mat.setAll(0, SK_Scalar1, 0, in test_matrix_preserve_shape()
448 -SK_Scalar1, 0, 0, in test_matrix_preserve_shape()
454 mat.setAll(0, SK_Scalar1, 0, in test_matrix_preserve_shape()
455 SK_Scalar1, 0, 0, in test_matrix_preserve_shape()
761 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(dst.fZ, SK_Scalar1)); in test_matrix_homogeneous()
775 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(dst.fZ, SK_Scalar1)); in test_matrix_homogeneous()
791 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(dst.fZ, SK_Scalar1)); in test_matrix_homogeneous()
885 mat.setTranslate(SK_Scalar1, SK_Scalar1); in DEF_TEST()
896 mat.setScale(SK_Scalar1/2, SkIntToScalar(2)); in DEF_TEST()
913 mat.setScale(0, SK_Scalar1); in DEF_TEST()
916 mat.setScale(SK_Scalar1, 0); in DEF_TEST()
935 { 0, 0, 0, SK_Scalar1, false }, in DEF_TEST()
936 { 0, 0, SK_Scalar1, 0, false }, in DEF_TEST()
937 { 0, 0, SK_Scalar1, SK_Scalar1, false }, in DEF_TEST()
938 { 0, SK_Scalar1, 0, 0, false }, in DEF_TEST()
939 { 0, SK_Scalar1, 0, SK_Scalar1, false }, in DEF_TEST()
940 { 0, SK_Scalar1, SK_Scalar1, 0, true }, in DEF_TEST()
941 { 0, SK_Scalar1, SK_Scalar1, SK_Scalar1, false }, in DEF_TEST()
942 { SK_Scalar1, 0, 0, 0, false }, in DEF_TEST()
943 { SK_Scalar1, 0, 0, SK_Scalar1, true }, in DEF_TEST()
944 { SK_Scalar1, 0, SK_Scalar1, 0, false }, in DEF_TEST()
945 { SK_Scalar1, 0, SK_Scalar1, SK_Scalar1, false }, in DEF_TEST()
946 { SK_Scalar1, SK_Scalar1, 0, 0, false }, in DEF_TEST()
947 { SK_Scalar1, SK_Scalar1, 0, SK_Scalar1, false }, in DEF_TEST()
948 { SK_Scalar1, SK_Scalar1, SK_Scalar1, 0, false }, in DEF_TEST()
949 { SK_Scalar1, SK_Scalar1, SK_Scalar1, SK_Scalar1, false } in DEF_TEST()
984 mat.set(SkMatrix::kMPersp1, SK_Scalar1 / 2); in DEF_TEST()