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
WebGPU update presentation data asynchronously #27154
Conversation
Heads up! This PR modifies the following files:
|
I am facing one problem here. Inside the (There are some debug logs here which I'll remove once this problem gets solved) |
The error was probably due to the data-carrying capacity of IpcSender. Reading the data in I have also edited the buffer data exchange between content process and server to use |
@bors-servo r+ |
|
WebGPU update presentation data asynchronously <!-- Please describe your changes on the following line: --> This PR aims to make updating Webrender presentation data non-blocking. A callback is passed to the `buffer_map_async()` fn wherein the data is read and a message sent to the server itself to write the data into the shared `PresentationData` struct object. r?@kvark --- <!-- 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 - [ ] These changes fix #___ (GitHub issue number if applicable) <!-- Either: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because ___ <!-- 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. -->
|
WebGPU update presentation data asynchronously <!-- Please describe your changes on the following line: --> This PR aims to make updating Webrender presentation data non-blocking. A callback is passed to the `buffer_map_async()` fn wherein the data is read and a message sent to the server itself to write the data into the shared `PresentationData` struct object. r?@kvark --- <!-- 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 - [ ] These changes fix #___ (GitHub issue number if applicable) <!-- Either: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because ___ <!-- 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. -->
|
|
This PR aims to make updating Webrender presentation data non-blocking.
A callback is passed to the
buffer_map_async()
fn wherein the data is read and a message sent to the server itself to write the data into the sharedPresentationData
struct object.r?@kvark
./mach build -d
does not report any errors./mach test-tidy
does not report any errors