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

Switch from servo/angle to the mozangle crate #20216

Merged
merged 1 commit into from Mar 12, 2018
Merged

Switch from servo/angle to the mozangle crate #20216

merged 1 commit into from Mar 12, 2018

Conversation

SimonSapin
Copy link
Member

@SimonSapin SimonSapin commented Mar 6, 2018

@highfive
Copy link

highfive commented Mar 6, 2018

Heads up! This PR modifies the following files:

  • @asajeffrey: components/script/Cargo.toml, components/script/dom/webglshader.rs, components/script/lib.rs
  • @fitzgen: components/script/Cargo.toml, components/script/dom/webglshader.rs, components/script/lib.rs
  • @KiChjang: components/script/Cargo.toml, components/script/dom/webglshader.rs, components/script/lib.rs

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Mar 6, 2018
@highfive
Copy link

highfive commented Mar 6, 2018

warning Warning warning

  • These commits modify script code, but no tests are modified. Please consider adding a test!

@emilio
Copy link
Member

emilio commented Mar 6, 2018

@bors-servo r+

Thanks!

@bors-servo
Copy link
Contributor

📌 Commit aa9f2f1 has been approved by emilio

@highfive highfive assigned emilio and unassigned metajack Mar 6, 2018
@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-review There is new code that needs to be reviewed. labels Mar 6, 2018
@bors-servo
Copy link
Contributor

⌛ Testing commit aa9f2f1 with merge 9a6f217...

bors-servo pushed a commit that referenced this pull request Mar 6, 2018
Switch from servo/angle to the mozangle crate

https://github.com/servo/mozangle

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/20216)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

💔 Test failed - linux-dev

@highfive highfive added S-tests-failed The changes caused existing tests to fail. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels Mar 6, 2018
@highfive highfive added S-awaiting-review There is new code that needs to be reviewed. and removed S-tests-failed The changes caused existing tests to fail. labels Mar 6, 2018
@SimonSapin
Copy link
Member Author

SimonSapin commented Mar 6, 2018

Fixed import order.

@bors-servo r=emilio

@bors-servo
Copy link
Contributor

📌 Commit 0ba0580 has been approved by SimonSapin

@highfive highfive assigned SimonSapin and unassigned emilio Mar 6, 2018
@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-review There is new code that needs to be reviewed. labels Mar 6, 2018
@bors-servo
Copy link
Contributor

📌 Commit 0ba0580 has been approved by emilio

@highfive highfive assigned emilio and unassigned SimonSapin Mar 6, 2018
@bors-servo
Copy link
Contributor

⌛ Testing commit 0ba0580 with merge f3fc5c8...

bors-servo pushed a commit that referenced this pull request Mar 6, 2018
Switch from servo/angle to the mozangle crate

https://github.com/servo/mozangle

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/20216)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

💔 Test failed - linux-rel-css

Copy link
Member

@emilio emilio left a comment

Choose a reason for hiding this comment

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

r=me, with or without that. Thanks!

fn to_name_in_compiled_shader(s: &str) -> String {
map_dot_separated(s, |s, mapped| {
// This closure should match the behavior of the HashName function at:
// https://github.com/servo/mozangle/blob/v0.1.4/gfx/angle/checkout/src/compiler/translator/HashNames.cpp#L56-L64
Copy link
Member

Choose a reason for hiding this comment

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

Ugh, the tidy name length lint, right? :/

Maybe move the comment to the line before fn , saying "The closure below" instead?

// https://github.com/servo/mozangle/blob/v0.1.4/gfx/angle/checkout/src/compiler/translator/HashNames.cpp#L56-L64

const IDENTIFIER_MAX_LEN: usize = 1024;
if (s.len() + ANGLE_NAME_PREFIX.len()) <= IDENTIFIER_MAX_LEN {
Copy link
Member

Choose a reason for hiding this comment

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

I guess this is still not quite correct, given s here may contain indices and such, right? If we're going to avoid parsing the names completely, we can't deal with this correctly.

Copy link
Member

Choose a reason for hiding this comment

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

Actually just realized that we don't even need this. WebGL has its own cap on identifier length, see MAX_UNIFORM_AND_ATTRIBUTE_LEN.

So let's just remove this condition.

@SimonSapin
Copy link
Member Author

@bors-servo r=emilio

@bors-servo
Copy link
Contributor

📌 Commit 0a9ac20 has been approved by emilio

@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-review There is new code that needs to be reviewed. S-needs-rebase There are merge conflict errors. labels Mar 12, 2018
@bors-servo
Copy link
Contributor

⌛ Testing commit 0a9ac20 with merge 503b17b...

bors-servo pushed a commit that referenced this pull request Mar 12, 2018
Switch from servo/angle to the mozangle crate

https://github.com/servo/mozangle

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/20216)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

💔 Test failed - linux-rel-wpt

@highfive highfive added S-tests-failed The changes caused existing tests to fail. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels Mar 12, 2018
@highfive highfive added S-awaiting-review There is new code that needs to be reviewed. and removed S-tests-failed The changes caused existing tests to fail. labels Mar 12, 2018
@SimonSapin
Copy link
Member Author

@bors-servo r=emilio

@bors-servo
Copy link
Contributor

📌 Commit 67d983c has been approved by emilio

@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-review There is new code that needs to be reviewed. labels Mar 12, 2018
@bors-servo
Copy link
Contributor

⌛ Testing commit 67d983c with merge 345c373...

bors-servo pushed a commit that referenced this pull request Mar 12, 2018
Switch from servo/angle to the mozangle crate

https://github.com/servo/mozangle

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/20216)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

☀️ Test successful - android, arm32, arm64, linux-dev, linux-rel-css, linux-rel-wpt, mac-dev-unit, mac-rel-css1, mac-rel-css2, mac-rel-wpt1, mac-rel-wpt2, mac-rel-wpt3, mac-rel-wpt4, windows-msvc-dev
Approved by: emilio
Pushing 345c373 to master...

@bors-servo bors-servo merged commit 67d983c into master Mar 12, 2018
@highfive highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Mar 12, 2018
@SimonSapin SimonSapin deleted the mozangle branch March 12, 2018 14:46
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.

None yet

5 participants