Commit fadad4d6 authored by Aldo Culquicondor's avatar Aldo Culquicondor Committed by Commit Bot

VR: Fix spinner for slow WebXR rendering

Bug: 881970
Change-Id: I23d7c563929d0c95459050669b3303eba3785128
Reviewed-on: https://chromium-review.googlesource.com/1216464Reviewed-by: default avatarMichael Thiessen <mthiesse@chromium.org>
Commit-Queue: Aldo Culquicondor <acondor@chromium.org>
Cr-Commit-Position: refs/heads/master@{#589930}
parent 6468f888
...@@ -208,8 +208,6 @@ void GvrSchedulerDelegate::ConnectPresentingService( ...@@ -208,8 +208,6 @@ void GvrSchedulerDelegate::ConnectPresentingService(
CreateOrResizeWebXrSurface(webxr_size); CreateOrResizeWebXrSurface(webxr_size);
} }
ScheduleOrCancelWebVrFrameTimeout();
auto submit_frame_sink = device::mojom::XRPresentationConnection::New(); auto submit_frame_sink = device::mojom::XRPresentationConnection::New();
submit_frame_sink->client_request = mojo::MakeRequest(&submit_client_); submit_frame_sink->client_request = mojo::MakeRequest(&submit_client_);
submit_frame_sink->provider = presentation_provider.PassInterface(); submit_frame_sink->provider = presentation_provider.PassInterface();
...@@ -220,6 +218,8 @@ void GvrSchedulerDelegate::ConnectPresentingService( ...@@ -220,6 +218,8 @@ void GvrSchedulerDelegate::ConnectPresentingService(
session->submit_frame_sink = std::move(submit_frame_sink); session->submit_frame_sink = std::move(submit_frame_sink);
session->display_info = std::move(display_info); session->display_info = std::move(display_info);
ScheduleOrCancelWebVrFrameTimeout();
browser_->SendRequestPresentReply(std::move(session)); browser_->SendRequestPresentReply(std::move(session));
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment