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

Unified Diff: Source/modules/vr/VRPositionState.cpp

Issue 1207513003: Some name casing corrections suggested by esprehn@ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 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 | « Source/modules/vr/HMDVRDevice.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/vr/VRPositionState.cpp
diff --git a/Source/modules/vr/VRPositionState.cpp b/Source/modules/vr/VRPositionState.cpp
index ab9d93bc5f637d83d5305c2cd601497bf53ed743..0a1738b861a0b66d3628a7d7384dd21d08c2268e 100644
--- a/Source/modules/vr/VRPositionState.cpp
+++ b/Source/modules/vr/VRPositionState.cpp
@@ -9,13 +9,13 @@ namespace blink {
namespace {
-DOMPoint* VecToDomPoint(const WebVRVector4& vec, bool valid)
+DOMPoint* vecToDomPoint(const WebVRVector4& vec, bool valid)
{
if (valid)
return DOMPoint::create(vec.x, vec.y, vec.z, vec.w);
return nullptr;
}
-DOMPoint* VecToDomPoint(const WebVRVector3& vec, bool valid)
+DOMPoint* vecToDomPoint(const WebVRVector3& vec, bool valid)
{
if (valid)
return DOMPoint::create(vec.x, vec.y, vec.z, 0.0);
@@ -32,12 +32,12 @@ VRPositionState::VRPositionState()
void VRPositionState::setState(const WebHMDSensorState &state)
{
m_timeStamp = state.timestamp;
- m_orientation = VecToDomPoint(state.orientation, state.flags & WebVRSensorStateOrientation);
- m_position = VecToDomPoint(state.position, state.flags & WebVRSensorStatePosition);
- m_angularVelocity = VecToDomPoint(state.angularVelocity, state.flags & WebVRSensorStateAngularVelocity);
- m_linearVelocity = VecToDomPoint(state.linearVelocity, state.flags & WebVRSensorStateLinearVelocity);
- m_angularAcceleration = VecToDomPoint(state.angularAcceleration, state.flags & WebVRSensorStateAngularAcceleration);
- m_linearAcceleration = VecToDomPoint(state.linearAcceleration, state.flags & WebVRSensorStateLinearAcceleration);
+ m_orientation = vecToDomPoint(state.orientation, state.flags & WebVRSensorStateOrientation);
+ m_position = vecToDomPoint(state.position, state.flags & WebVRSensorStatePosition);
+ m_angularVelocity = vecToDomPoint(state.angularVelocity, state.flags & WebVRSensorStateAngularVelocity);
+ m_linearVelocity = vecToDomPoint(state.linearVelocity, state.flags & WebVRSensorStateLinearVelocity);
+ m_angularAcceleration = vecToDomPoint(state.angularAcceleration, state.flags & WebVRSensorStateAngularAcceleration);
+ m_linearAcceleration = vecToDomPoint(state.linearAcceleration, state.flags & WebVRSensorStateLinearAcceleration);
}
DEFINE_TRACE(VRPositionState)
« no previous file with comments | « Source/modules/vr/HMDVRDevice.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698