-
Notifications
You must be signed in to change notification settings - Fork 280
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1682194 - Accelerate cs_clip_rectangle in SWGL. r=jrmuizel
cs_clip_rectangle is slow because we evaluate distance AA for every fragment the shader touches. With SWGL, we can do much better since we have control over span. We calculate an inner opaque octagon which can just use a cheap solid fill and an outer AA octagon within which we need to actually we do AA and outside which we can just do another solid clear. This reduces most of the cost of rounded-rectangles to just some setup work, a few fragments of distance AA on the ends of a span, and large runs of solid color where we don't have to do much work. Differential Revision: https://phabricator.services.mozilla.com/D106658 [ghsync] From https://hg.mozilla.org/mozilla-central/rev/8c6e26b7c2806578e92fcdb41b3b46f359f8b089
- Loading branch information
Showing
16 changed files
with
710 additions
and
132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.