Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2390)

Unified Diff: device/vr/android/gvr/gvr_device.cc

Issue 2329893002: Isolate a presenting VR device from pages other than the one presenting. (Closed)
Patch Set: Unit tests Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « device/vr/android/gvr/gvr_device.h ('k') | device/vr/vr_device.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/vr/android/gvr/gvr_device.cc
diff --git a/device/vr/android/gvr/gvr_device.cc b/device/vr/android/gvr/gvr_device.cc
index f3eebd59c73aa5acbea725c52c065e584428d15d..d00fc9424b327340d9b18c4b05952c8666dd178d 100644
--- a/device/vr/android/gvr/gvr_device.cc
+++ b/device/vr/android/gvr/gvr_device.cc
@@ -141,15 +141,16 @@ void GvrDevice::ResetPose() {
delegate_->gvr_api()->ResetTracking();
}
-void GvrDevice::RequestPresent() {
+bool GvrDevice::RequestPresent() {
delegate_->RequestWebVRPresent();
+ return true;
}
void GvrDevice::ExitPresent() {
delegate_->ExitWebVRPresent();
}
-void GvrDevice::SubmitFrame() {
+void GvrDevice::SubmitFrame(VRPosePtr pose) {
delegate_->SubmitWebVRFrame();
}
« no previous file with comments | « device/vr/android/gvr/gvr_device.h ('k') | device/vr/vr_device.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698