diff options
author | Chris Dalton <csmartdalton@google.com> | 2017-10-06 08:30:46 -0600 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-10-06 14:57:54 +0000 |
commit | d151322b6cf3ea44533453db07fce8ce1fd3d015 (patch) | |
tree | a36152f31fd3ffb498d03d107538da1f6b644211 /src/gpu | |
parent | d72747c5c3b3aaaa9e5957242bd478980cac942e (diff) |
CCPR: Don't forget resource provider in Pipeline InitArgs
Ideally this would use an initializer list to guarantee we never
forget another value in the future, but the default member values
don't allow it.
Bug: skia:
Change-Id: I21e5b33bb99c4e0d42a7988b444d08266320bf37
Reviewed-on: https://skia-review.googlesource.com/56262
Commit-Queue: Chris Dalton <csmartdalton@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/gpu')
-rw-r--r-- | src/gpu/ccpr/GrCoverageCountingPathRenderer.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/gpu/ccpr/GrCoverageCountingPathRenderer.cpp b/src/gpu/ccpr/GrCoverageCountingPathRenderer.cpp index 583f39b321..a5b423010d 100644 --- a/src/gpu/ccpr/GrCoverageCountingPathRenderer.cpp +++ b/src/gpu/ccpr/GrCoverageCountingPathRenderer.cpp @@ -370,12 +370,13 @@ void DrawPathsOp::onExecute(GrOpFlushState* flushState) { return; // Setup failed. } - GrPipeline::InitArgs args; - args.fCaps = &flushState->caps(); - args.fFlags = fSRGBFlags; - args.fProxy = flushState->drawOpArgs().fProxy; - args.fDstProxy = flushState->drawOpArgs().fDstProxy; - GrPipeline pipeline(args, std::move(fProcessors), flushState->detachAppliedClip()); + GrPipeline::InitArgs initArgs; + initArgs.fFlags = fSRGBFlags; + initArgs.fProxy = flushState->drawOpArgs().fProxy; + initArgs.fCaps = &flushState->caps(); + initArgs.fResourceProvider = flushState->resourceProvider(); + initArgs.fDstProxy = flushState->drawOpArgs().fDstProxy; + GrPipeline pipeline(initArgs, std::move(fProcessors), flushState->detachAppliedClip()); int baseInstance = fBaseInstance; |