Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upMake offscreen canvas rendering context use offscreen canvas' size; Consolidate size helpers #24524
Conversation
|
In future there is no need to close the existing PR to address review comments. You can make changes to the branch and push them (force pushing if you rewrite history at all) and they will be reflected in the open PR. |
|
Okay; that makes sense! |
...as/fill-and-stroke-styles/2d.gradient.interpolate.multiple.worker.js.ini
Show resolved
Hide resolved
...ta/offscreen-canvas/the-offscreen-canvas/offscreencanvas.resize.html.ini
Outdated
Show resolved
Hide resolved
|
@bors-servo try=wpt |
Make offscreen canvas rendering context use offscreen canvas' size; Consolidate size helpers <!-- Please describe your changes on the following line: --> Addresses issues raised in the review of PR #24518 and includes changes to 17 tests' metadata for those that now PASS. Contains fixes in PR #24518: Updated the offscreen canvas rendering context to use the offscreen canvas' size. This involved upgrading several methods to accept u64 sizes. Additionally, the code in OffscreenCanvas::SetWidth() and OffscreenCanvas::SetHeight() was updated to send CanvasMsg::Recreate to the canvas paint thread. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #24465 <!-- Either: --> - [X] There are tests for these changes – 17 were updated to PASS
|
|
|
Looks great! This needs to be rebased to deal with the merge conflicts from #24519 unfortunately, which will mean ensuring that any changes you made to CanvasState are moved into the new To make the process easier, I recommend squashing your commits into one single commit before starting the rebase against upstream. |
a997ceb
to
c4be157
|
@bblanke If you look at the bottom of the pull request, you should see:
This means that your rebase did not include the changes from #24519, unfortunately. You need to ensure you have fetched a revision from servo/servo that includes 31ff2d4 and then rebase your branch on top of that revision. |
127006f
to
7ad224f
7ad224f
to
ec29619
|
@jdm Figured out how to properly rebase! The guide on your wiki is great. Let me know if this works. |
|
@bors-servo try=wpt |
|
@bblanke: |
|
@bors-servo try=wpt |
Make offscreen canvas rendering context use offscreen canvas' size; Consolidate size helpers <!-- Please describe your changes on the following line: --> Addresses issues raised in the review of PR #24518 and includes changes to 17 tests' metadata for those that now PASS. Contains fixes in PR #24518: Updated the offscreen canvas rendering context to use the offscreen canvas' size. This involved upgrading several methods to accept u64 sizes. Additionally, the code in OffscreenCanvas::SetWidth() and OffscreenCanvas::SetHeight() was updated to send CanvasMsg::Recreate to the canvas paint thread. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #24465 and fix #24536 <!-- Either: --> - [X] There are tests for these changes – 17 were updated to PASS
|
|
|
@bors-servo r+ |
|
|
Make offscreen canvas rendering context use offscreen canvas' size; Consolidate size helpers <!-- Please describe your changes on the following line: --> Addresses issues raised in the review of PR #24518 and includes changes to 17 tests' metadata for those that now PASS. Contains fixes in PR #24518: Updated the offscreen canvas rendering context to use the offscreen canvas' size. This involved upgrading several methods to accept u64 sizes. Additionally, the code in OffscreenCanvas::SetWidth() and OffscreenCanvas::SetHeight() was updated to send CanvasMsg::Recreate to the canvas paint thread. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #24465 and fix #24536 <!-- Either: --> - [X] There are tests for these changes – 17 were updated to PASS
|
|
|
An interesting failure:
Does |
|
Ah, I see I can reproduce it locally, and apparently on mac the drawing surface doesn't get created successfully with such a large size:
|
|
However, I can only reproduce it intermittently. Therefore, filed #24710. @bors-servo retry |
|
|
Make offscreen canvas rendering context use offscreen canvas' size; Consolidate size helpers <!-- Please describe your changes on the following line: --> Addresses issues raised in the review of PR #24518 and includes changes to 17 tests' metadata for those that now PASS. Contains fixes in PR #24518: Updated the offscreen canvas rendering context to use the offscreen canvas' size. This involved upgrading several methods to accept u64 sizes. Additionally, the code in OffscreenCanvas::SetWidth() and OffscreenCanvas::SetHeight() was updated to send CanvasMsg::Recreate to the canvas paint thread. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #24465 and fix #24536 <!-- Either: --> - [X] There are tests for these changes – 17 were updated to PASS
|
|
|
Weird; I'll investigate! |
bblanke commentedOct 22, 2019
•
edited by jdm
Addresses issues raised in the review of PR #24518 and includes changes to 17 tests' metadata for those that now PASS.
Contains fixes in PR #24518:
Updated the offscreen canvas rendering context to use the offscreen canvas' size. This involved upgrading several methods to accept u64 sizes.
Additionally, the code in OffscreenCanvas::SetWidth() and OffscreenCanvas::SetHeight() was updated to send CanvasMsg::Recreate to the canvas paint thread.
./mach build -ddoes not report any errors./mach test-tidydoes not report any errors