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 upMove most animation processing to script #26464
Conversation
highfive
commented
May 7, 2020
|
Heads up! This PR modifies the following files:
|
highfive
commented
May 7, 2020
|
@bors-servo try=wpt |
Move most animation processing to script This is preparation for sharing this code with layout_2020 and implementing selective off-the-main-thread animations. We still look for nodes not in the flow tree in the layout thread. <!-- 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 do not require tests because they should not change behavior. <!-- 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. -->
|
|
|
@jdm r? |
|
Great work! |
| } | ||
| } | ||
|
|
||
| impl MallocSizeOf for Animations { |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
mrobinson
May 11, 2020
Author
Member
I'm not sure this works because MallocSizeOf doesn't know what to do with ServoArc. I also cannot implement MallocSizeOf for ServoArc because it's defined outside the crate.
168 | impl MallocSizeOf for Arc<RwLock<FxHashMap<OpaqueNode, ElementAnimationSet>>> {
| ^^^^^^^^^^^^^^^^^^^^^^-------------------------------------------------------
| | |
| | `style::servo_arc::Arc` is not defined in the current crate
| impl doesn't use only types from inside the current crate
I have modified this to include the other member of the Animations though. Let me know if there's a better way to accomplish this.
This comment has been minimized.
This comment has been minimized.
jdm
May 11, 2020
Member
Good point; Arcs always cause us problems. Let's add this comment above Animations:
// Make sure to update the MallocSizeOf implementation when changing the contents of this struct.
69bf5d6
to
938c488
|
One last comment fix and this can merge! Thanks! |
938c488
to
9fc161f
|
@bors-servo r+ |
|
|
Move most animation processing to script This is preparation for sharing this code with layout_2020 and implementing selective off-the-main-thread animations. We still look for nodes not in the flow tree in the layout thread. <!-- 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 do not require tests because they should not change behavior. <!-- 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. -->
|
|
|
The failure looks like a real issue. I'll take a look tomorrow.
|
This is preparation for sharing this code with layout_2020 and implementing selective off-the-main-thread animations. We still look for nodes not in the flow tree in the layout thread.
9fc161f
to
3b0619a
|
@bors-servo try=wpt Run wpt tests to see if this is a flake or a consistent failure. |
Move most animation processing to script This is preparation for sharing this code with layout_2020 and implementing selective off-the-main-thread animations. We still look for nodes not in the flow tree in the layout thread. <!-- 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 do not require tests because they should not change behavior. <!-- 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. -->
|
|
|
@bors-servo r=jdm I think this failure might be a rare flake. I'm not able to reproduce it locally at all (despite trying pretty hard). I'm going to try to pass this through bors again and see if there is something about the commit process that is causing it. |
|
|
Move most animation processing to script This is preparation for sharing this code with layout_2020 and implementing selective off-the-main-thread animations. We still look for nodes not in the flow tree in the layout thread. <!-- 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 do not require tests because they should not change behavior. <!-- 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. -->
|
|
|
@bors-servo retry |
|
|
mrobinson commentedMay 7, 2020
This is preparation for sharing this code with layout_2020 and
implementing selective off-the-main-thread animations.
We still look for nodes not in the flow tree in the layout thread.
./mach build -ddoes not report any errors./mach test-tidydoes not report any errors