• Home
  • Raw
  • Download

Lines Matching refs:ccpr

37     CCPRClip(GrCoverageCountingPathRenderer* ccpr, const SkPath& path) : fCCPR(ccpr), fPath(path) {}  in CCPRClip()  argument
79 GrCoverageCountingPathRenderer* ccpr() const { return fCCPR; } in ccpr() function in CCPRPathDrawer
173 CCPRPathDrawer ccpr(skstd::exchange(mockContext, nullptr), reporter, doStroke); in run() local
174 if (!ccpr.valid()) { in run()
180 this->onRun(reporter, ccpr); in run()
187 virtual void onRun(skiatest::Reporter* reporter, CCPRPathDrawer& ccpr) = 0;
200 void onRun(skiatest::Reporter* reporter, CCPRPathDrawer& ccpr) override { in onRun() argument
205 ccpr.drawPath(fPath); in onRun()
208 ccpr.flush(); in onRun()
213 ccpr.clipFullscreenRect(fPath); in onRun()
216 ccpr.flush(); in onRun()
221 ccpr.drawPath(fPath); in onRun()
222 ccpr.clipFullscreenRect(fPath); in onRun()
226 ccpr.destroyGrContext(); in onRun()
240 void onRun(skiatest::Reporter* reporter, CCPRPathDrawer& ccpr) override { in onRun() argument
244 ccpr.drawPath(fPath); in onRun()
246 ccpr.clear(); // Clear should delete the CCPR Op. in onRun()
248 ccpr.flush(); // Should not crash (DrawPathsOp should have unregistered itself). in onRun()
251 ccpr.drawPath(fPath); in onRun()
253 ccpr.clear(); // Clear should delete the CCPR DrawPathsOp. in onRun()
255 ccpr.destroyGrContext(); // Should not crash (DrawPathsOp should have unregistered itself). in onRun()
261 void onRun(skiatest::Reporter* reporter, CCPRPathDrawer& ccpr) override { in onRun() argument
270 ccpr.drawPath(largeOutsidePath); in onRun()
276 ccpr.drawPath(emptyPath); in onRun()
279 ccpr.flush(); in onRun()
282 ccpr.clipFullscreenRect(largeOutsidePath); in onRun()
283 ccpr.clipFullscreenRect(emptyPath); in onRun()
284 ccpr.flush(); in onRun()
287 ccpr.drawPath(largeOutsidePath); in onRun()
288 ccpr.clipFullscreenRect(largeOutsidePath); in onRun()
289 ccpr.drawPath(emptyPath); in onRun()
290 ccpr.clipFullscreenRect(emptyPath); in onRun()
291 ccpr.flush(); in onRun()
316 RecordLastMockAtlasIDs(sk_sp<GrCoverageCountingPathRenderer> ccpr) : fCCPR(ccpr) {} in RecordLastMockAtlasIDs() argument
361 void drawPathsAndFlush(CCPRPathDrawer& ccpr, const SkMatrix& m) { in drawPathsAndFlush() argument
362 this->drawPathsAndFlush(ccpr, &m, 1); in drawPathsAndFlush()
364 void drawPathsAndFlush(CCPRPathDrawer& ccpr, const SkMatrix* matrices, int numMatrices) { in drawPathsAndFlush() argument
367 ccpr.drawPath(fPaths[i], matrices[i % numMatrices]); in drawPathsAndFlush()
379 ccpr.drawPath(fPaths[idx], matrices[idx % numMatrices]); in drawPathsAndFlush()
382 ccpr.flush(); in drawPathsAndFlush()
390 void onRun(skiatest::Reporter* reporter, CCPRPathDrawer& ccpr) final { in onRun() argument
391 RecordLastMockAtlasIDs atlasIDRecorder(sk_ref_sp(ccpr.ccpr())); in onRun()
392 ccpr.ctx()->priv().addOnFlushCallbackObject(&atlasIDRecorder); in onRun()
394 this->onRun(reporter, ccpr, atlasIDRecorder); in onRun()
396 ccpr.ctx()->priv().testingOnly_flushAndRemoveOnFlushCallbackObject(&atlasIDRecorder); in onRun()
399 virtual void onRun(skiatest::Reporter* reporter, CCPRPathDrawer& ccpr,
408 void onRun(skiatest::Reporter* reporter, CCPRPathDrawer& ccpr, in onRun() argument
413 this->drawPathsAndFlush(ccpr, m); in onRun()
429 this->drawPathsAndFlush(ccpr, m); in onRun()
437 this->drawPathsAndFlush(ccpr, m); in onRun()
444 this->drawPathsAndFlush(ccpr, m); in onRun()
453 void onRun(skiatest::Reporter* reporter, CCPRPathDrawer& ccpr, in onRun() argument
459 auto cache = ccpr.ccpr()->testingOnly_getPathCache(); in onRun()
474 this->drawPathsAndFlush(ccpr, m); in onRun()
497 void onRun(skiatest::Reporter* reporter, CCPRPathDrawer& ccpr, in onRun() argument
506 this->drawPathsAndFlush(ccpr, matrices, 3); in onRun()
518 this->drawPathsAndFlush(ccpr, SkMatrix::I()); in onRun()
522 this->drawPathsAndFlush(ccpr, matrices, 2); in onRun()
528 this->drawPathsAndFlush(ccpr, matrices, 2); in onRun()
533 this->drawPathsAndFlush(ccpr, matrices, 2); in onRun()
542 this->drawPathsAndFlush(ccpr, matrices, 2); in onRun()
552 void onRun(skiatest::Reporter* reporter, CCPRPathDrawer& ccpr, in onRun() argument
558 this->drawPathsAndFlush(ccpr, m); in onRun()
565 this->drawPathsAndFlush(ccpr, m); in onRun()
570 this->drawPathsAndFlush(ccpr, m); in onRun()
575 this->drawPathsAndFlush(ccpr, m); in onRun()
580 ccpr.ctx()->performDeferredCleanup(std::chrono::milliseconds(0)); in onRun()
588 void onRun(skiatest::Reporter* reporter, CCPRPathDrawer& ccpr, in onRun() argument
594 this->drawPathsAndFlush(ccpr, m); in onRun()
606 auto cache = ccpr.ccpr()->testingOnly_getPathCache(); in onRun()
646 void onRun(skiatest::Reporter* reporter, CCPRPathDrawer& ccpr, in onRun() argument
664 ccpr.drawPath(fPaths[pathIdx], m); in onRun()
667 ccpr.flush(); in onRun()
686 void onRun(skiatest::Reporter* reporter, CCPRPathDrawer& ccpr, in onRun() argument
697 ccpr.drawPath(p0, tileM); in onRun()
698 ccpr.flush(); in onRun()
718 ccpr.drawPath(p1, tileM); in onRun()
719 ccpr.flush(); in onRun()
726 ccpr.drawPath(p0, m0); in onRun()
727 ccpr.flush(); in onRun()
731 ccpr.drawPath(p1, m1); in onRun()
732 ccpr.flush(); in onRun()
749 void onRun(skiatest::Reporter* reporter, CCPRPathDrawer& ccpr, in onRun() argument
761 this->drawPathsAndFlush(ccpr, matrices, 2); in onRun()
840 void onRun(skiatest::Reporter* reporter, CCPRPathDrawer& ccpr) override { in onRun() argument
844 ccpr.drawPath(fPath); in onRun()
848 auto perOpListPathsMap = ccpr.ccpr()->detachPendingPaths(); in onRun()
853 ccpr.flush(); in onRun()
865 CCPRPathDrawer ccpr(sk_ref_sp(ctx), reporter, doStroke); in run() local
866 if (!ccpr.valid()) { in run()
869 this->onRun(reporter, ccpr); in run()
875 virtual void onRun(skiatest::Reporter* reporter, const CCPRPathDrawer& ccpr) const = 0;
886 void onRun(skiatest::Reporter* reporter, const CCPRPathDrawer& ccpr) const override { in onRun()
888 ccpr.clear(); in onRun()
896 ccpr.drawPath(busyPath); in onRun()
898 ccpr.flush(); // If this doesn't crash, the test passed. in onRun()