diff options
author | Chris Dalton <csmartdalton@google.com> | 2018-03-27 15:11:59 -0600 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-03-28 15:01:04 +0000 |
commit | a466228a616b1b02ede2d4389fefcfc839a54a25 (patch) | |
tree | e5a48f35dc33b0c4d0aeef4327a5960c3b5992e9 /src/gpu/GrReducedClip.h | |
parent | 41964ed46e241c95cd6c91ac99271c2a232f1b65 (diff) |
Delete GPU alpha clip masks
The cost of switching render targets on each draw to make a custom
clip is enormous. There are virtually no circumstances where this will
outperform our cached, multi-threaded software mask generator. The
tried-and-true approach to clipping on-GPU is with analytic FPs. And
now that we support CCPR clip FPs, there ulitmately should be very few
clip stacks that even require a mask as long as they don't use
deprecated SkClipOps.
Bug: skia:
Change-Id: I79c5558c93c1b99179f1e933d029f69b14ad1ce3
Reviewed-on: https://skia-review.googlesource.com/116724
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Chris Dalton <csmartdalton@google.com>
Diffstat (limited to 'src/gpu/GrReducedClip.h')
-rw-r--r-- | src/gpu/GrReducedClip.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/gpu/GrReducedClip.h b/src/gpu/GrReducedClip.h index c3838d8802..5447652137 100644 --- a/src/gpu/GrReducedClip.h +++ b/src/gpu/GrReducedClip.h @@ -83,7 +83,6 @@ public: */ bool maskRequiresAA() const { SkASSERT(!fMaskElements.isEmpty()); return fMaskRequiresAA; } - bool drawAlphaClipMask(GrRenderTargetContext*) const; bool drawStencilClipMask(GrContext*, GrRenderTargetContext*) const; int numAnalyticFPs() const { return fAnalyticFPs.count() + fCCPRClipPaths.count(); } |