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 <utility> | 5 #include <utility> |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "device/vr/vr_device.h" | 8 #include "device/vr/vr_device.h" |
9 #include "device/vr/vr_service_impl.h" | 9 #include "device/vr/vr_service_impl.h" |
10 | 10 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 if (device_->IsPresentingService(service_.get())) | 54 if (device_->IsPresentingService(service_.get())) |
55 device_->ExitPresent(); | 55 device_->ExitPresent(); |
56 } | 56 } |
57 | 57 |
58 void VRDisplayImpl::SubmitFrame(mojom::VRPosePtr pose) { | 58 void VRDisplayImpl::SubmitFrame(mojom::VRPosePtr pose) { |
59 if (!device_->IsPresentingService(service_.get())) | 59 if (!device_->IsPresentingService(service_.get())) |
60 return; | 60 return; |
61 device_->SubmitFrame(std::move(pose)); | 61 device_->SubmitFrame(std::move(pose)); |
62 } | 62 } |
63 | 63 |
64 void VRDisplayImpl::UpdateLayerBounds(mojom::VRLayerBoundsPtr leftBounds, | 64 void VRDisplayImpl::UpdateLayerBounds(mojom::VRLayerBoundsPtr left_bounds, |
65 mojom::VRLayerBoundsPtr rightBounds) { | 65 mojom::VRLayerBoundsPtr right_bounds) { |
66 if (!device_->IsAccessAllowed(service_.get())) | 66 if (!device_->IsAccessAllowed(service_.get())) |
67 return; | 67 return; |
68 | 68 |
69 device_->UpdateLayerBounds(std::move(leftBounds), std::move(rightBounds)); | 69 device_->UpdateLayerBounds(std::move(left_bounds), std::move(right_bounds)); |
70 } | 70 } |
71 } | 71 } |
OLD | NEW |