| Index: device/vr/android/gvr/gvr_device_provider.cc
|
| diff --git a/device/vr/android/gvr/gvr_device_provider.cc b/device/vr/android/gvr/gvr_device_provider.cc
|
| index 252aa117667e09cce9ca7041c791706dc8c2a220..6378faf3ad8b3fe3ce8f7e24313d016cba63c269 100644
|
| --- a/device/vr/android/gvr/gvr_device_provider.cc
|
| +++ b/device/vr/android/gvr/gvr_device_provider.cc
|
| @@ -107,6 +107,28 @@ void GvrDeviceProvider::OnGvrDelegateRemoved() {
|
| ExitPresent();
|
| }
|
|
|
| +void GvrDeviceProvider::PausePresent() {
|
| + if (!main_thread_task_runner_->BelongsToCurrentThread()) {
|
| + main_thread_task_runner_->PostTask(
|
| + FROM_HERE,
|
| + base::Bind(&GvrDeviceProvider::PausePresent, base::Unretained(this)));
|
| + return;
|
| + }
|
| + if (client_)
|
| + client_->PausePresent(vr_device_.get());
|
| +}
|
| +
|
| +void GvrDeviceProvider::ResumePresent() {
|
| + if (!main_thread_task_runner_->BelongsToCurrentThread()) {
|
| + main_thread_task_runner_->PostTask(
|
| + FROM_HERE,
|
| + base::Bind(&GvrDeviceProvider::ResumePresent, base::Unretained(this)));
|
| + return;
|
| + }
|
| + if (client_)
|
| + client_->ResumePresent(vr_device_.get());
|
| +}
|
| +
|
| void GvrDeviceProvider::GvrDelegateReady(GvrDelegate* delegate) {
|
| DCHECK(main_thread_task_runner_->BelongsToCurrentThread());
|
|
|
|
|