зеркало из https://github.com/mozilla/gecko-dev.git
cda0c94d8c
When a paint worklet thread takes too long, we would like to move on, since we have a ~16ms budget for rendering at 60fps. At the moment, there is no provision in the paintworklet spec to signal such timeouts to the developer. ajeffrey opened an [issue][1] for this, but it got punted to v2 of the spec. Hence we are silently timing out unresponsive paint scripts. The timeout value is chosen to be 10ms by default, and can be overridden by setting the SERVO_PAINT_WORKLET_TIMEOUT_MS environment variable. In the absence of such a timeout, the reftest in this commit would fail by timing out the testrunner itself, since the paint script never returns. From my discussions with ajeffrey, this should do until we spec out a way to signal timeouts to the script developer. This fixes #17370. [1]: https://github.com/w3c/css-houdini-drafts/issues/507 <!-- 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 - [x] These changes fix #__ (github issue number if applicable). <!-- Either: --> - [x] 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. --> Source-Repo: https://github.com/servo/servo Source-Revision: 54f8cc37c5a7874607128e3518fd0982f7065565 --HG-- extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear extra : subtree_revision : 0234a7fd5437d1c2a9c0424b9e2bb51d309a4490 |
||
---|---|---|
.. | ||
Cargo.toml | ||
lib.rs | ||
script_msg.rs | ||
webdriver_msg.rs |