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

Side by Side Diff: device/vr/android/gvr/gvr_delegate.h

Issue 2770353002: WebVR: add angular velocity estimate to pose (Closed)
Patch Set: Move angular velocity calculation to helper function Created 3 years, 8 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 unified diff | Download patch
« no previous file with comments | « chrome/browser/android/vr_shell/vr_shell_gl.cc ('k') | device/vr/android/gvr/gvr_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef DEVICE_VR_ANDROID_GVR_DELEGATE_H 5 #ifndef DEVICE_VR_ANDROID_GVR_DELEGATE_H
6 #define DEVICE_VR_ANDROID_GVR_DELEGATE_H 6 #define DEVICE_VR_ANDROID_GVR_DELEGATE_H
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "device/vr/vr_export.h" 10 #include "device/vr/vr_export.h"
11 #include "device/vr/vr_service.mojom.h" 11 #include "device/vr/vr_service.mojom.h"
12 #include "gpu/command_buffer/common/mailbox_holder.h" 12 #include "gpu/command_buffer/common/mailbox_holder.h"
13 #include "third_party/gvr-android-sdk/src/libraries/headers/vr/gvr/capi/include/ gvr_types.h" 13 #include "third_party/gvr-android-sdk/src/libraries/headers/vr/gvr/capi/include/ gvr_types.h"
14 14
15 namespace device { 15 namespace device {
16 16
17 class DEVICE_VR_EXPORT GvrDelegate { 17 class DEVICE_VR_EXPORT GvrDelegate {
18 public: 18 public:
19 static mojom::VRPosePtr VRPosePtrFromGvrPose(gvr::Mat4f head_mat); 19 static mojom::VRPosePtr VRPosePtrFromGvrPose(gvr::Mat4f head_mat);
20 static gvr::Mat4f GetGvrPoseWithNeckModel(gvr::GvrApi* gvr_api);
21 static mojom::VRPosePtr GetVRPosePtrWithNeckModel(gvr::GvrApi* gvr_api,
22 gvr::Mat4f* head_mat_out);
20 static gvr::Sizei GetRecommendedWebVrSize(gvr::GvrApi* gvr_api); 23 static gvr::Sizei GetRecommendedWebVrSize(gvr::GvrApi* gvr_api);
21 static mojom::VRDisplayInfoPtr CreateVRDisplayInfo( 24 static mojom::VRDisplayInfoPtr CreateVRDisplayInfo(
22 gvr::GvrApi* gvr_api, 25 gvr::GvrApi* gvr_api,
23 gvr::Sizei recommended_size, 26 gvr::Sizei recommended_size,
24 uint32_t device_id); 27 uint32_t device_id);
25 28
26 virtual void SetWebVRSecureOrigin(bool secure_origin) = 0; 29 virtual void SetWebVRSecureOrigin(bool secure_origin) = 0;
27 virtual void SubmitWebVRFrame(int16_t frame_index, 30 virtual void SubmitWebVRFrame(int16_t frame_index,
28 const gpu::MailboxHolder& mailbox) = 0; 31 const gpu::MailboxHolder& mailbox) = 0;
29 virtual void UpdateWebVRTextureBounds(int16_t frame_index, 32 virtual void UpdateWebVRTextureBounds(int16_t frame_index,
(...skipping 11 matching lines...) Expand all
41 protected: 44 protected:
42 virtual ~GvrDelegate() {} 45 virtual ~GvrDelegate() {}
43 }; 46 };
44 47
45 // GvrDelegate, which allows WebVR presentation. 48 // GvrDelegate, which allows WebVR presentation.
46 class DEVICE_VR_EXPORT PresentingGvrDelegate : public GvrDelegate {}; 49 class DEVICE_VR_EXPORT PresentingGvrDelegate : public GvrDelegate {};
47 50
48 } // namespace device 51 } // namespace device
49 52
50 #endif // DEVICE_VR_ANDROID_GVR_DELEGATE_H 53 #endif // DEVICE_VR_ANDROID_GVR_DELEGATE_H
OLDNEW
« no previous file with comments | « chrome/browser/android/vr_shell/vr_shell_gl.cc ('k') | device/vr/android/gvr/gvr_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698