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

webgl: Add attribute validations and other nits #10224

Merged
merged 6 commits into from Apr 12, 2016

Conversation

@emilio
Copy link
Member

emilio commented Mar 27, 2016

Fixes #9958

Depends on a bunch of prs, and needs a test.

r? @jdm


This change is Reviewable

@highfive
Copy link

highfive commented Mar 27, 2016

Heads up! This PR modifies the following files:

  • @KiChjang: components/script/dom/webglrenderingcontext.rs, components/script/dom/webglshader.rs, components/script_traits/script_msg.rs, components/script_traits/script_msg.rs, components/script/dom/bindings/trace.rs
  • @emilio: components/script/dom/webglrenderingcontext.rs, components/script/dom/webglshader.rs
@highfive
Copy link

highfive commented Mar 27, 2016

warning Warning warning

  • These commits modify script code, but no tests are modified. Please consider adding a test!
@emilio emilio force-pushed the emilio:shader-type-validations branch from 99affb4 to 0d5b783 Mar 27, 2016
@jdm jdm added the S-needs-tests label Mar 27, 2016
@emilio emilio force-pushed the emilio:shader-type-validations branch 2 times, most recently from af084d4 to f2ebf29 Mar 27, 2016
@emilio
Copy link
Member Author

emilio commented Mar 27, 2016

Test added.

btw josh, we don't support HTMLScriptElement.type and that made me bang my head against the wall for a while asking why my shader didn't compile (invalid type, so it didn't recognise gl_FragColor).

@emilio emilio removed the S-needs-tests label Mar 27, 2016
bors-servo added a commit to servo/webrender_traits that referenced this pull request Mar 28, 2016
Webgl limits

Return the GLLimits structure from the `RequestWebGLContext` API message.

This allows us to keep a lot of calls that would require validation here asynchronous.

See servo/servo#10224

r? @glennw
@emilio emilio force-pushed the emilio:shader-type-validations branch 2 times, most recently from c3871a1 to 713d042 Mar 28, 2016
@emilio
Copy link
Member Author

emilio commented Mar 28, 2016

The PRs landed, so this is ready for review.

@bors-servo
Copy link
Contributor

bors-servo commented Mar 30, 2016

The latest upstream changes (presumably #10242) made this pull request unmergeable. Please resolve the merge conflicts.

@emilio emilio force-pushed the emilio:shader-type-validations branch from 40a214b to db1a86f Mar 30, 2016
@emilio emilio removed the S-needs-rebase label Mar 30, 2016
@pcwalton
Copy link
Contributor

pcwalton commented Mar 30, 2016

Is this ready to go? If so, note that 4 browser.html P1s are blocked on this. If not, I think we should revert the rust-offscreen-rendering-context upgrades in webrender and webrender_traits.

@nox
Copy link
Member

nox commented Mar 31, 2016

#10297 unblocks the situation.

@bors-servo
Copy link
Contributor

bors-servo commented Mar 31, 2016

The latest upstream changes (presumably #10297) made this pull request unmergeable. Please resolve the merge conflicts.

emilio added a commit to emilio/servo that referenced this pull request Mar 31, 2016
I'll rebase servo#10224 against it.
emilio added 6 commits Mar 27, 2016
…tions

This allows keeping the VertexAttrib* calls asynchronous.

Another option would be to do the validation in the apply() function,
but that'd require us passing an unnecessary channel around and add
extra synchronization.

The counterpart of this is that it has to be updated when the context
changes, but that's less problem.
It was giving a ton of whitespace errors, and I don't know if it's due
to nodeValue or ANGLE...
@emilio emilio force-pushed the emilio:shader-type-validations branch from ae7bde9 to 70229b1 Apr 2, 2016
@emilio emilio removed the S-needs-rebase label Apr 5, 2016
@jdm
Copy link
Member

jdm commented Apr 11, 2016

@bors-servo: r+
Sorry for sitting on this!


Reviewed 10 of 10 files at r1, 2 of 2 files at r2, 10 of 10 files at r3, 9 of 9 files at r4, 6 of 6 files at r5, 8 of 8 files at r6, 4 of 4 files at r7, 9 of 9 files at r8, 7 of 7 files at r9.
Review status: all files reviewed at latest revision, 1 unresolved discussion.


components/canvas/webgl_paint_thread.rs, line 31 [r3] (raw file):
nit: indent this to match the w on the previous line.


Comments from Reviewable

@bors-servo
Copy link
Contributor

bors-servo commented Apr 11, 2016

📌 Commit 70229b1 has been approved by jdm

@bors-servo
Copy link
Contributor

bors-servo commented Apr 11, 2016

Testing commit 70229b1 with merge f8d6238...

bors-servo added a commit that referenced this pull request Apr 11, 2016
webgl: Add attribute validations and other nits

Fixes #9958

Depends on a bunch of prs, and needs a test.

r? @jdm

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

bors-servo commented Apr 11, 2016

💔 Test failed - linux-rel

@emilio
Copy link
Member Author

emilio commented Apr 11, 2016

No problem! I don't mind rebasing as many times as necessary :P

Glad to see you're cleaning up the review queue :)

@bors-servo: retry

@bors-servo
Copy link
Contributor

bors-servo commented Apr 11, 2016

Testing commit 70229b1 with merge f0014bd...

bors-servo added a commit that referenced this pull request Apr 11, 2016
webgl: Add attribute validations and other nits

Fixes #9958

Depends on a bunch of prs, and needs a test.

r? @jdm

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

bors-servo commented Apr 12, 2016

@bors-servo bors-servo merged commit 70229b1 into servo:master Apr 12, 2016
3 checks passed
3 checks passed
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
homu Test successful
Details
@emilio emilio deleted the emilio:shader-type-validations branch Apr 12, 2016
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

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