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

Unified Diff: device/vr/vr_display_impl.cc

Issue 2612333002: Allow VRDisplay to specify which frame the layer bounds should be updated at. (Closed)
Patch Set: rebase + address comments Created 3 years, 11 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 db268c94798ef9687189d9448a3fc279631e8459..c99b7dfc813f07ffa82f762cf81813accf699059 100644
--- a/device/vr/vr_display_impl.cc
+++ b/device/vr/vr_display_impl.cc
@@ -67,12 +67,14 @@ void VRDisplayImpl::SubmitFrame(mojom::VRPosePtr pose) {
device_->SubmitFrame(std::move(pose));
}
-void VRDisplayImpl::UpdateLayerBounds(mojom::VRLayerBoundsPtr left_bounds,
+void VRDisplayImpl::UpdateLayerBounds(int16_t frame_index,
+ mojom::VRLayerBoundsPtr left_bounds,
mojom::VRLayerBoundsPtr right_bounds) {
if (!device_->IsAccessAllowed(this))
return;
- device_->UpdateLayerBounds(std::move(left_bounds), std::move(right_bounds));
+ device_->UpdateLayerBounds(frame_index, std::move(left_bounds),
+ std::move(right_bounds));
}
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