Skip to content

script: Make most of 2D canvas and WebGL run over IPC. - #6616

Merged
bors-servo merged 1 commit into
servo:masterfrom
pcwalton:canvas-webgl-ipc
Jul 25, 2015
Merged

bors-servo merged 1 commit into
servo:masterfrom
pcwalton:canvas-webgl-ipc

Conversation

@pcwalton

Copy link
Copy Markdown
Contributor

To actually make the multiprocess communication work, we'll need to
reroute the task creation to the pipeline or the compositor. But this
works as a first step.

r? @jdm

Review on Reviewable

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

Copy link
Copy Markdown

warning Warning warning

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

@hoppipolla-critic-bot

Copy link
Copy Markdown

Critic review: https://critic.hoppipolla.co.uk/r/5542

This is an external review system which you may optionally use for the code review of your pull request.

In order to help critic track your changes, please do not make in-place history rewrites (e.g. via git rebase -i or git commit --amend) when updating this pull request.

@Ms2ger

Ms2ger commented Jul 14, 2015

Copy link
Copy Markdown
Contributor

Please wait for #6607 and fix the local file paths.

@bors-servo

Copy link
Copy Markdown
Contributor

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

@jdm jdm added S-blocked-on-external Something, somewhere else, needs to happen before this PR can be merged. 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. labels Jul 14, 2015
@jdm

jdm commented Jul 14, 2015

Copy link
Copy Markdown
Member

-S-awaiting-review +S-needs-code-changes +S-blocked-on-external


Reviewed 29 of 29 files at r1.
Review status: all files reviewed at latest revision, 10 unresolved discussions, some commit checks failed.


components/canvas/canvas_paint_task.rs, line 175 [r1] (raw file):
Add a TODO to share these among all canvases for the same script task.


components/canvas/Cargo.toml, line 34 [r1] (raw file):
Let's move back to crates.io.


components/canvas/webgl_paint_task.rs, line 150 [r1] (raw file):
Add a TODO to share this among all canvases for the same script task.


components/canvas_traits/Cargo.toml, line 26 [r1] (raw file):
Revert?


components/canvas_traits/lib.rs, line 45 [r1] (raw file):
Let's call it FromLayout.


components/canvas_traits/lib.rs, line 61 [r1] (raw file):
Add a TODO to split CanvasMsg into InternalCanvasMsg and ExternalCanvasMsg, with only InternalCanvasMsg deriving Deserialize/Serialize.


components/layout/wrapper.rs, line 979 [r1] (raw file):
I don't believe this is used.


components/script/dom/htmlcanvaselement.rs, line 112 [r1] (raw file):
I don't think this is used.


components/util/logical_geometry.rs, line 170 [r1] (raw file):
Why is this change necessary?


components/util/task_state.rs, line 14 [r1] (raw file):
?


Comments from the review on Reviewable.io

@pcwalton

Copy link
Copy Markdown
Contributor Author

Review status: all files reviewed at latest revision, 10 unresolved discussions, some commit checks failed.


components/util/logical_geometry.rs, line 170 [r1] (raw file):
I honestly don't know. I suspect a rustc bug.


components/util/task_state.rs, line 14 [r1] (raw file):
I honestly have no idea why this was working before, but it seems to be required now. rustc bug maybe?


Comments from the review on Reviewable.io

@pcwalton

Copy link
Copy Markdown
Contributor Author

Review status: all files reviewed at latest revision, 10 unresolved discussions, some commit checks failed.


components/layout/wrapper.rs, line 979 [r1] (raw file):
It is used in CanvasFragmentInfo::new().


components/script/dom/htmlcanvaselement.rs, line 112 [r1] (raw file):
It is used in CanvasFragmentInfo::new().


Comments from the review on Reviewable.io

@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 Jul 14, 2015
@pcwalton

Copy link
Copy Markdown
Contributor Author

r? @jdm

@jdm jdm 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. labels Jul 14, 2015
@jdm

jdm commented Jul 14, 2015

Copy link
Copy Markdown
Member

-S-awaiting-review +S-needs-code-changes


Reviewed 16 of 16 files at r2.
Review status: all files reviewed at latest revision, 3 unresolved discussions, all commit checks successful.


components/layout/wrapper.rs, line 979 [r1] (raw file):
Right, but CanvasFragmentInfo.ipc_renderer does not appear to be used anywhere.


components/script/dom/htmlcanvaselement.rs, line 112 [r1] (raw file):
Transitively, same as above.


Comments from the review on Reviewable.io

@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 Jul 14, 2015
@pcwalton

Copy link
Copy Markdown
Contributor Author

Rebased and removed get_ipc_renderer and friends. r? @jdm

@bors-servo

Copy link
Copy Markdown
Contributor

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

@jdm jdm added S-needs-code-changes Changes have not yet been made that were requested by a reviewer. S-needs-rebase There are merge conflict errors. and removed S-awaiting-review There is new code that needs to be reviewed. labels Jul 15, 2015
@jdm

jdm commented Jul 15, 2015

Copy link
Copy Markdown
Member

-S-awaiting-review +S-needs-rebase +S-needs-code-changes
There's still a local file path to serde remaining in a toml file.


Reviewed 8 of 8 files at r3.
Review status: all files reviewed at latest revision, 3 unresolved discussions, some commit checks failed.


Comments from the review on Reviewable.io

@pcwalton

Copy link
Copy Markdown
Contributor Author

@jdm I'll fix that up once @erickt reviews my PR. I had to put it in there to build at all because Cargo overrides don't work when you're adding new feature flags—you have to directly hardcode a local path in your Cargo.toml.

@pcwalton

Copy link
Copy Markdown
Contributor Author

(Or I could fork serde—which I'm about to do anyway since I can't contact @erickt.)

@larsbergstrom

Copy link
Copy Markdown
Contributor

I'm a little surprised that there's nothing in the logs - typically, if we run out of file descriptors, there's a low-level failure that turns into a panic! and gets reported in the logs. That said, I'm fine with #6707 to increase our fd limits from the default 1024.

bors-servo pushed a commit that referenced this pull request Jul 23, 2015
script: Increase our file descriptor limit on Linux.

We've had problems with this before, and I think it's starting to cause
problems again.

See PRs #6629 and #6616; my current theory is that this is the problem.

r? @larsbergstrom

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6707)
<!-- Reviewable:end -->
@pcwalton

Copy link
Copy Markdown
Contributor Author

OK, I believe that #6707 plus the WPT release builds will make this get through WPT.

@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 Jul 24, 2015
@pcwalton

Copy link
Copy Markdown
Contributor Author

@bors-servo: r=jdm

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit 1679a4e has been approved by jdm

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit 1679a4e with merge 7683909...

bors-servo pushed a commit that referenced this pull request Jul 24, 2015
script: Make most of 2D canvas and WebGL run over IPC.

To actually make the multiprocess communication work, we'll need to
reroute the task creation to the pipeline or the compositor. But this
works as a first step.

r? @jdm

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6616)
<!-- Reviewable:end -->
@bors-servo

Copy link
Copy Markdown
Contributor

💔 Test failed - linux2

@jdm

jdm commented Jul 24, 2015

Copy link
Copy Markdown
Member
/html/semantics/embedded-content/the-img-element/relevant-mutations.html
------------------------------------------------------------------------
FAIL expected TIMEOUT src removed
PASS expected TIMEOUT inserted into picture
PASS expected TIMEOUT removed from picture
PASS expected TIMEOUT parent is picture, previous source inserted
PASS expected TIMEOUT parent is picture, previous source removed
PASS expected TIMEOUT parent is picture, previous source has srcset set
PASS expected TIMEOUT parent is picture, previous source has srcset changed
PASS expected TIMEOUT parent is picture, previous source has srcset removed
PASS expected TIMEOUT parent is picture, previous source has sizes set
PASS expected TIMEOUT parent is picture, previous source has sizes changed
PASS expected TIMEOUT parent is picture, previous source has sizes removed
PASS expected TIMEOUT parent is picture, previous source has media set
PASS expected TIMEOUT parent is picture, previous source has media changed
PASS expected TIMEOUT parent is picture, previous source has media removed
PASS expected TIMEOUT parent is picture, previous source has type set
PASS expected TIMEOUT parent is picture, previous source has type changed
PASS expected TIMEOUT parent is picture, previous source has type removed
FAIL crossorigin state not changed: absent, removeAttribute
FAIL crossorigin state not changed: empty to anonymous
FAIL crossorigin state not changed: anonymous to foobar
FAIL crossorigin state not changed: use-credentials to USE-CREDENTIALS
FAIL inserted into picture ancestor
FAIL removed from picture ancestor
FAIL ancestor picture has a source inserted
FAIL ancestor picture has a source removed
FAIL ancestor picture; previous sibling source inserted
FAIL ancestor picture; previous sibling source removed
FAIL parent is picture, following sibling source inserted
FAIL parent is picture, following sibling source removed
FAIL parent is picture, following sibling source has srcset set
FAIL media on img set
FAIL type on img set
FAIL class on img set
FAIL alt on img set
FAIL src on previous sibling source set
FAIL class on previous sibling source set
FAIL inserted/removed children of img
FAIL picture is inserted
FAIL picture is removed
FAIL parent is picture, following img inserted
FAIL parent is picture, following img removed
FAIL parent is picture, following img has src set
FAIL parent is picture, following img has srcset set
FAIL parent is picture, following img has sizes set
/2dcontext/building-paths/canvas_complexshapes_arcto_001.htm
------------------------------------------------------------
TIMEOUT expected FAIL [Parent]
/2dcontext/building-paths/canvas_complexshapes_beziercurveto_001.htm
--------------------------------------------------------------------
TIMEOUT expected FAIL [Parent]

@jdm jdm added S-tests-failed The changes caused existing tests to fail. and removed S-awaiting-review There is new code that needs to be reviewed. labels Jul 24, 2015
@pcwalton

Copy link
Copy Markdown
Contributor Author

I think we may need canvas shmem to avoid a timeout. Also can I just update the test expectations for that image onload stuff, @jdm?

@pcwalton

Copy link
Copy Markdown
Contributor Author

Homu seems to refuse to pick up canvas shmem.

@jdm

jdm commented Jul 24, 2015

Copy link
Copy Markdown
Member

@pcwalton Sure.

@bors-servo

Copy link
Copy Markdown
Contributor

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

To actually make the multiprocess communication work, we'll need to
reroute the task creation to the pipeline or the compositor. But this
works as a first step.
@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 Jul 25, 2015
@pcwalton

Copy link
Copy Markdown
Contributor Author

@bors-servo: r=jdm

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit bb99b2f has been approved by jdm

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit bb99b2f with merge 1764267...

@bors-servo

Copy link
Copy Markdown
Contributor

☀️ Test successful - android, gonk, linux1, linux2, linux3, mac1, mac2, mac3

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

Labels

S-awaiting-review There is new code that needs to be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants