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

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

Issue 2617183002: Add more WebVR layout tests, adjust test format (Closed)
Patch Set: Add missing constants file 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 | « third_party/WebKit/LayoutTests/vr/stageParameters_match.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..9e20a901b11a7c5e11b9405bc3e5b1cec7b92e52 100644
--- a/third_party/WebKit/Source/modules/vr/VRDisplay.cpp
+++ b/third_party/WebKit/Source/modules/vr/VRDisplay.cpp
@@ -558,6 +558,7 @@ void VRDisplay::updateLayerBounds() {
leftBounds->top = 0.0f;
leftBounds->width = 0.5f;
leftBounds->height = 1.0f;
+ m_layer.setLeftBounds({0.0f, 0.0f, 0.5f, 1.0f});
}
if (m_layer.rightBounds().size() == 4) {
@@ -571,6 +572,7 @@ void VRDisplay::updateLayerBounds() {
rightBounds->top = 0.0f;
rightBounds->width = 0.5f;
rightBounds->height = 1.0f;
+ m_layer.setRightBounds({0.5f, 0.0f, 0.5f, 1.0f});
}
m_display->UpdateLayerBounds(std::move(leftBounds), std::move(rightBounds));
« no previous file with comments | « third_party/WebKit/LayoutTests/vr/stageParameters_match.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698