• Home
  • Raw
  • Download

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 && 1 == scales[0] && 1 == scales[1]); in test_matrix_min_max_scale()
183 success = scale.getMinMaxScales(scales); in test_matrix_min_max_scale()
184 REPORTER_ASSERT(reporter, success && 2 == scales[0] && 4 == scales[1]); in test_matrix_min_max_scale()
190 success = rot90Scale.getMinMaxScales(scales); in test_matrix_min_max_scale()
191 … REPORTER_ASSERT(reporter, success && SK_Scalar1 / 4 == scales[0] && SK_Scalar1 / 2 == scales[1]); in test_matrix_min_max_scale()
197 success = rotate.getMinMaxScales(scales); in test_matrix_min_max_scale()
199 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(1, scales[0], SK_ScalarNearlyZero)); in test_matrix_min_max_scale()
200 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(1, scales[1], SK_ScalarNearlyZero)); in test_matrix_min_max_scale()
206 success = translate.getMinMaxScales(scales); in test_matrix_min_max_scale()
207 REPORTER_ASSERT(reporter, success && 1 == scales[0] && 1 == scales[1]); in test_matrix_min_max_scale()
213 success = perspX.getMinMaxScales(scales); in test_matrix_min_max_scale()
221 success = big.getMinMaxScales(scales); in test_matrix_min_max_scale()
229 success = givingNegativeNearlyZeros.getMinMaxScales(scales); in test_matrix_min_max_scale()
230 REPORTER_ASSERT(reporter, success && 0 == scales[0]); in test_matrix_min_max_scale()
236 scales[0] = -5; in test_matrix_min_max_scale()
237 scales[1] = -5; in test_matrix_min_max_scale()
238 success = perspY.getMinMaxScales(scales); in test_matrix_min_max_scale()
239 REPORTER_ASSERT(reporter, !success && -5 == scales[0] && -5 == scales[1]); in test_matrix_min_max_scale()
263 SkScalar scales[2]; in test_matrix_min_max_scale() local
264 bool success = mat.getMinMaxScales(scales); in test_matrix_min_max_scale()
266 REPORTER_ASSERT(reporter, !success || (scales[0] == minScale && scales[1] == maxScale)); in test_matrix_min_max_scale()