Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify determining if a batch can be merged / needs scissor.
Previously, we checked if the bounding box of any child primitives extended outside the rectangle of the allocated task rect. However, there is a simpler way to calculate this. If the allocated size of the render task is >= the unclipped size of the picture bounding rect, no scissor is needed, since we know that local clip rects will take care of ensuring nothing is drawn outside the task boundary. This is an optimization, but the main benefit is removing one more piece of code that relies on knowledge of screen / device rects, which simplifies the ongoing work to be able to rasterize in other coordinate systems.
- Loading branch information
Showing
6 changed files
with
37 additions
and
51 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