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

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

Issue 2624633002: Remove Sync GetPose VRService call, implement VRVSyncProvider (Closed)
Patch Set: oops Created 3 years, 11 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/BUILD.gn ('k') | device/vr/android/gvr/gvr_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_delegate.h
diff --git a/device/vr/android/gvr/gvr_delegate.h b/device/vr/android/gvr/gvr_delegate.h
index c5e22a0927d056873060c80e81b475b4f866b61a..b96e3669533ab69f13d462ec28411deeae8f5f06 100644
--- a/device/vr/android/gvr/gvr_delegate.h
+++ b/device/vr/android/gvr/gvr_delegate.h
@@ -7,6 +7,7 @@
#include "device/vr/android/gvr/gvr_device_provider.h"
#include "device/vr/vr_export.h"
+#include "device/vr/vr_service.mojom.h"
#include "third_party/gvr-android-sdk/src/libraries/headers/vr/gvr/capi/include/gvr_types.h"
namespace gvr {
@@ -23,12 +24,17 @@ class DEVICE_VR_EXPORT GvrDelegate {
virtual void SubmitWebVRFrame() = 0;
virtual void UpdateWebVRTextureBounds(const gvr::Rectf& left_bounds,
const gvr::Rectf& right_bounds) = 0;
-
- virtual void SetGvrPoseForWebVr(const gvr::Mat4f& pose,
- uint32_t pose_index) = 0;
virtual gvr::Sizei GetWebVRCompositorSurfaceSize() = 0;
virtual void SetWebVRRenderSurfaceSize(int width, int height) = 0;
+ // TODO(mthiesse): This function is not threadsafe. crbug.com/674594
virtual gvr::GvrApi* gvr_api() = 0;
+ virtual void OnVRVsyncProviderRequest(
+ mojom::VRVSyncProviderRequest request) = 0;
+ virtual void UpdateVSyncInterval(long timebase_nanos,
+ double interval_seconds) = 0;
+
+ protected:
+ virtual ~GvrDelegate() {}
};
class DEVICE_VR_EXPORT GvrDelegateProvider {
@@ -44,6 +50,9 @@ class DEVICE_VR_EXPORT GvrDelegateProvider {
virtual void DestroyNonPresentingDelegate() = 0;
virtual void SetListeningForActivate(bool listening) = 0;
+ protected:
+ virtual ~GvrDelegateProvider() {}
+
private:
static GvrDelegateProvider* delegate_provider_;
};
« no previous file with comments | « device/vr/BUILD.gn ('k') | device/vr/android/gvr/gvr_device.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698