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

Side by Side Diff: third_party/WebKit/Source/modules/vr/VRFrameData.h

Issue 2488273002: Revert of mojo VR interface simplified (Closed)
Patch Set: 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 unified diff | Download patch
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 VRFrameData_h 5 #ifndef VRFrameData_h
6 #define VRFrameData_h 6 #define VRFrameData_h
7 7
8 #include "bindings/core/v8/ScriptWrappable.h" 8 #include "bindings/core/v8/ScriptWrappable.h"
9 #include "core/dom/DOMHighResTimeStamp.h" 9 #include "core/dom/DOMHighResTimeStamp.h"
10 #include "core/dom/DOMTypedArray.h" 10 #include "core/dom/DOMTypedArray.h"
(...skipping 22 matching lines...) Expand all
33 DOMFloat32Array* leftViewMatrix() const { return m_leftViewMatrix; } 33 DOMFloat32Array* leftViewMatrix() const { return m_leftViewMatrix; }
34 DOMFloat32Array* rightProjectionMatrix() const { 34 DOMFloat32Array* rightProjectionMatrix() const {
35 return m_rightProjectionMatrix; 35 return m_rightProjectionMatrix;
36 } 36 }
37 DOMFloat32Array* rightViewMatrix() const { return m_rightViewMatrix; } 37 DOMFloat32Array* rightViewMatrix() const { return m_rightViewMatrix; }
38 VRPose* pose() const { return m_pose; } 38 VRPose* pose() const { return m_pose; }
39 39
40 // Populate a the VRFrameData with a pose and the necessary eye parameters. 40 // Populate a the VRFrameData with a pose and the necessary eye parameters.
41 // TODO(bajones): The full frame data should be provided by the VRService, 41 // TODO(bajones): The full frame data should be provided by the VRService,
42 // not computed here. 42 // not computed here.
43 bool update(const device::mojom::blink::VRPosePtr&, 43 bool update(const device::blink::VRPosePtr&,
44 VREyeParameters* leftEye, 44 VREyeParameters* leftEye,
45 VREyeParameters* rightEye, 45 VREyeParameters* rightEye,
46 float depthNear, 46 float depthNear,
47 float depthFar); 47 float depthFar);
48 48
49 DECLARE_VIRTUAL_TRACE() 49 DECLARE_VIRTUAL_TRACE()
50 50
51 private: 51 private:
52 DOMHighResTimeStamp m_timestamp; 52 DOMHighResTimeStamp m_timestamp;
53 Member<DOMFloat32Array> m_leftProjectionMatrix; 53 Member<DOMFloat32Array> m_leftProjectionMatrix;
54 Member<DOMFloat32Array> m_leftViewMatrix; 54 Member<DOMFloat32Array> m_leftViewMatrix;
55 Member<DOMFloat32Array> m_rightProjectionMatrix; 55 Member<DOMFloat32Array> m_rightProjectionMatrix;
56 Member<DOMFloat32Array> m_rightViewMatrix; 56 Member<DOMFloat32Array> m_rightViewMatrix;
57 Member<VRPose> m_pose; 57 Member<VRPose> m_pose;
58 }; 58 };
59 59
60 } // namespace blink 60 } // namespace blink
61 61
62 #endif // VRStageParameters_h 62 #endif // VRStageParameters_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/vr/VREyeParameters.cpp ('k') | third_party/WebKit/Source/modules/vr/VRFrameData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698