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

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

Issue 2420743003: mojo VR interface simplified (Closed)
Patch Set: update binding process and update some unittest Created 4 years, 2 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
Index: device/vr/android/gvr/gvr_device.h
diff --git a/device/vr/android/gvr/gvr_device.h b/device/vr/android/gvr/gvr_device.h
index 2f7baaa1fead43b188a6b15f419e36aedfc90e0b..4e8e7c12c0cd70711d09791490f6aea9b84f93f1 100644
--- a/device/vr/android/gvr/gvr_device.h
+++ b/device/vr/android/gvr/gvr_device.h
@@ -24,18 +24,24 @@ class GvrDevice : public VRDevice {
// VRDevice
VRDisplayPtr GetVRDevice() override;
- VRPosePtr GetPose() override;
- void ResetPose() override;
+ VRPosePtr GetPose(VRServiceImpl* service) override;
+ void ResetPose(VRServiceImpl* service) override;
- bool RequestPresent(bool secure_origin) override;
- void ExitPresent() override;
+ bool RequestPresent(VRServiceImpl* service, bool secure_origin) override;
+ void ExitPresent(VRServiceImpl* service) override;
- void SubmitFrame(VRPosePtr pose) override;
- void UpdateLayerBounds(VRLayerBoundsPtr leftBounds,
+ void SubmitFrame(VRServiceImpl* service, VRPosePtr pose) override;
+ void UpdateLayerBounds(VRServiceImpl* service,
+ VRLayerBoundsPtr leftBounds,
VRLayerBoundsPtr rightBounds) override;
void SetDelegate(GvrDelegate* delegate);
+ void OnDisplayChanged() override;
+ void OnExitPresent(VRServiceImpl* service) override;
+ void OnDisplayConnected() override;
+ void OnDisplayDisconnected() override;
+
private:
gvr::GvrApi* GetGvrApi();

Powered by Google App Engine
This is Rietveld 408576698