diff options
author | Brian Salomon <bsalomon@google.com> | 2017-04-08 07:38:53 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-04-08 12:17:11 +0000 |
commit | 48d1b4c2b2c0f41a10376ed657cde043d8f11979 (patch) | |
tree | 5d970e48864be1d57809f14e136f5da9b388eb61 /src/gpu/GrPipeline.cpp | |
parent | 5dac9b3b5bf7e9c06c207cb92e257535c7d9ec95 (diff) |
Revert "Revert "Create GrXferProcessor while doing GrProcessorSet analysis.""
This reverts commit 5dac9b3b5bf7e9c06c207cb92e257535c7d9ec95.
Bug: skia:
Change-Id: I3db2ec6776eb10c1f863b3992a2c8048c54b130f
Reviewed-on: https://skia-review.googlesource.com/12620
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/gpu/GrPipeline.cpp')
-rw-r--r-- | src/gpu/GrPipeline.cpp | 13 |
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(); |