-
Notifications
You must be signed in to change notification settings - Fork 282
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 #523 - glennw:resource-list-2, r=pcwalton
Remove ResourceList structure and usage. Previously, a resource list would be built at the start of the frame. This would allow glyphs missing from the texture cache to be rasterized. However, sometimes (e.g. with subpixel antialiasing) it's not possible to know right at the start of the frame exactly what needs to be rasterized yet. Instead, we now allow the resource cache to add requests during the prepare_prim_for_render() stage. Primitives that request resources are marked as needing a resolve operation. This allows primitives that request resources to update their UV coords etc before batching occurs (since texture IDs for resources must be known before batching can occur). This also lays most of the groundwork for running the resource cache rasterizer as a separate thread in the future. This will be used to ensure that if too many glyphs are requested in one frame, WR can continue running without blocking, using older glyphs and then re-render the scene when newer, high resolution glyphs are available. <!-- 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/523) <!-- Reviewable:end -->
- Loading branch information
Showing
12 changed files
with
561 additions
and
533 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
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.