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

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

Issue 2747373002: Update WebVR API based on prerelease 1.1 except window and navigator interface (Closed)
Patch Set: Update wpt test Created 3 years, 9 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.h
diff --git a/third_party/WebKit/Source/modules/vr/VRDisplay.h b/third_party/WebKit/Source/modules/vr/VRDisplay.h
index 3eaa741699408cedf2b49202766a541a1dc3a1c8..a5bb0e1806beb17ef9b2eb91b58f9a5a92f79f30 100644
--- a/third_party/WebKit/Source/modules/vr/VRDisplay.h
+++ b/third_party/WebKit/Source/modules/vr/VRDisplay.h
@@ -10,7 +10,7 @@
#include "core/events/EventTarget.h"
#include "device/vr/vr_service.mojom-blink.h"
#include "modules/vr/VRDisplayCapabilities.h"
-#include "modules/vr/VRLayer.h"
+#include "modules/vr/VRLayerInit.h"
#include "mojo/public/cpp/bindings/binding.h"
#include "platform/Timer.h"
#include "platform/heap/Handle.h"
@@ -74,10 +74,11 @@ class VRDisplay final : public EventTargetWithInlineData,
int requestAnimationFrame(FrameRequestCallback*);
void cancelAnimationFrame(int id);
- ScriptPromise requestPresent(ScriptState*, const HeapVector<VRLayer>& layers);
+ ScriptPromise requestPresent(ScriptState*,
+ const HeapVector<VRLayerInit>& layers);
ScriptPromise exitPresent(ScriptState*);
- HeapVector<VRLayer> getLayers();
+ HeapVector<VRLayerInit> getLayers();
void submitFrame();
@@ -163,7 +164,7 @@ class VRDisplay final : public EventTargetWithInlineData,
// VR compositor so that it knows which poses to use, when to apply bounds
// updates, etc.
int16_t m_vrFrameId = -1;
- VRLayer m_layer;
+ VRLayerInit m_layer;
double m_depthNear = 0.01;
double m_depthFar = 10000.0;
« no previous file with comments | « third_party/WebKit/Source/modules/modules_idl_files.gni ('k') | third_party/WebKit/Source/modules/vr/VRDisplay.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698