• Home
  • Raw
  • Download

Lines Matching refs:scales

179     SkScalar scales[2];  in test_matrix_min_max_scale()  local
186 success = identity.getMinMaxScales(scales); in test_matrix_min_max_scale()
187 REPORTER_ASSERT(reporter, success && 1 == scales[0] && 1 == scales[1]); in test_matrix_min_max_scale()
193 success = scale.getMinMaxScales(scales); in test_matrix_min_max_scale()
194 REPORTER_ASSERT(reporter, success && 2 == scales[0] && 4 == scales[1]); in test_matrix_min_max_scale()
200 success = rot90Scale.getMinMaxScales(scales); in test_matrix_min_max_scale()
201 … REPORTER_ASSERT(reporter, success && SK_Scalar1 / 4 == scales[0] && SK_Scalar1 / 2 == scales[1]); in test_matrix_min_max_scale()
207 success = rotate.getMinMaxScales(scales); in test_matrix_min_max_scale()
209 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(1, scales[0], SK_ScalarNearlyZero)); in test_matrix_min_max_scale()
210 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(1, scales[1], SK_ScalarNearlyZero)); in test_matrix_min_max_scale()
216 success = translate.getMinMaxScales(scales); in test_matrix_min_max_scale()
217 REPORTER_ASSERT(reporter, success && 1 == scales[0] && 1 == scales[1]); in test_matrix_min_max_scale()
223 success = perspX.getMinMaxScales(scales); in test_matrix_min_max_scale()
231 success = big.getMinMaxScales(scales); in test_matrix_min_max_scale()
239 success = givingNegativeNearlyZeros.getMinMaxScales(scales); in test_matrix_min_max_scale()
240 REPORTER_ASSERT(reporter, success && 0 == scales[0]); in test_matrix_min_max_scale()
246 scales[0] = -5; in test_matrix_min_max_scale()
247 scales[1] = -5; in test_matrix_min_max_scale()
248 success = perspY.getMinMaxScales(scales); in test_matrix_min_max_scale()
249 REPORTER_ASSERT(reporter, !success && -5 == scales[0] && -5 == scales[1]); in test_matrix_min_max_scale()
273 SkScalar scales[2]; in test_matrix_min_max_scale() local
274 bool success = mat.getMinMaxScales(scales); in test_matrix_min_max_scale()
276 REPORTER_ASSERT(reporter, !success || (scales[0] == minScale && scales[1] == maxScale)); in test_matrix_min_max_scale()