Lines Matching defs:clone
106 std::unique_ptr<GrFragmentProcessor> clone() const override {
171 std::unique_ptr<GrFragmentProcessor> clone;
173 clone = fp->clone();
177 if (clone) {
178 op = TestOp::Make(dContext, std::move(clone));
183 // If the fp is cloned the number of refs should increase by one (for the clone)
791 const GrFragmentProcessor& clone) {
792 REPORTER_ASSERT(reporter, !strcmp(fp.name(), clone.name()),
795 clone.compatibleWithCoverageAsAlpha(),
797 REPORTER_ASSERT(reporter, fp.isEqual(clone),
799 REPORTER_ASSERT(reporter, fp.preservesOpaqueInput() == clone.preservesOpaqueInput(),
802 clone.hasConstantOutputForConstantInput(),
804 REPORTER_ASSERT(reporter, fp.numChildProcessors() == clone.numChildProcessors(),
806 REPORTER_ASSERT(reporter, fp.sampleUsage() == clone.sampleUsage(),
808 REPORTER_ASSERT(reporter, fp.usesSampleCoords() == clone.usesSampleCoords(),
815 // The ProcessorClone test has a history of being flaky on a number of devices. If an FP clone
879 // Tests that a fragment processor returned by GrFragmentProcessor::clone() is equivalent to its
905 // Storage for the original frame's readback and the readback of its clone.
919 std::unique_ptr<GrFragmentProcessor> clone = fp->clone();
920 if (!clone) {
924 assert_processor_equality(reporter, *fp, *clone);
929 // Draw with clone and read back the results.
930 render_fp(context, sdc.get(), std::move(clone), readDataClone.data());
933 if (!verify_identical_render(reporter, kRenderSize, "Processor clone",