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

Unified Diff: device/vr/android/gvr/gvr_device.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/android/gvr/gvr_device.h ('k') | device/vr/test/fake_vr_device.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/vr/android/gvr/gvr_device.cc
diff --git a/device/vr/android/gvr/gvr_device.cc b/device/vr/android/gvr/gvr_device.cc
index 18b5cfdbf5e1f8de9f918e5b7f73b2df8cc98e50..a8efa67a88130747971749e249c5c46decba54df 100644
--- a/device/vr/android/gvr/gvr_device.cc
+++ b/device/vr/android/gvr/gvr_device.cc
@@ -173,7 +173,8 @@ void GvrDevice::SubmitFrame(mojom::VRPosePtr pose) {
delegate_->SubmitWebVRFrame();
}
-void GvrDevice::UpdateLayerBounds(mojom::VRLayerBoundsPtr left_bounds,
+void GvrDevice::UpdateLayerBounds(int16_t frame_index,
+ mojom::VRLayerBoundsPtr left_bounds,
mojom::VRLayerBoundsPtr right_bounds) {
if (!delegate_)
return;
@@ -190,7 +191,8 @@ void GvrDevice::UpdateLayerBounds(mojom::VRLayerBoundsPtr left_bounds,
right_gvr_bounds.right = right_bounds->left + right_bounds->width;
right_gvr_bounds.bottom = 1.0f - (right_bounds->top + right_bounds->height);
- delegate_->UpdateWebVRTextureBounds(left_gvr_bounds, right_gvr_bounds);
+ delegate_->UpdateWebVRTextureBounds(frame_index, left_gvr_bounds,
+ right_gvr_bounds);
}
void GvrDevice::GetVRVSyncProvider(mojom::VRVSyncProviderRequest request) {
« no previous file with comments | « device/vr/android/gvr/gvr_device.h ('k') | device/vr/test/fake_vr_device.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698