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

Unified Diff: chrome/browser/android/vr_shell/non_presenting_gvr_delegate.h

Issue 2612333002: Allow VRDisplay to specify which frame the layer bounds should be updated at. (Closed)
Patch Set: rebase + address comments 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 | « no previous file | chrome/browser/android/vr_shell/non_presenting_gvr_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/vr_shell/non_presenting_gvr_delegate.h
diff --git a/chrome/browser/android/vr_shell/non_presenting_gvr_delegate.h b/chrome/browser/android/vr_shell/non_presenting_gvr_delegate.h
index 7e40607e50965db5308c180b6b5908d3ee4835ad..bf6d4d104ed6d97528e1d5244ba4e4ebae962ea4 100644
--- a/chrome/browser/android/vr_shell/non_presenting_gvr_delegate.h
+++ b/chrome/browser/android/vr_shell/non_presenting_gvr_delegate.h
@@ -26,7 +26,8 @@ class NonPresentingGvrDelegate : public device::GvrDelegate,
// GvrDelegate implementation
void SetWebVRSecureOrigin(bool secure_origin) override {}
void SubmitWebVRFrame() override {}
- void UpdateWebVRTextureBounds(const gvr::Rectf& left_bounds,
+ void UpdateWebVRTextureBounds(int16_t frame_index,
+ const gvr::Rectf& left_bounds,
const gvr::Rectf& right_bounds) override {}
void SetWebVRRenderSurfaceSize(int width, int height) override {}
gvr::Sizei GetWebVRCompositorSurfaceSize() override;
@@ -44,9 +45,9 @@ class NonPresentingGvrDelegate : public device::GvrDelegate,
void StopVSyncLoop();
void StartVSyncLoop();
void OnVSync();
- device::mojom::VRPosePtr GetPose();
+ void SendVSync(base::TimeDelta time, const GetVSyncCallback& callback);
- // VRVSyncProvider
+ // VRVSyncProvider implementation
void GetVSync(const GetVSyncCallback& callback) override;
std::unique_ptr<gvr::GvrApi> gvr_api_;
@@ -60,7 +61,6 @@ class NonPresentingGvrDelegate : public device::GvrDelegate,
base::TimeDelta pending_time_;
bool pending_vsync_ = false;
GetVSyncCallback callback_;
- uint32_t pose_index_ = 1;
mojo::Binding<device::mojom::VRVSyncProvider> binding_;
base::WeakPtrFactory<NonPresentingGvrDelegate> weak_ptr_factory_;
« no previous file with comments | « no previous file | chrome/browser/android/vr_shell/non_presenting_gvr_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698