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 uphandle detached array in XRView #26185
Conversation
highfive
commented
Apr 14, 2020
|
Thanks for the pull request, and welcome! The Servo team is excited to review your changes, and you should hear from @jdm (or someone else) soon. |
highfive
commented
Apr 14, 2020
|
Heads up! This PR modifies the following files:
|
highfive
commented
Apr 14, 2020
| @@ -24,17 +25,24 @@ pub struct XRView { | |||
| proj: Heap<*mut JSObject>, | |||
| #[ignore_malloc_size_of = "mozjs"] | |||
| view: Heap<*mut JSObject>, | |||
| viewsrc: Vec<f32>, | |||
This comment has been minimized.
This comment has been minimized.
Manishearth
Apr 14, 2020
Member
let's call this proj_array, here and elsewhere in the code
| viewsrc: Vec<f32>, | |
| proj_array: Vec<f32>, |
| global, | ||
| ); | ||
| let projm = view.projection.to_row_major_array(); | ||
| let xrv = Box::new(XRView::new_inherited( |
This comment has been minimized.
This comment has been minimized.
| Box::new(XRView::new_inherited(session, &transform, eye)), | ||
| global, | ||
| ); | ||
| let projm = view.projection.to_row_major_array(); |
This comment has been minimized.
This comment has been minimized.
|
Please squash your commits and we can land this! |
|
@bors-servo r+ thanks! |
|
|
handle detached array in XRView <!-- Please describe your changes on the following line: --> Recompute XRView.projectionmatrix when the buffer is detached --- <!-- 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 #26153 (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. -->
|
|
|
@bors-servo retry |
handle detached array in XRView <!-- Please describe your changes on the following line: --> Recompute XRView.projectionmatrix when the buffer is detached --- <!-- 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 #26153 (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. -->
|
|
|
@bors-servo retry |
handle detached array in XRView <!-- Please describe your changes on the following line: --> Recompute XRView.projectionmatrix when the buffer is detached --- <!-- 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 #26153 (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. -->
|
|
|
@bors-servo retry |
handle detached array in XRView <!-- Please describe your changes on the following line: --> Recompute XRView.projectionmatrix when the buffer is detached --- <!-- 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 #26153 (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. -->
|
|
|
@bors-servo retry |
|
|
daemon1024 commentedApr 14, 2020
•
edited
Recompute XRView.projectionmatrix when the buffer is detached
./mach build -ddoes not report any errors./mach test-tidydoes not report any errors