diff options
author | 2017-10-17 10:40:01 -0600 | |
---|---|---|
committer | 2017-10-17 18:48:42 +0000 | |
commit | a2ac30da36c80f616c909c671a240f2d468db124 (patch) | |
tree | 0f6190b0f04c83e2c2b0c24b850b9e9ebcb83e54 /src/gpu/ccpr/GrCoverageCountingPathRenderer.h | |
parent | 2fb81c04d74973181208f4f33eb6be4d4bae0321 (diff) |
Enable CCPR for volatile paths
Enables for volatile paths and when path mask caching is disabled.
Bug: skia:
Change-Id: I644b17f2a4f77a4ddf85265f520599499c0800cf
Reviewed-on: https://skia-review.googlesource.com/60481
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Chris Dalton <csmartdalton@google.com>
Diffstat (limited to 'src/gpu/ccpr/GrCoverageCountingPathRenderer.h')
-rw-r--r-- | src/gpu/ccpr/GrCoverageCountingPathRenderer.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/gpu/ccpr/GrCoverageCountingPathRenderer.h b/src/gpu/ccpr/GrCoverageCountingPathRenderer.h index 6025581da8..035898dc27 100644 --- a/src/gpu/ccpr/GrCoverageCountingPathRenderer.h +++ b/src/gpu/ccpr/GrCoverageCountingPathRenderer.h @@ -32,7 +32,8 @@ class GrCoverageCountingPathRenderer public: static bool IsSupported(const GrCaps&); - static sk_sp<GrCoverageCountingPathRenderer> CreateIfSupported(const GrCaps&); + static sk_sp<GrCoverageCountingPathRenderer> CreateIfSupported(const GrCaps&, + bool drawCachablePaths); // GrPathRenderer overrides. StencilSupport onGetStencilSupport(const GrShape&) const override { @@ -121,7 +122,8 @@ public: }; private: - GrCoverageCountingPathRenderer() = default; + GrCoverageCountingPathRenderer(bool drawCachablePaths) + : fDrawCachablePaths(drawCachablePaths) {} void setupPerFlushResources(GrOnFlushResourceProvider*, const uint32_t* opListIDs, int numOpListIDs, SkTArray<sk_sp<GrRenderTargetContext>>* results); @@ -143,6 +145,8 @@ private: GrSTAllocator<4, GrCCPRAtlas> fPerFlushAtlases; bool fPerFlushResourcesAreValid; SkDEBUGCODE(bool fFlushing = false;) + + const bool fDrawCachablePaths; }; #endif |