Lines Matching refs:ccpr
33 CCPRClip(GrCoverageCountingPathRenderer* ccpr, const SkPath& path) : fCCPR(ccpr), fPath(path) {} in CCPRClip() argument
142 CCPRPathDrawer ccpr(fMockContext.get(), reporter); in run() local
143 if (!ccpr.valid()) { in run()
149 this->onRun(reporter, ccpr); in run()
155 virtual void onRun(skiatest::Reporter* reporter, CCPRPathDrawer& ccpr) = 0;
168 void onRun(skiatest::Reporter* reporter, CCPRPathDrawer& ccpr) override { in onRun() argument
173 ccpr.drawPath(fPath); in onRun()
174 ccpr.clipFullscreenRect(fPath); in onRun()
177 ccpr.flush(); in onRun()
182 ccpr.drawPath(fPath); in onRun()
183 ccpr.clipFullscreenRect(fPath); in onRun()
185 ccpr.abandonGrContext(); in onRun()
194 void onRun(skiatest::Reporter* reporter, CCPRPathDrawer& ccpr) override { in onRun() argument
198 ccpr.drawPath(fPath); in onRun()
200 ccpr.clear(); // Clear should delete the CCPR Op. in onRun()
202 ccpr.flush(); // Should not crash (DrawPathsOp should have unregistered itself). in onRun()
205 ccpr.drawPath(fPath); in onRun()
207 ccpr.clear(); // Clear should delete the CCPR DrawPathsOp. in onRun()
209 ccpr.abandonGrContext(); in onRun()
216 void onRun(skiatest::Reporter* reporter, CCPRPathDrawer& ccpr) override { in onRun() argument
225 ccpr.drawPath(largeOutsidePath); in onRun()
231 ccpr.drawPath(emptyPath); in onRun()
234 ccpr.flush(); in onRun()
237 ccpr.clipFullscreenRect(largeOutsidePath); in onRun()
238 ccpr.clipFullscreenRect(emptyPath); in onRun()
239 ccpr.flush(); in onRun()
242 ccpr.drawPath(largeOutsidePath); in onRun()
243 ccpr.clipFullscreenRect(largeOutsidePath); in onRun()
244 ccpr.drawPath(emptyPath); in onRun()
245 ccpr.clipFullscreenRect(emptyPath); in onRun()
246 ccpr.flush(); in onRun()
257 CCPRPathDrawer ccpr(ctx, reporter); in run() local
258 if (!ccpr.valid()) { in run()
261 this->onRun(reporter, ccpr); in run()
267 virtual void onRun(skiatest::Reporter* reporter, const CCPRPathDrawer& ccpr) const = 0;
277 void onRun(skiatest::Reporter* reporter, const CCPRPathDrawer& ccpr) const override { in onRun()
279 ccpr.clear(); in onRun()
287 ccpr.drawPath(busyPath); in onRun()
289 ccpr.flush(); // If this doesn't crash, the test passed. in onRun()