Repository navigation
Initial implementation of WebGLSync - #24250
Conversation
|
Thanks for the pull request, and welcome! The Servo team is excited to review your changes, and you should hear from @Manishearth (or someone else) soon. |
|
Heads up! This PR modifies the following files:
|
|
|
||
| impl WebGLSync { | ||
| pub fn client_wait_sync(&self, context: &WebGLRenderingContext, flags: u32, timeout: u64) { | ||
| if self.get_client_sync_status().is_none() { |
There was a problem hiding this comment.
If the timeout is hit and calling code wants to wait again, won't this return incorrect results the second time?
There was a problem hiding this comment.
I think the second result will be incorrect, I should check if the status is TIMEOUT_EXPIRED or WAIT_FAILED.
|
Also some build errors: |
|
This will need to use |
The following pull requests depend on it: servo#24250, servo#24178.
|
☔ The latest upstream changes (presumably #24242) made this pull request unmergeable. Please resolve the merge conflicts. |
Update sparkle crate The following pull requests depend on it: #24250, #24178. <!-- Please describe your changes on the following line: --> --- <!-- 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 <!-- Either: --> - [X] There are tests for these changes <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- 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/24266) <!-- Reviewable:end -->
|
Thank you for your review! I've updated the pull request. Added drop implementation and task queue for the sync_status fetching as you mentioned before. |
Update sparkle crate The following pull requests depend on it: #24250, #24178. <!-- Please describe your changes on the following line: --> --- <!-- 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 <!-- Either: --> - [X] There are tests for these changes <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- 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/24266) <!-- Reviewable:end -->
|
@bors-servo r+ |
|
📌 Commit fb043a3 has been approved by |
Initial implementation of WebGLSync This patch adds initial support for [WebGLSync](https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.14). Note: There is no test for the isSync, deleteSync and waitSync functions in the `conformance2/sync/sync-webgl-specific.html`. --- <!-- 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 <!-- Either: --> - [X] There are tests for these changes <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- 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/24250) <!-- Reviewable:end -->
|
💔 Test failed - linux-rel-css |
jdm
left a comment
There was a problem hiding this comment.
The test results for the idlharness test in web-platform-tests/webgl/ will also need to be updated.
| // https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.14 | ||
| // | ||
|
|
||
| interface WebGLSync : WebGLObject { |
There was a problem hiding this comment.
This needs to be gated on the WebGL2 preference:
|
☔ The latest upstream changes (presumably #24178) made this pull request unmergeable. Please resolve the merge conflicts. |
This patch adds initial support for WebGLSync. Note: There is no test for the isSync, deleteSync and waitSync functions in the `conformance2/sync/sync-webgl-specific.html`.
|
Thanks, I've updated the pull request with the |
|
@bors-servo r+ |
|
📌 Commit 248545d has been approved by |
Initial implementation of WebGLSync This patch adds initial support for [WebGLSync](https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.14). Note: There is no test for the isSync, deleteSync and waitSync functions in the `conformance2/sync/sync-webgl-specific.html`. --- <!-- 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 <!-- Either: --> - [X] There are tests for these changes <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- 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/24250) <!-- Reviewable:end -->
|
☀️ Test successful - linux-rel-css, linux-rel-wpt, status-taskcluster |
This patch adds initial support for WebGLSync.
Note:
There is no test for the isSync, deleteSync and waitSync functions in the
conformance2/sync/sync-webgl-specific.html../mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is