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

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

Issue 2499793002: Refactoring how WebVR eye bounds are handled (Closed)
Patch Set: Rebase Created 4 years, 1 month 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 | « chrome/browser/android/vr_shell/vr_shell_renderer.cc ('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 4e721cbccc5a303ffef4f13e1defb24d0c830935..3b57a77c2ad43d0e15abfcdc87d0c6d0eaba5102 100644
--- a/device/vr/android/gvr/gvr_delegate.h
+++ b/device/vr/android/gvr/gvr_delegate.h
@@ -20,11 +20,9 @@ class DEVICE_VR_EXPORT GvrDelegate {
public:
virtual void SetWebVRSecureOrigin(bool secure_origin) = 0;
virtual void SubmitWebVRFrame() = 0;
- virtual void UpdateWebVRTextureBounds(int eye,
- float left,
- float top,
- float width,
- float height) = 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::GvrApi* gvr_api() = 0;
« no previous file with comments | « chrome/browser/android/vr_shell/vr_shell_renderer.cc ('k') | device/vr/android/gvr/gvr_device.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698