forked from flutter/engine
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a tessellation mode that triangulates the inner polygon separately
Wedges fanning out from the center work fine for relatively simple paths, but for paths made up of thousands of verbs, a fan is an inefficient triangulation to give the rasterizer. This CL adds a tessellation mode that draws the inner polygon and standalone cubics separately, and triangulates the inner polygon by recursive subdivision. This reduces the stencil time from 7.4ms -> 3.0ms on desk_ynevsvg.skp. Change-Id: Ie56e760d98e6c69e9a97752fe851726f36a7f574 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/265522 Reviewed-by: Michael Ludwig <michaelludwig@google.com> Commit-Queue: Chris Dalton <csmartdalton@google.com>
- Loading branch information
1 parent
dbc9f64
commit f9aea7f
Showing
12 changed files
with
556 additions
and
221 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
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
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.