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

Side by Side Diff: third_party/WebKit/Source/modules/vr/VRLayer.idl

Issue 2360083004: Changed VRLayer's left/rightBounds to match the spec (Closed)
Patch Set: Created 4 years, 2 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 unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/modules/vr/VRDisplay.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 typedef HTMLCanvasElement VRSource; 5 typedef HTMLCanvasElement VRSource;
6 6
7 // http://mozvr.github.io/webvr-spec/webvr.html#vrlayer 7 // http://mozvr.github.io/webvr-spec/webvr.html#vrlayer
8 [ 8 [
9 RuntimeEnabled=WebVR 9 RuntimeEnabled=WebVR
10 ] dictionary VRLayer { 10 ] dictionary VRLayer {
11 // The canvas to be presented to the VRDisplay 11 // The canvas to be presented to the VRDisplay
12 VRSource? source = null; 12 VRSource? source = null;
13 13
14 // The left and right bounds contain 4 git statvalues defining the texture bou nds 14 // The left and right bounds contain 4 git statvalues defining the texture bou nds
15 // within the canvas to present to the eye in UV space. 15 // within the canvas to present to the eye in UV space.
16 // [0] left offset of the bounds (0.0 - 1.0) 16 // [0] left offset of the bounds (0.0 - 1.0)
17 // [1] top offset of the bounds (0.0 - 1.0) 17 // [1] top offset of the bounds (0.0 - 1.0)
18 // [2] width of the bounds (0.0 - 1.0) 18 // [2] width of the bounds (0.0 - 1.0)
19 // [3] height of the bounds (0.0 - 1.0) 19 // [3] height of the bounds (0.0 - 1.0)
20 sequence<float>? leftBounds; //= [0.0, 0.0, 0.5, 1.0]; 20 sequence<float> leftBounds = []; //= [0.0, 0.0, 0.5, 1.0];
21 sequence<float>? rightBounds; //= [0.5, 0.0, 0.5, 1.0]; 21 sequence<float> rightBounds = []; //= [0.5, 0.0, 0.5, 1.0];
22 }; 22 };
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/vr/VRDisplay.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698