Skip to content

Implement some more WebGL functions - #8761

Merged
bors-servo merged 1 commit into
servo:masterfrom
dzbarsky:gl_functions
Dec 14, 2015
Merged

bors-servo merged 1 commit into
servo:masterfrom
dzbarsky:gl_functions

Conversation

@dzbarsky

@dzbarsky dzbarsky commented Dec 1, 2015

Copy link
Copy Markdown
Contributor

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Dec 1, 2015
@highfive

highfive commented Dec 1, 2015

Copy link
Copy Markdown

warning Warning warning

  • These commits modify unsafe code. Please review it carefully!

@emilio emilio added S-blocked-on-external Something, somewhere else, needs to happen before this PR can be merged. and removed S-awaiting-review There is new code that needs to be reviewed. labels Dec 1, 2015
@emilio

emilio commented Dec 1, 2015

Copy link
Copy Markdown
Member

Great! Looks good to me.

This supersedes #8743 right? I guess that one can be closed?

Same thing, waiting for gleam update.

-S-awaiting-review +S-blocked-on-external


Reviewed 6 of 6 files at r1, 3 of 3 files at r2, 4 of 4 files at r3, 5 of 5 files at r4, 4 of 4 files at r5.
Review status: all files reviewed at latest revision, all discussions resolved, some commit checks failed.


Comments from the review on Reviewable.io

Comment thread components/canvas/webgl_paint_task.rs Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Missing a space after this comma (as per mach test-tidy)

@nox nox added the S-fails-tidy `./mach test-tidy` reported errors. label Dec 1, 2015
@nox

nox commented Dec 1, 2015

Copy link
Copy Markdown
Contributor

@ecoal95 It doesn't seem like the same things are implemented in the two PRs.

@emilio

emilio commented Dec 1, 2015

Copy link
Copy Markdown
Member

@nox I meant this is on top of the other (the other one has just the first three commits).

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Dec 2, 2015
@frewsxcv

frewsxcv commented Dec 3, 2015

Copy link
Copy Markdown
Contributor

Lockfiles need to be updated

https://travis-ci.org/servo/servo/jobs/94347070

EDIT: ignore lockfiles comment. canvas isn't compiling on travis

@frewsxcv frewsxcv added S-needs-code-changes Changes have not yet been made that were requested by a reviewer. and removed S-awaiting-review There is new code that needs to be reviewed. S-blocked-on-external Something, somewhere else, needs to happen before this PR can be merged. S-fails-tidy `./mach test-tidy` reported errors. labels Dec 3, 2015
@emilio

emilio commented Dec 3, 2015

Copy link
Copy Markdown
Member

@frewsxcv This is pending a gleam update (servo/gleam#53), that's why it does not compile. Hopefully that PR can be reviewed soon.

@emilio emilio added the S-blocked-on-external Something, somewhere else, needs to happen before this PR can be merged. label Dec 3, 2015
@jdm

jdm commented Dec 3, 2015

Copy link
Copy Markdown
Member

@bors-servo: delegate=ecoal95

@bors-servo

Copy link
Copy Markdown
Contributor

✌️ @ecoal95 can now approve this pull request

@highfive highfive added S-awaiting-review There is new code that needs to be reviewed. and removed S-needs-code-changes Changes have not yet been made that were requested by a reviewer. labels Dec 4, 2015
@dzbarsky

dzbarsky commented Dec 5, 2015

Copy link
Copy Markdown
Contributor Author

@ecoal95 want to take a look at the vertexAttrib stuff?

@jdm jdm added the S-needs-rebase There are merge conflict errors. label Dec 6, 2015
@emilio

emilio commented Dec 6, 2015

Copy link
Copy Markdown
Member

Reviewed 1 of 1 files at r6.
Review status: 2 of 9 files reviewed at latest revision, 2 unresolved discussions, some commit checks failed.


components/script/dom/webglrenderingcontext.rs, line 903 [r7] (raw file):
This logic seems fine to me, but we don't make any length validation, and thus it's unsafe. If a Float32Array with less elements than expected is passed here, we access memory we don't own.

I've taken a look to what other browsers do, and Gecko generates an INVALID_OPERATION error, while Chromium generates INVALID_VALUE.

I'm fine generating any of those two errors, but validating that is necessary .


Comments from the review on Reviewable.io

@dzbarsky

dzbarsky commented Dec 8, 2015

Copy link
Copy Markdown
Contributor Author

@dzbarsky

dzbarsky commented Dec 8, 2015

Copy link
Copy Markdown
Contributor Author

@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 Dec 13, 2015
@dzbarsky

Copy link
Copy Markdown
Contributor Author

@bors-servo retry

@Ms2ger

Ms2ger commented Dec 13, 2015

Copy link
Copy Markdown
Contributor

@bors-servo delegate+

@bors-servo

Copy link
Copy Markdown
Contributor

✌️ @dzbarsky can now approve this pull request

@dzbarsky

Copy link
Copy Markdown
Contributor Author

@bors-servo r+

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit cbca284 has been approved by dzbarsky

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit cbca284 with merge b11e129...

@highfive highfive removed the S-awaiting-review There is new code that needs to be reviewed. label Dec 13, 2015
@highfive highfive added the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Dec 13, 2015
@frewsxcv

Copy link
Copy Markdown
Contributor

As per the tidy error on travis, looks like gleam needs to be updated

@bors-servo

Copy link
Copy Markdown
Contributor

💔 Test failed - mac-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 Dec 13, 2015
@emilio

emilio commented Dec 13, 2015

Copy link
Copy Markdown
Member

Yes, you need to update components/servo/Cargo.toml, which has still gleam = "0.1".

@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 Dec 14, 2015
@dzbarsky

Copy link
Copy Markdown
Contributor Author

@bors-servo r+

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit 0f4d6d5 has been approved by dzbarsky

@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 Dec 14, 2015
@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit 0f4d6d5 with merge 89d9aad...

@bors-servo

Copy link
Copy Markdown
Contributor

☀️ Test successful - android, gonk, linux-dev, linux-rel, mac-dev-ref-unit, mac-rel-css, mac-rel-wpt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants