Revert incorrect change to GrCoverageSetOp test factory

Change-Id: I7d2c9f4e5c2cded2eb06b9a18b73700726103f15
Reviewed-on: https://skia-review.googlesource.com/11292
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
This commit is contained in:
Brian Salomon 2017-04-04 19:04:00 -04:00 committed by Skia Commit-Bot
parent 72e551e637
commit 0721fe96ae

View File

@ -228,6 +228,6 @@ GR_DEFINE_XP_FACTORY_TEST(GrCoverageSetOpXPFactory);
const GrXPFactory* GrCoverageSetOpXPFactory::TestGet(GrProcessorTestData* d) {
SkRegion::Op regionOp = SkRegion::Op(d->fRandom->nextULessThan(SkRegion::kLastOp + 1));
bool invertCoverage = !d->fRenderTargetContext->hasMixedSamples() && d->fRandom->nextBool();
return new GrCoverageSetOpXPFactory(regionOp, invertCoverage);
return GrCoverageSetOpXPFactory::Get(regionOp, invertCoverage);
}
#endif