Title: [273282] trunk/Source/WebCore
Revision
273282
Author
d...@apple.com
Date
2021-02-22 15:07:20 -0800 (Mon, 22 Feb 2021)

Log Message

Add a PlatformXR::Device subclass for Cocoa
https://bugs.webkit.org/show_bug.cgi?id=222215

Patch by Ada Chan <ada.c...@apple.com> on 2021-02-22
Reviewed by Dean Jackson.

* platform/xr/cocoa/PlatformXRCocoa.h:

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (273281 => 273282)


--- trunk/Source/WebCore/ChangeLog	2021-02-22 22:27:29 UTC (rev 273281)
+++ trunk/Source/WebCore/ChangeLog	2021-02-22 23:07:20 UTC (rev 273282)
@@ -1,3 +1,12 @@
+2021-02-22  Ada Chan  <ada.c...@apple.com>
+
+        Add a PlatformXR::Device subclass for Cocoa
+        https://bugs.webkit.org/show_bug.cgi?id=222215
+
+        Reviewed by Dean Jackson.
+
+        * platform/xr/cocoa/PlatformXRCocoa.h:
+
 2021-02-22  Chris Dumez  <cdu...@apple.com>
 
         Use adoptNS() as soon as we [[ObjcClass alloc] init] to avoid leaks

Modified: trunk/Source/WebCore/platform/xr/cocoa/PlatformXRCocoa.h (273281 => 273282)


--- trunk/Source/WebCore/platform/xr/cocoa/PlatformXRCocoa.h	2021-02-22 22:27:29 UTC (rev 273281)
+++ trunk/Source/WebCore/platform/xr/cocoa/PlatformXRCocoa.h	2021-02-22 23:07:20 UTC (rev 273282)
@@ -26,7 +26,21 @@
 #pragma once
 
 #if ENABLE(WEBXR) && PLATFORM(COCOA)
+#include "PlatformXR.h"
 
+namespace PlatformXR {
+
+class PlatformXRDeviceCocoa : public Device {
+public:
+    void initializeTrackingAndRendering(SessionMode) override { }
+    void shutDownTrackingAndRendering() override { }
+    void initializeReferenceSpace(ReferenceSpaceType) override { }
+    Vector<ViewData> views(SessionMode) const override { return { }; }
+    void requestFrame(RequestFrameCallback&&) override { }
+};
+
+}
+
 #include <WebKitAdditions/PlatformXRAdditions.h>
 
 #endif
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to