Lines Matching refs:viewMatrix
25 const SkMatrix& viewMatrix, const SkMatrix* localMatrix) { in run_crop_axis_aligned_test() argument
27 SkASSERT(viewMatrix.rectStaysRect()); in run_crop_axis_aligned_test()
29 DrawQuad quad = {GrQuad::MakeFromRect(kDrawRect, viewMatrix), in run_crop_axis_aligned_test()
39 SkRect expectedBounds = viewMatrix.mapRect(kDrawRect); in run_crop_axis_aligned_test()
50 SkAssertResult(viewMatrix.invert(&invViewMatrix)); in run_crop_axis_aligned_test()
99 const SkMatrix& viewMatrix, const SkMatrix* localMatrix) { in run_crop_fully_covered_test() argument
101 SkASSERT(!viewMatrix.rectStaysRect()); in run_crop_fully_covered_test()
106 SkAssertResult(viewMatrix.invert(&invViewMatrix)); in run_crop_fully_covered_test()
112 DrawQuad quad = {GrQuad::MakeFromRect(drawRect, viewMatrix), in run_crop_fully_covered_test()
165 static void test_axis_aligned_all_clips(skiatest::Reporter* r, const SkMatrix& viewMatrix, in test_axis_aligned_all_clips() argument
182 run_crop_axis_aligned_test(r, kInsideClipRect, GrAA::kNo, viewMatrix, localMatrix); in test_axis_aligned_all_clips()
183 run_crop_axis_aligned_test(r, kContainsClipRect, GrAA::kNo, viewMatrix, localMatrix); in test_axis_aligned_all_clips()
184 run_crop_axis_aligned_test(r, kXYAxesClipRect, GrAA::kNo, viewMatrix, localMatrix); in test_axis_aligned_all_clips()
185 run_crop_axis_aligned_test(r, kXAxisClipRect, GrAA::kNo, viewMatrix, localMatrix); in test_axis_aligned_all_clips()
186 run_crop_axis_aligned_test(r, kYAxisClipRect, GrAA::kNo, viewMatrix, localMatrix); in test_axis_aligned_all_clips()
188 run_crop_axis_aligned_test(r, kInsideClipRect, GrAA::kYes, viewMatrix, localMatrix); in test_axis_aligned_all_clips()
189 run_crop_axis_aligned_test(r, kContainsClipRect, GrAA::kYes, viewMatrix, localMatrix); in test_axis_aligned_all_clips()
190 run_crop_axis_aligned_test(r, kXYAxesClipRect, GrAA::kYes, viewMatrix, localMatrix); in test_axis_aligned_all_clips()
191 run_crop_axis_aligned_test(r, kXAxisClipRect, GrAA::kYes, viewMatrix, localMatrix); in test_axis_aligned_all_clips()
192 run_crop_axis_aligned_test(r, kYAxisClipRect, GrAA::kYes, viewMatrix, localMatrix); in test_axis_aligned_all_clips()
195 static void test_axis_aligned(skiatest::Reporter* r, const SkMatrix& viewMatrix) { in test_axis_aligned() argument
196 test_axis_aligned_all_clips(r, viewMatrix, nullptr); in test_axis_aligned()
199 test_axis_aligned_all_clips(r, viewMatrix, &normalized); in test_axis_aligned()
203 test_axis_aligned_all_clips(r, viewMatrix, &rotated); in test_axis_aligned()
208 test_axis_aligned_all_clips(r, viewMatrix, &perspective); in test_axis_aligned()
211 static void test_crop_fully_covered(skiatest::Reporter* r, const SkMatrix& viewMatrix) { in test_crop_fully_covered() argument
212 run_crop_fully_covered_test(r, GrAA::kNo, viewMatrix, nullptr); in test_crop_fully_covered()
213 run_crop_fully_covered_test(r, GrAA::kYes, viewMatrix, nullptr); in test_crop_fully_covered()
216 run_crop_fully_covered_test(r, GrAA::kNo, viewMatrix, &normalized); in test_crop_fully_covered()
217 run_crop_fully_covered_test(r, GrAA::kYes, viewMatrix, &normalized); in test_crop_fully_covered()
221 run_crop_fully_covered_test(r, GrAA::kNo, viewMatrix, &rotated); in test_crop_fully_covered()
222 run_crop_fully_covered_test(r, GrAA::kYes, viewMatrix, &rotated); in test_crop_fully_covered()
227 run_crop_fully_covered_test(r, GrAA::kNo, viewMatrix, &perspective); in test_crop_fully_covered()
228 run_crop_fully_covered_test(r, GrAA::kYes, viewMatrix, &perspective); in test_crop_fully_covered()