blob: 0c22307533e101132320a0413d4a7d21f0ddf3da [file] [log] [blame]
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "modules/vr/VRDevice.h"
namespace blink {
VRDevice::~VRDevice()
{
}
VRDevice::VRDevice(VRHardwareUnit* hardwareUnit, unsigned deviceId)
: m_hardwareUnit(hardwareUnit)
, m_deviceId(String::number(deviceId))
{
}
void VRDevice::updateFromWebVRDevice(const WebVRDevice& device)
{
m_deviceName = device.deviceName;
}
DEFINE_TRACE(VRDevice)
{
visitor->trace(m_hardwareUnit);
}
} // namespace blink