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

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

Issue 1052903002: Migrate vr to use inlined tracing (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 8 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/vr/PositionSensorVRDevice.h ('k') | Source/modules/vr/VRDevice.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/PositionSensorVRDevice.h" 6 #include "modules/vr/PositionSensorVRDevice.h"
7 7
8 #include "public/platform/Platform.h" 8 #include "public/platform/Platform.h"
9 9
10 namespace blink { 10 namespace blink {
(...skipping 12 matching lines...) Expand all
23 VRPositionState* PositionSensorVRDevice::getImmediateState() 23 VRPositionState* PositionSensorVRDevice::getImmediateState()
24 { 24 {
25 return hardwareUnit()->getPositionState(); 25 return hardwareUnit()->getPositionState();
26 } 26 }
27 27
28 void PositionSensorVRDevice::resetSensor() 28 void PositionSensorVRDevice::resetSensor()
29 { 29 {
30 blink::Platform::current()->resetVRSensor(index()); 30 blink::Platform::current()->resetVRSensor(index());
31 } 31 }
32 32
33 void PositionSensorVRDevice::trace(Visitor* visitor) 33 DEFINE_TRACE(PositionSensorVRDevice)
34 { 34 {
35 VRDevice::trace(visitor); 35 VRDevice::trace(visitor);
36 } 36 }
37 37
38 } // namespace blink 38 } // namespace blink
OLDNEW
« no previous file with comments | « Source/modules/vr/PositionSensorVRDevice.h ('k') | Source/modules/vr/VRDevice.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698