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

Side by Side Diff: third_party/WebKit/Source/modules/vr/VRDisplayCollection.cpp

Issue 2041003003: Moved vr_service.mojom from blink to device (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed missing mojo dependency in gyp builds Created 4 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 unified diff | Download patch
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 "modules/vr/VRDisplayCollection.h" 5 #include "modules/vr/VRDisplayCollection.h"
6 6
7 #include "modules/vr/NavigatorVR.h" 7 #include "modules/vr/NavigatorVR.h"
8 8
9 namespace blink { 9 namespace blink {
10 10
11 VRDisplayCollection::VRDisplayCollection(NavigatorVR* navigatorVR) 11 VRDisplayCollection::VRDisplayCollection(NavigatorVR* navigatorVR)
12 : m_navigatorVR(navigatorVR) 12 : m_navigatorVR(navigatorVR)
13 { 13 {
14 } 14 }
15 15
16 VRDisplayVector VRDisplayCollection::updateDisplays(mojo::WTFArray<mojom::blink: :VRDisplayPtr> displays) 16 VRDisplayVector VRDisplayCollection::updateDisplays(mojo::WTFArray<device::blink ::VRDisplayPtr> displays)
17 { 17 {
18 VRDisplayVector vrDisplays; 18 VRDisplayVector vrDisplays;
19 19
20 for (const auto& display : displays.PassStorage()) { 20 for (const auto& display : displays.PassStorage()) {
21 VRDisplay* vrDisplay = getDisplayForIndex(display->index); 21 VRDisplay* vrDisplay = getDisplayForIndex(display->index);
22 if (!vrDisplay) { 22 if (!vrDisplay) {
23 vrDisplay = new VRDisplay(m_navigatorVR); 23 vrDisplay = new VRDisplay(m_navigatorVR);
24 m_displays.append(vrDisplay); 24 m_displays.append(vrDisplay);
25 } 25 }
26 26
(...skipping 17 matching lines...) Expand all
44 return 0; 44 return 0;
45 } 45 }
46 46
47 DEFINE_TRACE(VRDisplayCollection) 47 DEFINE_TRACE(VRDisplayCollection)
48 { 48 {
49 visitor->trace(m_navigatorVR); 49 visitor->trace(m_navigatorVR);
50 visitor->trace(m_displays); 50 visitor->trace(m_displays);
51 } 51 }
52 52
53 } // namespace blink 53 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/vr/VRDisplayCollection.h ('k') | third_party/WebKit/Source/modules/vr/VREyeParameters.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698