Changeset 277413 in webkit
- Timestamp:
- May 12, 2021, 5:21:32 PM (4 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r277400 r277413 1 2021-05-12 Ada Chan <ada.chan@apple.com> 2 3 [WebXR] Implement XRDeviceProxy::submitFrame 4 https://bugs.webkit.org/show_bug.cgi?id=225718 5 6 Reviewed by Sam Weinig. 7 8 * Shared/Cocoa/XRDeviceProxy.h: 9 * Shared/Cocoa/XRDeviceProxy.mm: 10 (WebKit::XRDeviceProxy::submitFrame): 11 * UIProcess/Cocoa/PlatformXRCoordinator.h: 12 (WebKit::PlatformXRCoordinator::submitFrame): 13 * UIProcess/Cocoa/PlatformXRSystem.h: 14 * UIProcess/Cocoa/PlatformXRSystem.messages.in: 15 * UIProcess/Cocoa/PlatformXRSystem.mm: 16 (WebKit::PlatformXRSystem::submitFrame): 17 * WebProcess/cocoa/PlatformXRSystemProxy.h: 18 * WebProcess/cocoa/PlatformXRSystemProxy.mm: 19 (WebKit::PlatformXRSystemProxy::submitFrame): 20 1 21 2021-05-12 Brent Fulgham <bfulgham@apple.com> 2 22 -
trunk/Source/WebKit/Shared/Cocoa/XRDeviceProxy.h
r277324 r277413 59 59 Optional<PlatformXR::LayerHandle> createLayerProjection(uint32_t, uint32_t, bool) final; 60 60 void deleteLayer(PlatformXR::LayerHandle) override { }; 61 void submitFrame(Vector<PlatformXR::Device::Layer>&&) final; 61 62 62 63 XRDeviceIdentifier m_identifier; -
trunk/Source/WebKit/Shared/Cocoa/XRDeviceProxy.mm
r277324 r277413 94 94 } 95 95 96 void XRDeviceProxy::submitFrame(Vector<PlatformXR::Device::Layer>&&) 97 { 98 if (m_xrSystem) 99 m_xrSystem->submitFrame(); 100 } 101 96 102 } // namespace WebKit 97 103 -
trunk/Source/WebKit/UIProcess/Cocoa/PlatformXRCoordinator.h
r277324 r277413 55 55 // Session display loop. 56 56 virtual void scheduleAnimationFrame(WebPageProxy&, PlatformXR::Device::RequestFrameCallback&&) = 0; 57 virtual void submitFrame(WebPageProxy&) { } 57 58 }; 58 59 -
trunk/Source/WebKit/UIProcess/Cocoa/PlatformXRSystem.h
r275835 r277413 57 57 void shutDownTrackingAndRendering(); 58 58 void requestFrame(CompletionHandler<void(PlatformXR::Device::FrameData&&)>&&); 59 void submitFrame(); 59 60 60 61 WebPageProxy& m_page; -
trunk/Source/WebKit/UIProcess/Cocoa/PlatformXRSystem.messages.in
r275835 r277413 31 31 ShutDownTrackingAndRendering() 32 32 RequestFrame() -> (struct PlatformXR::Device::FrameData frameData) Async 33 SubmitFrame() 33 34 } 34 35 -
trunk/Source/WebKit/UIProcess/Cocoa/PlatformXRSystem.mm
r275929 r277413 100 100 } 101 101 102 void PlatformXRSystem::submitFrame() 103 { 104 if (auto* xrCoordinator = PlatformXRSystem::xrCoordinator()) 105 xrCoordinator->submitFrame(m_page); 106 } 107 102 108 } 103 109 -
trunk/Source/WebKit/WebProcess/cocoa/PlatformXRSystemProxy.h
r277324 r277413 47 47 void requestFrame(PlatformXR::Device::RequestFrameCallback&&); 48 48 Optional<PlatformXR::LayerHandle> createLayerProjection(uint32_t, uint32_t, bool); 49 void submitFrame(); 49 50 50 51 private: -
trunk/Source/WebKit/WebProcess/cocoa/PlatformXRSystemProxy.mm
r277324 r277413 90 90 } 91 91 92 void PlatformXRSystemProxy::submitFrame() 93 { 94 m_page.send(Messages::PlatformXRSystem::SubmitFrame()); 95 } 96 92 97 void PlatformXRSystemProxy::sessionDidEnd(XRDeviceIdentifier deviceIdentifier) 93 98 {
Note:
See TracChangeset
for help on using the changeset viewer.