-
Notifications
You must be signed in to change notification settings - Fork 265
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 #3289 - gw3583:clip-id-buffer-2, r=kvark
Separate brush segment descriptors from clip mask instances. As part of interning primitives, we can move the segmenting process to occur when a primitive is newly interned (which is a significant optimization opportunity). We can do this since segmentation only occurs on clip nodes with the same spatial node as the primitive, thus the segmentation cannot be changed due to scrolling or transform animation. However, the presence of a clip mask per segment may still change each frame, due to clips from other positioning nodes. To handle this, we need to split the per-frame clip mask instance information from the brush segment descriptors. This is also a necessary step to allow borders to be interned, which rely on pre-generated segment descriptors. At the same time, make the size of a RenderTaskId smaller in release builds, and tidy up FrameId::invalid(). <!-- 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/3289) <!-- Reviewable:end -->
- Loading branch information
Showing
10 changed files
with
191 additions
and
86 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.