Changeset 277324 in webkit
- Timestamp:
- May 11, 2021, 7:55:53 AM (5 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 6 edited
-
ChangeLog (modified) (1 diff)
-
Shared/Cocoa/XRDeviceProxy.h (modified) (1 diff)
-
Shared/Cocoa/XRDeviceProxy.mm (modified) (1 diff)
-
UIProcess/Cocoa/PlatformXRCoordinator.h (modified) (1 diff)
-
WebProcess/cocoa/PlatformXRSystemProxy.h (modified) (1 diff)
-
WebProcess/cocoa/PlatformXRSystemProxy.mm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r277316 r277324 1 2021-05-11 Ada Chan <ada.chan@apple.com> 2 3 [WebXR] Return a default layer handle in XRDeviceProxy::createLayerProjection 4 https://bugs.webkit.org/show_bug.cgi?id=225631 5 6 Reviewed by Dean Jackson. 7 8 * Shared/Cocoa/XRDeviceProxy.h: 9 * Shared/Cocoa/XRDeviceProxy.mm: 10 (WebKit::XRDeviceProxy::createLayerProjection): 11 * UIProcess/Cocoa/PlatformXRCoordinator.h: 12 (WebKit::PlatformXRCoordinator::defaultLayerHandle): 13 * WebProcess/cocoa/PlatformXRSystemProxy.h: 14 * WebProcess/cocoa/PlatformXRSystemProxy.mm: 15 (WebKit::PlatformXRSystemProxy::createLayerProjection): 16 1 17 2021-05-10 Wenson Hsieh <wenson_hsieh@apple.com> 2 18 -
trunk/Source/WebKit/Shared/Cocoa/XRDeviceProxy.h
r275835 r277324 57 57 Vector<PlatformXR::Device::ViewData> views(PlatformXR::SessionMode) const final; 58 58 void requestFrame(PlatformXR::Device::RequestFrameCallback&&) final; 59 Optional<PlatformXR::LayerHandle> createLayerProjection(uint32_t, uint32_t, bool) override { return WTF::nullopt; };59 Optional<PlatformXR::LayerHandle> createLayerProjection(uint32_t, uint32_t, bool) final; 60 60 void deleteLayer(PlatformXR::LayerHandle) override { }; 61 61 -
trunk/Source/WebKit/Shared/Cocoa/XRDeviceProxy.mm
r275835 r277324 89 89 } 90 90 91 Optional<PlatformXR::LayerHandle> XRDeviceProxy::createLayerProjection(uint32_t width, uint32_t height, bool alpha) 92 { 93 return m_xrSystem ? m_xrSystem->createLayerProjection(width, height, alpha) : WTF::nullopt; 94 } 95 91 96 } // namespace WebKit 92 97 -
trunk/Source/WebKit/UIProcess/Cocoa/PlatformXRCoordinator.h
r275835 r277324 42 42 virtual ~PlatformXRCoordinator() = default; 43 43 44 // FIXME: Temporary and will be fixed later. 45 static PlatformXR::LayerHandle defaultLayerHandle() { return 1; } 46 44 47 using DeviceInfoCallback = Function<void(Optional<XRDeviceInfo>)>; 45 48 virtual void getPrimaryDeviceInfo(DeviceInfoCallback&&) = 0; -
trunk/Source/WebKit/WebProcess/cocoa/PlatformXRSystemProxy.h
r275835 r277324 46 46 void shutDownTrackingAndRendering(); 47 47 void requestFrame(PlatformXR::Device::RequestFrameCallback&&); 48 Optional<PlatformXR::LayerHandle> createLayerProjection(uint32_t, uint32_t, bool); 48 49 49 50 private: -
trunk/Source/WebKit/WebProcess/cocoa/PlatformXRSystemProxy.mm
r275835 r277324 29 29 #if ENABLE(WEBXR) 30 30 31 #import "PlatformXRCoordinator.h" 31 32 #import "PlatformXRSystemMessages.h" 32 33 #import "PlatformXRSystemProxyMessages.h" … … 84 85 } 85 86 87 Optional<PlatformXR::LayerHandle> PlatformXRSystemProxy::createLayerProjection(uint32_t, uint32_t, bool) 88 { 89 return PlatformXRCoordinator::defaultLayerHandle(); 90 } 91 86 92 void PlatformXRSystemProxy::sessionDidEnd(XRDeviceIdentifier deviceIdentifier) 87 93 {
Note:
See TracChangeset
for help on using the changeset viewer.