Changeset 280681 in webkit
- Timestamp:
- Aug 5, 2021, 12:40:52 AM (5 years ago)
- Location:
- trunk/Source
- Files:
-
- 6 edited
-
WebCore/ChangeLog (modified) (1 diff)
-
WebCore/platform/xr/openxr/OpenXRInputSource.cpp (modified) (1 diff)
-
WebCore/platform/xr/openxr/OpenXRSwapchain.cpp (modified) (2 diffs)
-
WebCore/platform/xr/openxr/OpenXRSwapchain.h (modified) (1 diff)
-
WebKit/ChangeLog (modified) (1 diff)
-
WebKit/Shared/XR/XRDeviceProxy.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r280677 r280681 1 2021-08-05 Imanol Fernandez <ifernandez@igalia.com> 2 3 Fix XR related clang warnings in WPE 4 https://bugs.webkit.org/show_bug.cgi?id=228779 5 6 Reviewed by Sam Weinig. 7 8 Fix a few compiler warnings. 9 10 * platform/xr/openxr/OpenXRInputSource.cpp: 11 (PlatformXR::OpenXRInputSource::getButton const): 12 * platform/xr/openxr/OpenXRSwapchain.cpp: 13 (PlatformXR::OpenXRSwapchain::create): 14 (PlatformXR::OpenXRSwapchain::OpenXRSwapchain): 15 (PlatformXR::OpenXRSwapchain::acquireImage): 16 * platform/xr/openxr/OpenXRSwapchain.h: 17 1 18 2021-08-04 Darin Adler <darin@apple.com> 2 19 -
trunk/Source/WebCore/platform/xr/openxr/OpenXRInputSource.cpp
r278253 r280681 301 301 302 302 auto queryActionState = [this, &hasValue](XrAction action, auto& value, auto defaultValue) { 303 if (action != XR_NULL_HANDLE && XR_SUCCEEDED( getActionState(action, &value)))303 if (action != XR_NULL_HANDLE && XR_SUCCEEDED(this->getActionState(action, &value))) 304 304 hasValue = true; 305 305 else -
trunk/Source/WebCore/platform/xr/openxr/OpenXRSwapchain.cpp
r278253 r280681 57 57 RETURN_IF_FAILED(result, "xrEnumerateSwapchainImages with imageCount", instance, nullptr); 58 58 59 return std::unique_ptr<OpenXRSwapchain>(new OpenXRSwapchain(instance, s ession, swapchain, info, WTFMove(imageBuffers)));59 return std::unique_ptr<OpenXRSwapchain>(new OpenXRSwapchain(instance, swapchain, info, WTFMove(imageBuffers))); 60 60 } 61 61 62 OpenXRSwapchain::OpenXRSwapchain(XrInstance instance, XrS ession session, XrSwapchain swapchain, const XrSwapchainCreateInfo& info, Vector<XrSwapchainImageOpenGLKHR>&& imageBuffers)62 OpenXRSwapchain::OpenXRSwapchain(XrInstance instance, XrSwapchain swapchain, const XrSwapchainCreateInfo& info, Vector<XrSwapchainImageOpenGLKHR>&& imageBuffers) 63 63 : m_instance(instance) 64 , m_session(session)65 64 , m_swapchain(swapchain) 66 65 , m_createInfo(info) … … 79 78 std::optional<PlatformGLObject> OpenXRSwapchain::acquireImage() 80 79 { 80 #if LOG_DISABLED 81 UNUSED_VARIABLE(m_instance); 82 #endif 83 81 84 RELEASE_ASSERT_WITH_MESSAGE(!m_acquiredTexture , "Expected no acquired images. ReleaseImage not called?"); 82 85 -
trunk/Source/WebCore/platform/xr/openxr/OpenXRSwapchain.h
r278253 r280681 44 44 45 45 private: 46 OpenXRSwapchain(XrInstance, XrS ession, XrSwapchain, const XrSwapchainCreateInfo&, Vector<XrSwapchainImageOpenGLKHR>&&);46 OpenXRSwapchain(XrInstance, XrSwapchain, const XrSwapchainCreateInfo&, Vector<XrSwapchainImageOpenGLKHR>&&); 47 47 48 48 XrInstance m_instance; 49 XrSession m_session;50 49 XrSwapchain m_swapchain; 51 50 XrSwapchainCreateInfo m_createInfo; -
trunk/Source/WebKit/ChangeLog
r280672 r280681 1 2021-08-05 Imanol Fernandez <ifernandez@igalia.com> 2 3 Fix XR related clang warnings in WPE 4 https://bugs.webkit.org/show_bug.cgi?id=228779 5 6 Reviewed by Sam Weinig. 7 8 Fix a few compiler warnings. 9 10 * Shared/XR/XRDeviceProxy.cpp: 11 (WebKit::XRDeviceProxy::views const): 12 1 13 2021-08-04 Tim Horton <timothy_horton@apple.com> 2 14 -
trunk/Source/WebKit/Shared/XR/XRDeviceProxy.cpp
r279822 r280681 77 77 Vector<Device::ViewData> views; 78 78 if (m_supportsStereoRendering && mode == SessionMode::ImmersiveVr) { 79 views.append({ .active = true, Eye::Left });80 views.append({ .active = true, Eye::Right });79 views.append({ .active = true, .eye = Eye::Left }); 80 views.append({ .active = true, .eye = Eye::Right }); 81 81 } else 82 views.append({ .active = true, Eye::None });82 views.append({ .active = true, .eye = Eye::None }); 83 83 return views; 84 84 }
Note:
See TracChangeset
for help on using the changeset viewer.