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

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

Issue 2331553002: Update WebVR interface to match the 1.1 spec (Closed)
Patch Set: Addressed further feedback Created 4 years, 3 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.idl
diff --git a/third_party/WebKit/Source/modules/vr/VRDisplay.idl b/third_party/WebKit/Source/modules/vr/VRDisplay.idl
index e4e2f1952422956b96e03da81188617105caf82c..e940a768aa2726ebc83669ac00de2a120ac42c6d 100644
--- a/third_party/WebKit/Source/modules/vr/VRDisplay.idl
+++ b/third_party/WebKit/Source/modules/vr/VRDisplay.idl
@@ -25,10 +25,13 @@ enum VREye {
readonly attribute VRStageParameters stageParameters;
+ boolean getFrameData(VRFrameData frameData);
VRPose getPose();
- VRPose getImmediatePose();
void resetPose();
+ attribute double depthNear;
+ attribute double depthFar;
+
VREyeParameters getEyeParameters(VREye whichEye);
long requestAnimationFrame(FrameRequestCallback callback);
@@ -48,5 +51,5 @@ enum VREye {
// in the HMD. Calling this function has the same effect on the source
// canvas as any other operation that uses its source image, and canvases
// created without preserveDrawingBuffer set to true will be cleared.
- void submitFrame(optional VRPose pose = null);
+ void submitFrame();
};

Powered by Google App Engine
This is Rietveld 408576698