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

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

Issue 2309523003: Plumbing through more WebVR presentation code (Closed)
Patch Set: Addressed Michael's feedack 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_delegate.cc ('k') | device/vr/android/gvr/gvr_device.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 83745312834cb467eba2e295bf1afd7a9ebeedfc..ed70b84c39d7c3f017f056a60a6a618e94d96668 100644
--- a/device/vr/android/gvr/gvr_device.h
+++ b/device/vr/android/gvr/gvr_device.h
@@ -8,15 +8,13 @@
#include "base/macros.h"
#include "device/vr/vr_device.h"
-namespace gvr {
-class GvrApi;
-} // namespace gvr
-
namespace device {
+class GvrDelegate;
+
class GvrDevice : public VRDevice {
public:
- GvrDevice(VRDeviceProvider* provider, gvr::GvrApi* gvr_api);
+ GvrDevice(VRDeviceProvider* provider, GvrDelegate* delegate);
~GvrDevice() override;
// VRDevice
@@ -24,8 +22,15 @@ class GvrDevice : public VRDevice {
VRPosePtr GetPose() override;
void ResetPose() override;
+ void RequestPresent() override;
+ void ExitPresent() override;
+
+ void SubmitFrame() override;
+ void UpdateLayerBounds(VRLayerBoundsPtr leftBounds,
+ VRLayerBoundsPtr rightBounds) override;
+
private:
- gvr::GvrApi* gvr_api_;
+ GvrDelegate* delegate_;
DISALLOW_COPY_AND_ASSIGN(GvrDevice);
};
« no previous file with comments | « device/vr/android/gvr/gvr_delegate.cc ('k') | device/vr/android/gvr/gvr_device.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698