| Index: device/vr/vr_display_impl.cc
|
| diff --git a/device/vr/vr_display_impl.cc b/device/vr/vr_display_impl.cc
|
| index 9a3bf63e2f679282a359da5e3e7e82bb285b4a92..37f8ec981f2e85fe4c30ea53936663f5cc61a5c3 100644
|
| --- a/device/vr/vr_display_impl.cc
|
| +++ b/device/vr/vr_display_impl.cc
|
| @@ -41,17 +41,15 @@
|
| }
|
|
|
| void VRDisplayImpl::RequestPresent(bool secure_origin,
|
| - mojom::VRSubmitFrameClientPtr submit_client,
|
| const RequestPresentCallback& callback) {
|
| if (!device_->IsAccessAllowed(this)) {
|
| callback.Run(false);
|
| return;
|
| }
|
|
|
| - device_->RequestPresent(
|
| - std::move(submit_client),
|
| - base::Bind(&VRDisplayImpl::RequestPresentResult,
|
| - weak_ptr_factory_.GetWeakPtr(), callback, secure_origin));
|
| + device_->RequestPresent(base::Bind(&VRDisplayImpl::RequestPresentResult,
|
| + weak_ptr_factory_.GetWeakPtr(), callback,
|
| + secure_origin));
|
| }
|
|
|
| void VRDisplayImpl::RequestPresentResult(const RequestPresentCallback& callback,
|
| @@ -69,24 +67,20 @@
|
| device_->ExitPresent();
|
| }
|
|
|
| -void VRDisplayImpl::SubmitFrame(int16_t frame_index,
|
| - const gpu::MailboxHolder& mailbox) {
|
| +void VRDisplayImpl::SubmitFrame(mojom::VRPosePtr pose) {
|
| if (!device_->CheckPresentingDisplay(this))
|
| return;
|
| - device_->SubmitFrame(frame_index, mailbox);
|
| + device_->SubmitFrame(std::move(pose));
|
| }
|
|
|
| void VRDisplayImpl::UpdateLayerBounds(int16_t frame_index,
|
| mojom::VRLayerBoundsPtr left_bounds,
|
| - mojom::VRLayerBoundsPtr right_bounds,
|
| - int16_t source_width,
|
| - int16_t source_height) {
|
| + mojom::VRLayerBoundsPtr right_bounds) {
|
| if (!device_->IsAccessAllowed(this))
|
| return;
|
|
|
| device_->UpdateLayerBounds(frame_index, std::move(left_bounds),
|
| - std::move(right_bounds), source_width,
|
| - source_height);
|
| + std::move(right_bounds));
|
| }
|
|
|
| void VRDisplayImpl::GetVRVSyncProvider(mojom::VRVSyncProviderRequest request) {
|
|
|