diff options
author | Chris Dalton <csmartdalton@google.com> | 2018-04-27 13:05:19 -0600 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-04-27 20:27:18 +0000 |
commit | 1dec19a29eab9f861cf8a1df5ff74e7879efb14d (patch) | |
tree | 89d0aca2b1102cba98bf7cba4c21699bbae05180 /src/gpu/GrReducedClip.h | |
parent | cb31248132cc5ab08b0333b1ce0ab189dc69d155 (diff) |
ccpr: Remove canMakeClipProcessor
Now that conics are supported we can make a ccpr clip FP out of any
path. No need to ask. And the 'fDrawCachablePaths' check was redundant
since clip paths are always volatile anyway (for now).
Bug: skia:
Change-Id: I670474a3b91f1c252ed323eb627bbb109788e6b8
Reviewed-on: https://skia-review.googlesource.com/124362
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Chris Dalton <csmartdalton@google.com>
Diffstat (limited to 'src/gpu/GrReducedClip.h')
-rw-r--r-- | src/gpu/GrReducedClip.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gpu/GrReducedClip.h b/src/gpu/GrReducedClip.h index c3838d8802..87ef3461e5 100644 --- a/src/gpu/GrReducedClip.h +++ b/src/gpu/GrReducedClip.h @@ -27,8 +27,7 @@ public: using ElementList = SkTLList<SkClipStack::Element, 16>; GrReducedClip(const SkClipStack&, const SkRect& queryBounds, const GrShaderCaps* caps, - int maxWindowRectangles = 0, int maxAnalyticFPs = 0, - GrCoverageCountingPathRenderer* = nullptr); + int maxWindowRectangles = 0, int maxAnalyticFPs = 0, int maxCCPRClipPaths = 0); enum class InitialState : bool { kAllIn, @@ -97,7 +96,8 @@ public: * the render target context, surface allocations, and even switching render targets (pre MDB) * may cause flushes or otherwise change which opList the actual draw is going into. */ - std::unique_ptr<GrFragmentProcessor> finishAndDetachAnalyticFPs(GrProxyProvider*, + std::unique_ptr<GrFragmentProcessor> finishAndDetachAnalyticFPs(GrCoverageCountingPathRenderer*, + GrProxyProvider*, uint32_t opListID, int rtWidth, int rtHeight); @@ -135,7 +135,7 @@ private: const GrShaderCaps* fCaps; const int fMaxWindowRectangles; const int fMaxAnalyticFPs; - GrCoverageCountingPathRenderer* const fCCPR; + const int fMaxCCPRClipPaths; InitialState fInitialState; SkIRect fScissor; |