| Index: third_party/WebKit/Source/modules/vr/VRController.cpp
|
| diff --git a/third_party/WebKit/Source/modules/vr/VRController.cpp b/third_party/WebKit/Source/modules/vr/VRController.cpp
|
| index 6fa41fab826dc2cf022b6a5eba2f2ffe11daacca..e75ab1dc964bae288b4e2e9774b711a64ef9b4fb 100644
|
| --- a/third_party/WebKit/Source/modules/vr/VRController.cpp
|
| +++ b/third_party/WebKit/Source/modules/vr/VRController.cpp
|
| @@ -205,6 +205,22 @@ void VRController::OnDisplayDisconnected(unsigned index) {
|
| vrDisplay, "disconnect"));
|
| }
|
|
|
| +void VRController::OnPausePresent(unsigned index) {
|
| + VRDisplay* vrDisplay = getDisplayForIndex(index);
|
| + if (!vrDisplay)
|
| + return;
|
| +
|
| + vrDisplay->pausePresent();
|
| +}
|
| +
|
| +void VRController::OnResumePresent(unsigned index) {
|
| + VRDisplay* vrDisplay = getDisplayForIndex(index);
|
| + if (!vrDisplay)
|
| + return;
|
| +
|
| + vrDisplay->resumePresent();
|
| +}
|
| +
|
| void VRController::contextDestroyed() {
|
| // If the document context was destroyed, shut down the client connection
|
| // and never call the mojo service again.
|
|
|