Skip to content
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

Extract Linear and Radial Gradients. #3392

Merged
merged 1 commit into from
Dec 7, 2018

Conversation

djg
Copy link
Contributor

@djg djg commented Dec 7, 2018

In support of #3385, extract gradients into separate interned stores.


This change is Reviewable

Copy link
Contributor

@gw3583 gw3583 left a comment

Choose a reason for hiding this comment

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

Reviewed 8 of 8 files at r1.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @djg)


webrender/src/prim_store/mod.rs, line 591 at r1 (raw file):

}

/// A hashable point for using as a key during primitive interning.

PointKey is (or will be) used by many types, so let's keep it in mod.rs.


webrender/src/prim_store/mod.rs, line 3796 at r1 (raw file):

    assert_eq!(mem::size_of::<PrimitiveInstance>(), 128, "PrimitiveInstance size changed");
    assert_eq!(mem::size_of::<PrimitiveInstanceKind>(), 40, "PrimitiveInstanceKind size changed");
    assert_eq!(mem::size_of::<PrimitiveTemplate>(), 144, "PrimitiveTemplate size changed");

Woohoo, this should hopefully be a small-ish talos win.

@gw3583
Copy link
Contributor

gw3583 commented Dec 7, 2018

Just one minor change, and we should do a try / talos run to verify, but otherwise looks good!

@bors-servo delegate+

@bors-servo
Copy link
Contributor

✌️ @djg can now approve this pull request

@djg
Copy link
Contributor Author

djg commented Dec 7, 2018

Copy link
Contributor Author

@djg djg left a comment

Choose a reason for hiding this comment

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

Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @gw3583)


webrender/src/prim_store/mod.rs, line 591 at r1 (raw file):

Previously, gw3583 (Glenn Watson) wrote…

PointKey is (or will be) used by many types, so let's keep it in mod.rs.

Done.

@gw3583
Copy link
Contributor

gw3583 commented Dec 7, 2018

Try looks good - a couple of expected failures from the recent blur shader change, and a couple of unrelated known intermittent failures. Talos looks like a small win (no regression at least).

@bors-servo r+

@bors-servo
Copy link
Contributor

📌 Commit 2ca99dd has been approved by gw3583

@bors-servo
Copy link
Contributor

⌛ Testing commit 2ca99dd with merge 74b9312...

bors-servo pushed a commit that referenced this pull request Dec 7, 2018
Extract Linear and Radial Gradients.

In support of #3385, extract gradients into separate interned stores.

<!-- 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/3392)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

☀️ Test successful - status-appveyor, status-taskcluster
Approved by: gw3583
Pushing 74b9312 to master...

@bors-servo bors-servo merged commit 2ca99dd into servo:master Dec 7, 2018
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request Dec 7, 2018
…66da96e0a64c (WR PR #3392). r=kats

servo/webrender#3392

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

--HG--
extra : moz-landing-system : lando
mykmelez pushed a commit to mykmelez/gecko that referenced this pull request Dec 8, 2018
@djg djg deleted the separate_interning_gradients branch December 11, 2018 00:20
bors-servo pushed a commit that referenced this pull request Dec 18, 2018
Separate interning Image & YuvImage

In support of #3385, extract Image and YUVImage. This patch is based up PR #3392 and requires that to land first.

<!-- 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/3393)
<!-- Reviewable:end -->
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified that referenced this pull request Oct 3, 2019
…66da96e0a64c (WR PR #3392). r=kats

servo/webrender#3392

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

UltraBlame original commit: 61571452b0fc8cd26ff55b31e05a76d069883123
gecko-dev-updater pushed a commit to marco-c/gecko-dev-comments-removed that referenced this pull request Oct 3, 2019
…66da96e0a64c (WR PR #3392). r=kats

servo/webrender#3392

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

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

servo/webrender#3392

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

UltraBlame original commit: 61571452b0fc8cd26ff55b31e05a76d069883123
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