| Index: chrome/browser/android/vr_shell/vr_shell_gl.cc
|
| diff --git a/chrome/browser/android/vr_shell/vr_shell_gl.cc b/chrome/browser/android/vr_shell/vr_shell_gl.cc
|
| index a666358aa36155ced534943352afdef5f1e9d985..8cc084495e187ba2461f9dcd2d37b6672bf8eb17 100644
|
| --- a/chrome/browser/android/vr_shell/vr_shell_gl.cc
|
| +++ b/chrome/browser/android/vr_shell/vr_shell_gl.cc
|
| @@ -330,7 +330,6 @@
|
|
|
| void VrShellGl::SubmitWebVRFrame(int16_t frame_index,
|
| const gpu::MailboxHolder& mailbox) {
|
| - DCHECK(submit_client_.get());
|
| TRACE_EVENT0("gpu", "VrShellGl::SubmitWebVRFrame");
|
|
|
| // Swapping twice on a Surface without calling updateTexImage in
|
| @@ -394,9 +393,7 @@
|
| // we move the "rendered" notification after draw, or suppress
|
| // the next vsync until that's done?
|
|
|
| - if (submit_client_) {
|
| - submit_client_->OnSubmitFrameRendered();
|
| - }
|
| + submit_client_->OnSubmitFrameRendered();
|
|
|
| DrawFrame(frame_index);
|
| }
|
| @@ -1217,9 +1214,6 @@
|
|
|
| void VrShellGl::SetWebVrMode(bool enabled) {
|
| web_vr_mode_ = enabled;
|
| - if (!enabled) {
|
| - submit_client_.reset();
|
| - }
|
| }
|
|
|
| void VrShellGl::UpdateWebVRTextureBounds(int16_t frame_index,
|
|
|