aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrPipeline.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpu/GrPipeline.cpp')
-rw-r--r--src/gpu/GrPipeline.cpp13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/gpu/GrPipeline.cpp b/src/gpu/GrPipeline.cpp
index 759f97ce2c..d1f5931d9a 100644
--- a/src/gpu/GrPipeline.cpp
+++ b/src/gpu/GrPipeline.cpp
@@ -20,6 +20,8 @@
void GrPipeline::init(const InitArgs& args) {
SkASSERT(args.fRenderTarget);
+ SkASSERT(args.fProcessors);
+ SkASSERT(args.fProcessors->isFinalized());
fRenderTarget.reset(args.fRenderTarget);
@@ -48,17 +50,8 @@ void GrPipeline::init(const InitArgs& args) {
fDrawFace = static_cast<int16_t>(args.fDrawFace);
- bool isHWAA = kHWAntialias_Flag & args.fFlags;
+ fXferProcessor.reset(args.fProcessors->xferProcessor());
- // Create XferProcessor from DS's XPFactory
- {
- bool hasMixedSamples =
- args.fRenderTarget->isMixedSampled() && (isHWAA || this->isStencilEnabled());
- sk_sp<GrXferProcessor> xferProcessor =
- GrXPFactory::MakeXferProcessor(args.fProcessors->xpFactory(), args.fXPInputColor,
- args.fXPInputCoverage, hasMixedSamples, *args.fCaps);
- fXferProcessor.reset(xferProcessor.get());
- }
if (args.fDstTexture.texture()) {
fDstTexture.reset(args.fDstTexture.texture());
fDstTextureOffset = args.fDstTexture.offset();