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 commented Dec 7, 2018

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


This change is Reviewable

Copy link
Collaborator

gw3583 left a comment

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
Collaborator

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

bors-servo commented Dec 7, 2018

✌️ @djg can now approve this pull request

Copy link
Contributor Author

djg left a comment

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.

@djg djg force-pushed the djg:separate_interning_gradients branch from d70c42f to 2ca99dd Dec 7, 2018
@gw3583
Copy link
Collaborator

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

bors-servo commented Dec 7, 2018

📌 Commit 2ca99dd has been approved by gw3583

@bors-servo
Copy link
Contributor

bors-servo commented Dec 7, 2018

Testing commit 2ca99dd with merge 74b9312...

bors-servo added 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

bors-servo commented Dec 7, 2018

☀️ 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
3 of 4 checks passed
3 of 4 checks passed
code-review/reviewable 4 files, 2 discussions left (gw3583)
Details
Taskcluster (pull_request) TaskGroup: success
Details
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
homu Test successful
Details
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 djg:separate_interning_gradients branch Dec 11, 2018
bors-servo added 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
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.