• Home
  • Raw
  • Download

Lines Matching refs:scales

123     SkScalar scales[2];  in test_matrix_min_max_scale()  local
130 success = identity.getMinMaxScales(scales); in test_matrix_min_max_scale()
131 REPORTER_ASSERT(reporter, success && SK_Scalar1 == scales[0] && SK_Scalar1 == scales[1]); in test_matrix_min_max_scale()
137 success = scale.getMinMaxScales(scales); in test_matrix_min_max_scale()
138 … REPORTER_ASSERT(reporter, success && SK_Scalar1 * 2 == scales[0] && SK_Scalar1 * 4 == scales[1]); in test_matrix_min_max_scale()
145 success = rot90Scale.getMinMaxScales(scales); in test_matrix_min_max_scale()
146 … REPORTER_ASSERT(reporter, success && SK_Scalar1 / 4 == scales[0] && SK_Scalar1 / 2 == scales[1]); in test_matrix_min_max_scale()
152 success = rotate.getMinMaxScales(scales); in test_matrix_min_max_scale()
154 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(SK_Scalar1, scales[0], SK_ScalarNearlyZero)); in test_matrix_min_max_scale()
155 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(SK_Scalar1, scales[1], SK_ScalarNearlyZero)); in test_matrix_min_max_scale()
161 success = translate.getMinMaxScales(scales); in test_matrix_min_max_scale()
162 REPORTER_ASSERT(reporter, success && SK_Scalar1 == scales[0] && SK_Scalar1 == scales[1]); in test_matrix_min_max_scale()
170 scales[0] = -5; in test_matrix_min_max_scale()
171 scales[1] = -5; in test_matrix_min_max_scale()
172 success = perspX.getMinMaxScales(scales); in test_matrix_min_max_scale()
173 …REPORTER_ASSERT(reporter, !success && -5 * SK_Scalar1 == scales[0] && -5 * SK_Scalar1 == scales[1… in test_matrix_min_max_scale()
180 scales[0] = -5; in test_matrix_min_max_scale()
181 scales[1] = -5; in test_matrix_min_max_scale()
182 success = perspY.getMinMaxScales(scales); in test_matrix_min_max_scale()
183 …REPORTER_ASSERT(reporter, !success && -5 * SK_Scalar1 == scales[0] && -5 * SK_Scalar1 == scales[1… in test_matrix_min_max_scale()
207 SkScalar scales[2]; in test_matrix_min_max_scale() local
208 bool success = mat.getMinMaxScales(scales); in test_matrix_min_max_scale()
210 REPORTER_ASSERT(reporter, !success || (scales[0] == minScale && scales[1] == maxScale)); in test_matrix_min_max_scale()