Skip to content

Call start_present and stop_present on VRDisplay - #22940

Merged
bors-servo merged 1 commit into
servo:masterfrom
asajeffrey:webvr-start-stop
Feb 26, 2019
Merged

bors-servo merged 1 commit into
servo:masterfrom
asajeffrey:webvr-start-stop

Conversation

@asajeffrey

@asajeffrey asajeffrey commented Feb 25, 2019 •

Copy link
Copy Markdown
Contributor

We never call start_present or stop_present on VRDisplays. Not calling start_present isn't so bad, since displays can keep track of their own state, but not calling stop_present means the display never gets told to reclaim resources.



This change is Reviewable

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Feb 25, 2019
@highfive

Copy link
Copy Markdown

warning Warning warning

  • These commits modify unsafe code. Please review it carefully!

@asajeffrey

Copy link
Copy Markdown
Contributor Author

r? @Manishearth

@highfive highfive assigned Manishearth and unassigned nox Feb 25, 2019
@Manishearth

Copy link
Copy Markdown
Member

@bors-servo r+

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit d6c064e has been approved by Manishearth

@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-review There is new code that needs to be reviewed. labels Feb 26, 2019
@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit d6c064e with merge 694a1ed...

bors-servo pushed a commit that referenced this pull request Feb 26, 2019
Call start_present and stop_present on VRDisplay

<!-- Please describe your changes on the following line: -->

We never call `start_present` or `stop_present` on `VRDisplay`s. Not calling `start_present` isn't so bad, since displays can keep track of their own state, but not calling `stop_present` means the display never gets told to reclaim resources.

---
<!-- 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 #22924
- [X] These changes do not require tests because it's all internal APIs

<!-- 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/22940)
<!-- Reviewable:end -->
@bors-servo

Copy link
Copy Markdown
Contributor

☀️ Test successful - android-mac, arm32, arm64, linux-rel-css, linux-rel-wpt, mac-rel-css1, mac-rel-css2, mac-rel-wpt1, mac-rel-wpt2, mac-rel-wpt3, mac-rel-wpt4, magicleap, status-taskcluster
Approved by: Manishearth
Pushing 694a1ed to master...

@bors-servo
bors-servo merged commit d6c064e into servo:master Feb 26, 2019
@highfive highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Feb 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Servo never calls start_present or stop_present on a VRDisplay

5 participants