Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #2968 - gw3583:pic-context, r=kvark
Optimize how local rects are calculated during culling. Apply similar logic to the clip code to minimize the amount of work that is needed when building local rects for a picture. This change is quite a significant optimization - in most cases it halves the amount of work done here, by skipping the extra rect calculation for non-3d rendering context pictures. It also saves some rect x matrix transforms in various cases. This is a bit more preparation work for rasterizing pictures in difference coordinate spaces. There are a few other miscellaneous improvements too: * Rename some fields to be more appropriate. * Reduce number of matrix inverse calls. * Remove reference_frame_stack, which is no longer required. * Remove BuiltDisplayList from PrimitiveContext, which will be helpful in future patches. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/webrender/2968) <!-- Reviewable:end -->
- Loading branch information
Showing
6 changed files
with
174 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
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.