Skip to content

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

Merged
merged 2 commits into from
Dec 5, 2018

Conversation

gw3583
Copy link
Contributor

@gw3583 gw3583 commented Dec 4, 2018

This change is Reviewable

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.
@gw3583
Copy link
Contributor Author

gw3583 commented Dec 4, 2018

r? @kvark

This is a very small patch - it just looks big because it includes #3383.

@gw3583
Copy link
Contributor Author

gw3583 commented Dec 4, 2018

@gw3583
Copy link
Contributor Author

gw3583 commented Dec 5, 2018

Try run looks good.

Copy link
Member

@kvark kvark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

I had some concerns, but they got resolved upon reading to the end of the PR :)

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()?

@kvark
Copy link
Member

kvark commented Dec 5, 2018

@bors-servo r+

@bors-servo
Copy link
Contributor

📌 Commit 46700de has been approved by kvark

@bors-servo
Copy link
Contributor

⌛ Testing commit 46700de with merge 7c4162c...

bors-servo pushed a commit that referenced this pull request Dec 5, 2018
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 -->
@bors-servo
Copy link
Contributor

☀️ Test successful - status-appveyor, status-taskcluster
Approved by: kvark
Pushing 7c4162c to master...

@bors-servo bors-servo merged commit 46700de into servo:master Dec 5, 2018
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request Dec 5, 2018
…82290855e227 (WR PR #3384). r=kats

servo/webrender#3384

Differential Revision: https://phabricator.services.mozilla.com/D13799

--HG--
extra : moz-landing-system : lando
mykmelez pushed a commit to mykmelez/gecko that referenced this pull request Dec 5, 2018
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified that referenced this pull request Oct 3, 2019
…82290855e227 (WR PR #3384). r=kats

servo/webrender#3384

Differential Revision: https://phabricator.services.mozilla.com/D13799

UltraBlame original commit: c67f67bb48d5594fba32666623cc7563aabcb08f
gecko-dev-updater pushed a commit to marco-c/gecko-dev-comments-removed that referenced this pull request Oct 3, 2019
…82290855e227 (WR PR #3384). r=kats

servo/webrender#3384

Differential Revision: https://phabricator.services.mozilla.com/D13799

UltraBlame original commit: c67f67bb48d5594fba32666623cc7563aabcb08f
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified-and-comments-removed that referenced this pull request Oct 3, 2019
…82290855e227 (WR PR #3384). r=kats

servo/webrender#3384

Differential Revision: https://phabricator.services.mozilla.com/D13799

UltraBlame original commit: c67f67bb48d5594fba32666623cc7563aabcb08f
bhearsum pushed a commit to mozilla-releng/staging-firefox that referenced this pull request May 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants