Lines Matching refs:ccpr
36 CCPRClip(GrCoverageCountingPathRenderer* ccpr, const SkPath& path) : fCCPR(ccpr), fPath(path) {} in CCPRClip() argument
78 GrCoverageCountingPathRenderer* ccpr() const { return fCCPR; } in ccpr() function in CCPRPathDrawer
172 CCPRPathDrawer ccpr(skstd::exchange(mockContext, nullptr), reporter, doStroke); in run() local
173 if (!ccpr.valid()) { in run()
179 this->onRun(reporter, ccpr); in run()
186 virtual void onRun(skiatest::Reporter* reporter, CCPRPathDrawer& ccpr) = 0;
199 void onRun(skiatest::Reporter* reporter, CCPRPathDrawer& ccpr) override { in onRun() argument
204 ccpr.drawPath(fPath); in onRun()
207 ccpr.flush(); in onRun()
212 ccpr.clipFullscreenRect(fPath); in onRun()
215 ccpr.flush(); in onRun()
220 ccpr.drawPath(fPath); in onRun()
221 ccpr.clipFullscreenRect(fPath); in onRun()
225 ccpr.destroyGrContext(); in onRun()
239 void onRun(skiatest::Reporter* reporter, CCPRPathDrawer& ccpr) override { in onRun() argument
243 ccpr.drawPath(fPath); in onRun()
245 ccpr.clear(); // Clear should delete the CCPR Op. in onRun()
247 ccpr.flush(); // Should not crash (DrawPathsOp should have unregistered itself). in onRun()
250 ccpr.drawPath(fPath); in onRun()
252 ccpr.clear(); // Clear should delete the CCPR DrawPathsOp. in onRun()
254 ccpr.destroyGrContext(); // Should not crash (DrawPathsOp should have unregistered itself). in onRun()
260 void onRun(skiatest::Reporter* reporter, CCPRPathDrawer& ccpr) override { in onRun() argument
269 ccpr.drawPath(largeOutsidePath); in onRun()
275 ccpr.drawPath(emptyPath); in onRun()
278 ccpr.flush(); in onRun()
281 ccpr.clipFullscreenRect(largeOutsidePath); in onRun()
282 ccpr.clipFullscreenRect(emptyPath); in onRun()
283 ccpr.flush(); in onRun()
286 ccpr.drawPath(largeOutsidePath); in onRun()
287 ccpr.clipFullscreenRect(largeOutsidePath); in onRun()
288 ccpr.drawPath(emptyPath); in onRun()
289 ccpr.clipFullscreenRect(emptyPath); in onRun()
290 ccpr.flush(); in onRun()
315 RecordLastMockAtlasIDs(sk_sp<GrCoverageCountingPathRenderer> ccpr) : fCCPR(ccpr) {} in RecordLastMockAtlasIDs() argument
360 void drawPathsAndFlush(CCPRPathDrawer& ccpr, const SkMatrix& m) { in drawPathsAndFlush() argument
361 this->drawPathsAndFlush(ccpr, &m, 1); in drawPathsAndFlush()
363 void drawPathsAndFlush(CCPRPathDrawer& ccpr, const SkMatrix* matrices, int numMatrices) { in drawPathsAndFlush() argument
366 ccpr.drawPath(fPaths[i], matrices[i % numMatrices]); in drawPathsAndFlush()
378 ccpr.drawPath(fPaths[idx], matrices[idx % numMatrices]); in drawPathsAndFlush()
381 ccpr.flush(); in drawPathsAndFlush()
389 void onRun(skiatest::Reporter* reporter, CCPRPathDrawer& ccpr) final { in onRun() argument
390 RecordLastMockAtlasIDs atlasIDRecorder(sk_ref_sp(ccpr.ccpr())); in onRun()
391 ccpr.ctx()->contextPriv().addOnFlushCallbackObject(&atlasIDRecorder); in onRun()
393 this->onRun(reporter, ccpr, atlasIDRecorder); in onRun()
395 ccpr.ctx()->contextPriv().testingOnly_flushAndRemoveOnFlushCallbackObject(&atlasIDRecorder); in onRun()
398 virtual void onRun(skiatest::Reporter* reporter, CCPRPathDrawer& ccpr,
407 void onRun(skiatest::Reporter* reporter, CCPRPathDrawer& ccpr, in onRun() argument
412 this->drawPathsAndFlush(ccpr, m); in onRun()
428 this->drawPathsAndFlush(ccpr, m); in onRun()
436 this->drawPathsAndFlush(ccpr, m); in onRun()
443 this->drawPathsAndFlush(ccpr, m); in onRun()
452 void onRun(skiatest::Reporter* reporter, CCPRPathDrawer& ccpr, in onRun() argument
458 auto cache = ccpr.ccpr()->testingOnly_getPathCache(); in onRun()
473 this->drawPathsAndFlush(ccpr, m); in onRun()
496 void onRun(skiatest::Reporter* reporter, CCPRPathDrawer& ccpr, in onRun() argument
505 this->drawPathsAndFlush(ccpr, matrices, 3); in onRun()
517 this->drawPathsAndFlush(ccpr, SkMatrix::I()); in onRun()
521 this->drawPathsAndFlush(ccpr, matrices, 2); in onRun()
527 this->drawPathsAndFlush(ccpr, matrices, 2); in onRun()
532 this->drawPathsAndFlush(ccpr, matrices, 2); in onRun()
541 this->drawPathsAndFlush(ccpr, matrices, 2); in onRun()
551 void onRun(skiatest::Reporter* reporter, CCPRPathDrawer& ccpr, in onRun() argument
557 this->drawPathsAndFlush(ccpr, m); in onRun()
564 this->drawPathsAndFlush(ccpr, m); in onRun()
569 this->drawPathsAndFlush(ccpr, m); in onRun()
574 this->drawPathsAndFlush(ccpr, m); in onRun()
579 ccpr.ctx()->performDeferredCleanup(std::chrono::milliseconds(0)); in onRun()
587 void onRun(skiatest::Reporter* reporter, CCPRPathDrawer& ccpr, in onRun() argument
593 this->drawPathsAndFlush(ccpr, m); in onRun()
605 auto cache = ccpr.ccpr()->testingOnly_getPathCache(); in onRun()
645 void onRun(skiatest::Reporter* reporter, CCPRPathDrawer& ccpr, in onRun() argument
663 ccpr.drawPath(fPaths[pathIdx], m); in onRun()
666 ccpr.flush(); in onRun()
685 void onRun(skiatest::Reporter* reporter, CCPRPathDrawer& ccpr, in onRun() argument
696 ccpr.drawPath(p0, tileM); in onRun()
697 ccpr.flush(); in onRun()
717 ccpr.drawPath(p1, tileM); in onRun()
718 ccpr.flush(); in onRun()
725 ccpr.drawPath(p0, m0); in onRun()
726 ccpr.flush(); in onRun()
730 ccpr.drawPath(p1, m1); in onRun()
731 ccpr.flush(); in onRun()
748 void onRun(skiatest::Reporter* reporter, CCPRPathDrawer& ccpr, in onRun() argument
760 this->drawPathsAndFlush(ccpr, matrices, 2); in onRun()
839 void onRun(skiatest::Reporter* reporter, CCPRPathDrawer& ccpr) override { in onRun() argument
843 ccpr.drawPath(fPath); in onRun()
847 auto perOpListPathsMap = ccpr.ccpr()->detachPendingPaths(); in onRun()
852 ccpr.flush(); in onRun()
864 CCPRPathDrawer ccpr(sk_ref_sp(ctx), reporter, doStroke); in run() local
865 if (!ccpr.valid()) { in run()
868 this->onRun(reporter, ccpr); in run()
874 virtual void onRun(skiatest::Reporter* reporter, const CCPRPathDrawer& ccpr) const = 0;
885 void onRun(skiatest::Reporter* reporter, const CCPRPathDrawer& ccpr) const override { in onRun()
887 ccpr.clear(); in onRun()
895 ccpr.drawPath(busyPath); in onRun()
897 ccpr.flush(); // If this doesn't crash, the test passed. in onRun()