Lines Matching refs:scales
169 SkScalar scales[2]; in test_matrix_min_max_scale() local
176 success = identity.getMinMaxScales(scales); 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()
183 success = scale.getMinMaxScales(scales); 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()
191 success = rot90Scale.getMinMaxScales(scales); 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()
198 success = rotate.getMinMaxScales(scales); 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()
207 success = translate.getMinMaxScales(scales); 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()
215 success = perspX.getMinMaxScales(scales); in test_matrix_min_max_scale()
223 success = big.getMinMaxScales(scales); in test_matrix_min_max_scale()
231 success = givingNegativeNearlyZeros.getMinMaxScales(scales); in test_matrix_min_max_scale()
232 REPORTER_ASSERT(reporter, success && 0 == scales[0]); in test_matrix_min_max_scale()
239 scales[0] = -5; in test_matrix_min_max_scale()
240 scales[1] = -5; in test_matrix_min_max_scale()
241 success = perspY.getMinMaxScales(scales); 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()
266 SkScalar scales[2]; in test_matrix_min_max_scale() local
267 bool success = mat.getMinMaxScales(scales); in test_matrix_min_max_scale()
269 REPORTER_ASSERT(reporter, !success || (scales[0] == minScale && scales[1] == maxScale)); in test_matrix_min_max_scale()