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

Side by Side Diff: Source/modules/vr/HMDVRDevice.cpp

Issue 1106263003: Removing blink::prefix (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 7 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 | « Source/modules/storage/StorageNamespace.h ('k') | Source/modules/vr/VRController.h » ('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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #include "config.h" 5 #include "config.h"
6 #include "modules/vr/HMDVRDevice.h" 6 #include "modules/vr/HMDVRDevice.h"
7 7
8 #include "core/html/canvas/WebGLRenderingContextBase.h" 8 #include "core/html/canvas/WebGLRenderingContextBase.h"
9 #include "modules/vr/VRController.h" 9 #include "modules/vr/VRController.h"
10 #include "modules/vr/VRFieldOfView.h" 10 #include "modules/vr/VRFieldOfView.h"
(...skipping 12 matching lines...) Expand all
23 if (whichEye == "left") 23 if (whichEye == "left")
24 return VREyeLeft; 24 return VREyeLeft;
25 if (whichEye == "right") 25 if (whichEye == "right")
26 return VREyeRight; 26 return VREyeRight;
27 return VREyeNone; 27 return VREyeNone;
28 } 28 }
29 29
30 void HMDVRDevice::updateFromWebVRDevice(const WebVRDevice& device) 30 void HMDVRDevice::updateFromWebVRDevice(const WebVRDevice& device)
31 { 31 {
32 VRDevice::updateFromWebVRDevice(device); 32 VRDevice::updateFromWebVRDevice(device);
33 const blink::WebVRHMDInfo &hmdInfo = device.hmdInfo; 33 const WebVRHMDInfo &hmdInfo = device.hmdInfo;
34 34
35 m_eyeParametersLeft->setFromWebVREyeParameters(hmdInfo.leftEye); 35 m_eyeParametersLeft->setFromWebVREyeParameters(hmdInfo.leftEye);
36 m_eyeParametersRight->setFromWebVREyeParameters(hmdInfo.rightEye); 36 m_eyeParametersRight->setFromWebVREyeParameters(hmdInfo.rightEye);
37 } 37 }
38 38
39 VREyeParameters* HMDVRDevice::getEyeParameters(const String& whichEye) 39 VREyeParameters* HMDVRDevice::getEyeParameters(const String& whichEye)
40 { 40 {
41 switch (StringToVREye(whichEye)) { 41 switch (StringToVREye(whichEye)) {
42 case VREyeLeft: 42 case VREyeLeft:
43 return m_eyeParametersLeft; 43 return m_eyeParametersLeft;
(...skipping 12 matching lines...) Expand all
56 56
57 DEFINE_TRACE(HMDVRDevice) 57 DEFINE_TRACE(HMDVRDevice)
58 { 58 {
59 visitor->trace(m_eyeParametersLeft); 59 visitor->trace(m_eyeParametersLeft);
60 visitor->trace(m_eyeParametersRight); 60 visitor->trace(m_eyeParametersRight);
61 61
62 VRDevice::trace(visitor); 62 VRDevice::trace(visitor);
63 } 63 }
64 64
65 } // namespace blink 65 } // namespace blink
OLDNEW
« no previous file with comments | « Source/modules/storage/StorageNamespace.h ('k') | Source/modules/vr/VRController.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698