OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "chrome/browser/android/vr_shell/vr_gl_thread.h" | 5 #include "chrome/browser/android/vr_shell/vr_gl_thread.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "chrome/browser/android/vr_shell/toolbar_state.h" | 9 #include "chrome/browser/android/vr_shell/toolbar_state.h" |
10 #include "chrome/browser/android/vr_shell/ui_interface.h" | 10 #include "chrome/browser/android/vr_shell/ui_interface.h" |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 base::Bind(&UiSceneManager::SetWebVrSecureOrigin, | 200 base::Bind(&UiSceneManager::SetWebVrSecureOrigin, |
201 weak_scene_manager_, secure)); | 201 weak_scene_manager_, secure)); |
202 } | 202 } |
203 | 203 |
204 void VrGLThread::SetAudioCapturingIndicator(bool enabled) { | 204 void VrGLThread::SetAudioCapturingIndicator(bool enabled) { |
205 task_runner()->PostTask( | 205 task_runner()->PostTask( |
206 FROM_HERE, base::Bind(&UiSceneManager::SetAudioCapturingIndicator, | 206 FROM_HERE, base::Bind(&UiSceneManager::SetAudioCapturingIndicator, |
207 weak_scene_manager_, enabled)); | 207 weak_scene_manager_, enabled)); |
208 } | 208 } |
209 | 209 |
| 210 void VrGLThread::SetLocationAccessIndicator(bool enabled) { |
| 211 task_runner()->PostTask( |
| 212 FROM_HERE, base::Bind(&UiSceneManager::SetLocationAccessIndicator, |
| 213 weak_scene_manager_, enabled)); |
| 214 } |
| 215 |
210 void VrGLThread::SetVideoCapturingIndicator(bool enabled) { | 216 void VrGLThread::SetVideoCapturingIndicator(bool enabled) { |
211 task_runner()->PostTask( | 217 task_runner()->PostTask( |
212 FROM_HERE, base::Bind(&UiSceneManager::SetVideoCapturingIndicator, | 218 FROM_HERE, base::Bind(&UiSceneManager::SetVideoCapturingIndicator, |
213 weak_scene_manager_, enabled)); | 219 weak_scene_manager_, enabled)); |
214 } | 220 } |
215 | 221 |
216 void VrGLThread::SetScreenCapturingIndicator(bool enabled) { | 222 void VrGLThread::SetScreenCapturingIndicator(bool enabled) { |
217 task_runner()->PostTask( | 223 task_runner()->PostTask( |
218 FROM_HERE, base::Bind(&UiSceneManager::SetScreenCapturingIndicator, | 224 FROM_HERE, base::Bind(&UiSceneManager::SetScreenCapturingIndicator, |
219 weak_scene_manager_, enabled)); | 225 weak_scene_manager_, enabled)); |
(...skipping 18 matching lines...) Expand all Loading... |
238 weak_scene_manager_, bitmap)); | 244 weak_scene_manager_, bitmap)); |
239 } | 245 } |
240 | 246 |
241 void VrGLThread::CleanUp() { | 247 void VrGLThread::CleanUp() { |
242 scene_manager_.reset(); | 248 scene_manager_.reset(); |
243 vr_shell_gl_.reset(); | 249 vr_shell_gl_.reset(); |
244 scene_.reset(); | 250 scene_.reset(); |
245 } | 251 } |
246 | 252 |
247 } // namespace vr_shell | 253 } // namespace vr_shell |
OLD | NEW |