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

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

Issue 2623613002: Reland 2617183002 without offending tests (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
« 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 21398f317ad8eab792190543690707496e716c2f..b2d9678e3df6bc57f8254ec94587ab0119655b2b 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