-
Notifications
You must be signed in to change notification settings - Fork 294
Switch segments to be defined relative to the local primitive position. #3384
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This change makes clip item keys independent of the local space origin of the node. This ensures that even when Gecko sends a new display list with clip nodes that have different scroll offsets the interning logic results in the same uid for the clip node, avoiding unnecessary invalidations of cached picture tiles.
Try run looks good. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 18 of 18 files at r1.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @gw3583)
webrender/res/cs_clip_rectangle.glsl, line 68 at r1 (raw file):
RectWithSize local_rect = clip.rect.rect; local_rect.p0 = cmi.local_pos;
I read it as local_rect.p0
is guaranteed to be zero here
webrender/src/box_shadow.rs, line 202 at r1 (raw file):
shadow_rect, shadow_radius, dest_rect.translate(&LayoutVector2D::new(-prim_info.rect.origin.x, -prim_info.rect.origin.y)),
nit: -prim_info.rect.origin.to_vector()
?
@bors-servo r+ |
📌 Commit 46700de has been approved by |
Switch segments to be defined relative to the local primitive position. <!-- 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/3384) <!-- Reviewable:end -->
☀️ Test successful - status-appveyor, status-taskcluster |
…82290855e227 (WR PR #3384). r=kats servo/webrender#3384 Differential Revision: https://phabricator.services.mozilla.com/D13799 --HG-- extra : moz-landing-system : lando
…82290855e227 (WR PR #3384). r=kats servo/webrender#3384 Differential Revision: https://phabricator.services.mozilla.com/D13799
…82290855e227 (WR PR #3384). r=kats servo/webrender#3384 Differential Revision: https://phabricator.services.mozilla.com/D13799 UltraBlame original commit: c67f67bb48d5594fba32666623cc7563aabcb08f
…82290855e227 (WR PR #3384). r=kats servo/webrender#3384 Differential Revision: https://phabricator.services.mozilla.com/D13799 UltraBlame original commit: c67f67bb48d5594fba32666623cc7563aabcb08f
…82290855e227 (WR PR #3384). r=kats servo/webrender#3384 Differential Revision: https://phabricator.services.mozilla.com/D13799 UltraBlame original commit: c67f67bb48d5594fba32666623cc7563aabcb08f
…82290855e227 (WR PR #3384). r=kats servo/webrender#3384 Differential Revision: https://phabricator.services.mozilla.com/D13799
This change is