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

Unified Diff: third_party/WebKit/Source/modules/vr/VRDisplay.cpp

Issue 2612333002: Allow VRDisplay to specify which frame the layer bounds should be updated at. (Closed)
Patch Set: 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
Index: third_party/WebKit/Source/modules/vr/VRDisplay.cpp
diff --git a/third_party/WebKit/Source/modules/vr/VRDisplay.cpp b/third_party/WebKit/Source/modules/vr/VRDisplay.cpp
index c35e7f133671d7e0e39b8124b7fbd0ee82798014..74751db0be4eb1a03028a55f9e396542c505731b 100644
--- a/third_party/WebKit/Source/modules/vr/VRDisplay.cpp
+++ b/third_party/WebKit/Source/modules/vr/VRDisplay.cpp
@@ -573,7 +573,11 @@ void VRDisplay::updateLayerBounds() {
rightBounds->height = 1.0f;
}
- m_display->UpdateLayerBounds(std::move(leftBounds), std::move(rightBounds));
+ // TODO(klausw): Tie updating layer bounds to when we render the correct
+ // frame.
+ // Specify a frame index of 0 for now, meaning to update immediately.
+ m_display->UpdateLayerBounds(0, std::move(leftBounds),
+ std::move(rightBounds));
}
HeapVector<VRLayer> VRDisplay::getLayers() {
« chrome/browser/android/vr_shell/vr_shell_gl.cc ('K') | « device/vr/vr_service.mojom ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698