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

Unified Diff: device/vr/vr_display_impl.cc

Issue 2738683002: WebVR compositor bypass via BrowserMain context + mailbox (Closed)
Patch Set: Less hacked up version Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « device/vr/vr_display_impl.h ('k') | device/vr/vr_service.mojom » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/vr/vr_display_impl.cc
diff --git a/device/vr/vr_display_impl.cc b/device/vr/vr_display_impl.cc
index 37f8ec981f2e85fe4c30ea53936663f5cc61a5c3..90b21444daf9f1f720f3413941bf62fdd5c7f136 100644
--- a/device/vr/vr_display_impl.cc
+++ b/device/vr/vr_display_impl.cc
@@ -67,20 +67,25 @@ void VRDisplayImpl::ExitPresent() {
device_->ExitPresent();
}
-void VRDisplayImpl::SubmitFrame(mojom::VRPosePtr pose) {
+void VRDisplayImpl::SubmitFrame(int16_t frame_index,
+ const gpu::MailboxHolder& mailbox,
+ mojom::VRSubmitFrameClientPtr submit_client) {
if (!device_->CheckPresentingDisplay(this))
return;
- device_->SubmitFrame(std::move(pose));
+ device_->SubmitFrame(frame_index, mailbox, std::move(submit_client));
}
void VRDisplayImpl::UpdateLayerBounds(int16_t frame_index,
mojom::VRLayerBoundsPtr left_bounds,
- mojom::VRLayerBoundsPtr right_bounds) {
+ mojom::VRLayerBoundsPtr right_bounds,
+ int16_t source_width,
+ int16_t source_height) {
if (!device_->IsAccessAllowed(this))
return;
device_->UpdateLayerBounds(frame_index, std::move(left_bounds),
- std::move(right_bounds));
+ std::move(right_bounds), source_width,
+ source_height);
}
void VRDisplayImpl::GetVRVSyncProvider(mojom::VRVSyncProviderRequest request) {
« no previous file with comments | « device/vr/vr_display_impl.h ('k') | device/vr/vr_service.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698