Lines Matching refs:scales
123 SkScalar scales[2];
130 success = identity.getMinMaxScales(scales);
131 REPORTER_ASSERT(reporter, success && SK_Scalar1 == scales[0] && SK_Scalar1 == scales[1]);
137 success = scale.getMinMaxScales(scales);
138 REPORTER_ASSERT(reporter, success && SK_Scalar1 * 2 == scales[0] && SK_Scalar1 * 4 == scales[1]);
145 success = rot90Scale.getMinMaxScales(scales);
146 REPORTER_ASSERT(reporter, success && SK_Scalar1 / 4 == scales[0] && SK_Scalar1 / 2 == scales[1]);
152 success = rotate.getMinMaxScales(scales);
154 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(SK_Scalar1, scales[0], SK_ScalarNearlyZero));
155 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(SK_Scalar1, scales[1], SK_ScalarNearlyZero));
161 success = translate.getMinMaxScales(scales);
162 REPORTER_ASSERT(reporter, success && SK_Scalar1 == scales[0] && SK_Scalar1 == scales[1]);
169 // Verify that getMinMaxScales() doesn't update the scales array on failure.
170 scales[0] = -5;
171 scales[1] = -5;
172 success = perspX.getMinMaxScales(scales);
173 REPORTER_ASSERT(reporter, !success && -5 * SK_Scalar1 == scales[0] && -5 * SK_Scalar1 == scales[1]);
180 scales[0] = -5;
181 scales[1] = -5;
182 success = perspY.getMinMaxScales(scales);
183 REPORTER_ASSERT(reporter, !success && -5 * SK_Scalar1 == scales[0] && -5 * SK_Scalar1 == scales[1]);
207 SkScalar scales[2];
208 bool success = mat.getMinMaxScales(scales);
210 REPORTER_ASSERT(reporter, !success || (scales[0] == minScale && scales[1] == maxScale));
387 // scales zero, only skews (rotation)
394 // scales zero, only skews (reflection)