Index: third_party/WebKit/Source/modules/vr/VRHardwareUnitCollection.cpp |
diff --git a/third_party/WebKit/Source/modules/vr/VRHardwareUnitCollection.cpp b/third_party/WebKit/Source/modules/vr/VRHardwareUnitCollection.cpp |
index 9df7d7487f74b63d39b15ad0df33c0a1886668d6..383ab65c0704df62d21c17528f6669d567fe6a47 100644 |
--- a/third_party/WebKit/Source/modules/vr/VRHardwareUnitCollection.cpp |
+++ b/third_party/WebKit/Source/modules/vr/VRHardwareUnitCollection.cpp |
@@ -22,8 +22,8 @@ |
namespace blink { |
-VRHardwareUnitCollection::VRHardwareUnitCollection(VRController* controller) |
- : m_controller(controller) |
+VRHardwareUnitCollection::VRHardwareUnitCollection(NavigatorVRDevice* navigatorVRDevice) |
+ : m_navigatorVRDevice(navigatorVRDevice) |
{ |
} |
@@ -34,7 +34,7 @@ HeapVector<Member<VRDevice>> VRHardwareUnitCollection::updateVRHardwareUnits(con |
for (const auto& device : devices) { |
VRHardwareUnit* hardwareUnit = getHardwareUnitForIndex(device.index); |
if (!hardwareUnit) { |
- hardwareUnit = new VRHardwareUnit(m_controller); |
+ hardwareUnit = new VRHardwareUnit(m_navigatorVRDevice); |
m_hardwareUnits.append(hardwareUnit); |
} |
@@ -60,7 +60,7 @@ VRHardwareUnit* VRHardwareUnitCollection::getHardwareUnitForIndex(unsigned index |
DEFINE_TRACE(VRHardwareUnitCollection) |
{ |
- visitor->trace(m_controller); |
+ visitor->trace(m_navigatorVRDevice); |
visitor->trace(m_hardwareUnits); |
} |