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

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

Issue 2624633002: Remove Sync GetPose VRService call, implement VRVSyncProvider (Closed)
Patch Set: Finish implementation 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
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..8222cf673571d9773ab5ceed7ff6a98b0f5e028e 100644
--- a/device/vr/android/gvr/gvr_delegate.h
+++ b/device/vr/android/gvr/gvr_delegate.h
@@ -23,12 +23,14 @@ 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;
};
class DEVICE_VR_EXPORT GvrDelegateProvider {

Powered by Google App Engine
This is Rietveld 408576698