[Webkit-unassigned] [Bug 281815] New: [WebCodecs] Build broken with clang 19

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Oct 19 04:10:14 PDT 2024


https://bugs.webkit.org/show_bug.cgi?id=281815

            Bug ID: 281815
           Summary: [WebCodecs] Build broken with clang 19
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Media
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: philn at igalia.com

In file included from /var/home/phil/WebKit/WebKitBuild/GTK/Release/WebCore/DerivedSources/unified-sources/UnifiedSource-f8afad56-57.cpp:1:
In file included from /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/VideoColorSpace.cpp:27:
In file included from /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/VideoColorSpace.h:34:
/var/home/phil/WebKit/WebKitBuild/GTK/Release/WTF/Headers/wtf/Ref.h:62:16: error: member access into incomplete type 'WebCore::HTMLImageElement'
   62 |             ptr->deref();
      |                ^
/var/home/phil/WebKit/WebKitBuild/GTK/Release/WTF/Headers/wtf/RefPtr.h:60:75: note: in instantiation of member function 'WTF::DefaultRefDerefTraits<WebCore::HTMLImageElement>::derefIfNotNull' requested here
   60 |     inline __attribute__((__always_inline__)) ~RefPtr() { RefDerefTraits::derefIfNotNull(PtrTraits::exchange(m_ptr, nullptr)); }
      |                                                                           ^
/usr/bin/../lib/gcc/x86_64-redhat-linux/14/../../../../include/c++/14/variant:787:33: note: in instantiation of member function 'WTF::RefPtr<WebCore::HTMLImageElement>::~RefPtr' requested here
  787 |   template<typename _Ti> struct _Arr { _Ti _M_x[1]; };
      |                                 ^
/usr/bin/../lib/gcc/x86_64-redhat-linux/14/../../../../include/c++/14/bits/unique_ptr.h:93:2: note: in instantiation of member function 'WTF::Detail::CallableWrapper<(lambda at /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoDecoder.cpp:147:74), void, WebCore::WebCodecsVideoDecoder &>::call' requested here
   93 |  delete __ptr;
      |  ^
/var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoDecoder.cpp:147:74: note: in instantiation of function template specialization 'WTF::Function<void (WebCore::WebCodecsVideoDecoder &)>::Function<(lambda at /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoDecoder.cpp:147:74), void>' requested here
  147 |             postTaskToCodec<WebCodecsVideoDecoder>(identifier, weakThis, [result = std::move<WTF::CheckMoveParameter>(result), decoderCount] (auto& decoder) mutable {
      |                                                                          ^
/usr/bin/../lib/gcc/x86_64-redhat-linux/14/../../../../include/c++/14/bits/unique_ptr.h:93:2: note: in instantiation of member function 'WTF::Detail::CallableWrapper<(lambda at /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoDecoder.cpp:146:105), void, std::experimental::expected<WebCore::VideoDecoder::DecodedFrame, WTF::String> &&>::call' requested here
   93 |  delete __ptr;
      |  ^
/var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoDecoder.cpp:146:105: note: in instantiation of function template specialization 'WTF::Function<void (std::experimental::expected<WebCore::VideoDecoder::DecodedFrame, WTF::String> &&)>::Function<(lambda at /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoDecoder.cpp:146:105), void>' requested here
  146 |         Ref createDecoderPromise = VideoDecoder::create(config.codec, createVideoDecoderConfig(config), [identifier, weakThis = ThreadSafeWeakPtr { *this }, decoderCount = ++m_decoderCount] (auto&& result) {
      |                                                                                                         ^
/var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoFrame.h:44:7: note: forward declaration of 'WebCore::HTMLImageElement'
   44 | class HTMLImageElement;
      |       ^
In file included from /var/home/phil/WebKit/WebKitBuild/GTK/Release/WebCore/DerivedSources/unified-sources/UnifiedSource-f8afad56-57.cpp:1:
In file included from /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/VideoColorSpace.cpp:27:
In file included from /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/VideoColorSpace.h:34:
/var/home/phil/WebKit/WebKitBuild/GTK/Release/WTF/Headers/wtf/Ref.h:62:16: error: member access into incomplete type 'WebCore::SVGImageElement'
   62 |             ptr->deref();
      |                ^
/var/home/phil/WebKit/WebKitBuild/GTK/Release/WTF/Headers/wtf/RefPtr.h:60:75: note: in instantiation of member function 'WTF::DefaultRefDerefTraits<WebCore::SVGImageElement>::derefIfNotNull' requested here
   60 |     inline __attribute__((__always_inline__)) ~RefPtr() { RefDerefTraits::derefIfNotNull(PtrTraits::exchange(m_ptr, nullptr)); }
      |                                                                           ^
/usr/bin/../lib/gcc/x86_64-redhat-linux/14/../../../../include/c++/14/variant:787:33: note: in instantiation of member function 'WTF::RefPtr<WebCore::SVGImageElement>::~RefPtr' requested here
  787 |   template<typename _Ti> struct _Arr { _Ti _M_x[1]; };
      |                                 ^
/usr/bin/../lib/gcc/x86_64-redhat-linux/14/../../../../include/c++/14/bits/unique_ptr.h:93:2: note: in instantiation of member function 'WTF::Detail::CallableWrapper<(lambda at /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoDecoder.cpp:147:74), void, WebCore::WebCodecsVideoDecoder &>::call' requested here
   93 |  delete __ptr;
      |  ^
/var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoDecoder.cpp:147:74: note: in instantiation of function template specialization 'WTF::Function<void (WebCore::WebCodecsVideoDecoder &)>::Function<(lambda at /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoDecoder.cpp:147:74), void>' requested here
  147 |             postTaskToCodec<WebCodecsVideoDecoder>(identifier, weakThis, [result = std::move<WTF::CheckMoveParameter>(result), decoderCount] (auto& decoder) mutable {
      |                                                                          ^
/usr/bin/../lib/gcc/x86_64-redhat-linux/14/../../../../include/c++/14/bits/unique_ptr.h:93:2: note: in instantiation of member function 'WTF::Detail::CallableWrapper<(lambda at /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoDecoder.cpp:146:105), void, std::experimental::expected<WebCore::VideoDecoder::DecodedFrame, WTF::String> &&>::call' requested here
   93 |  delete __ptr;
      |  ^
/var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoDecoder.cpp:146:105: note: in instantiation of function template specialization 'WTF::Function<void (std::experimental::expected<WebCore::VideoDecoder::DecodedFrame, WTF::String> &&)>::Function<(lambda at /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoDecoder.cpp:146:105), void>' requested here
  146 |         Ref createDecoderPromise = VideoDecoder::create(config.codec, createVideoDecoderConfig(config), [identifier, weakThis = ThreadSafeWeakPtr { *this }, decoderCount = ++m_decoderCount] (auto&& result) {
      |                                                                                                         ^
/var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoFrame.h:50:7: note: forward declaration of 'WebCore::SVGImageElement'
   50 | class SVGImageElement;
      |       ^
In file included from /var/home/phil/WebKit/WebKitBuild/GTK/Release/WebCore/DerivedSources/unified-sources/UnifiedSource-f8afad56-57.cpp:1:
In file included from /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/VideoColorSpace.cpp:27:
In file included from /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/VideoColorSpace.h:34:
/var/home/phil/WebKit/WebKitBuild/GTK/Release/WTF/Headers/wtf/Ref.h:62:16: error: member access into incomplete type 'WebCore::HTMLCanvasElement'
   62 |             ptr->deref();
      |                ^
/var/home/phil/WebKit/WebKitBuild/GTK/Release/WTF/Headers/wtf/RefPtr.h:60:75: note: in instantiation of member function 'WTF::DefaultRefDerefTraits<WebCore::HTMLCanvasElement>::derefIfNotNull' requested here
   60 |     inline __attribute__((__always_inline__)) ~RefPtr() { RefDerefTraits::derefIfNotNull(PtrTraits::exchange(m_ptr, nullptr)); }
      |                                                                           ^
/usr/bin/../lib/gcc/x86_64-redhat-linux/14/../../../../include/c++/14/variant:787:33: note: in instantiation of member function 'WTF::RefPtr<WebCore::HTMLCanvasElement>::~RefPtr' requested here
  787 |   template<typename _Ti> struct _Arr { _Ti _M_x[1]; };
      |                                 ^
/usr/bin/../lib/gcc/x86_64-redhat-linux/14/../../../../include/c++/14/bits/unique_ptr.h:93:2: note: in instantiation of member function 'WTF::Detail::CallableWrapper<(lambda at /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoDecoder.cpp:147:74), void, WebCore::WebCodecsVideoDecoder &>::call' requested here
   93 |  delete __ptr;
      |  ^
/var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoDecoder.cpp:147:74: note: in instantiation of function template specialization 'WTF::Function<void (WebCore::WebCodecsVideoDecoder &)>::Function<(lambda at /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoDecoder.cpp:147:74), void>' requested here
  147 |             postTaskToCodec<WebCodecsVideoDecoder>(identifier, weakThis, [result = std::move<WTF::CheckMoveParameter>(result), decoderCount] (auto& decoder) mutable {
      |                                                                          ^
/usr/bin/../lib/gcc/x86_64-redhat-linux/14/../../../../include/c++/14/bits/unique_ptr.h:93:2: note: in instantiation of member function 'WTF::Detail::CallableWrapper<(lambda at /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoDecoder.cpp:146:105), void, std::experimental::expected<WebCore::VideoDecoder::DecodedFrame, WTF::String> &&>::call' requested here
   93 |  delete __ptr;
      |  ^
/var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoDecoder.cpp:146:105: note: in instantiation of function template specialization 'WTF::Function<void (std::experimental::expected<WebCore::VideoDecoder::DecodedFrame, WTF::String> &&)>::Function<(lambda at /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoDecoder.cpp:146:105), void>' requested here
  146 |         Ref createDecoderPromise = VideoDecoder::create(config.codec, createVideoDecoderConfig(config), [identifier, weakThis = ThreadSafeWeakPtr { *this }, decoderCount = ++m_decoderCount] (auto&& result) {
      |                                                                                                         ^
/var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoFrame.h:43:7: note: forward declaration of 'WebCore::HTMLCanvasElement'
   43 | class HTMLCanvasElement;
      |       ^
In file included from /var/home/phil/WebKit/WebKitBuild/GTK/Release/WebCore/DerivedSources/unified-sources/UnifiedSource-f8afad56-57.cpp:1:
In file included from /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/VideoColorSpace.cpp:27:
In file included from /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/VideoColorSpace.h:34:
/var/home/phil/WebKit/WebKitBuild/GTK/Release/WTF/Headers/wtf/Ref.h:62:16: error: member access into incomplete type 'WebCore::ImageBitmap'
   62 |             ptr->deref();
      |                ^
/var/home/phil/WebKit/WebKitBuild/GTK/Release/WTF/Headers/wtf/RefPtr.h:60:75: note: in instantiation of member function 'WTF::DefaultRefDerefTraits<WebCore::ImageBitmap>::derefIfNotNull' requested here
   60 |     inline __attribute__((__always_inline__)) ~RefPtr() { RefDerefTraits::derefIfNotNull(PtrTraits::exchange(m_ptr, nullptr)); }
      |                                                                           ^
/usr/bin/../lib/gcc/x86_64-redhat-linux/14/../../../../include/c++/14/variant:787:33: note: in instantiation of member function 'WTF::RefPtr<WebCore::ImageBitmap>::~RefPtr' requested here
  787 |   template<typename _Ti> struct _Arr { _Ti _M_x[1]; };
      |                                 ^
/usr/bin/../lib/gcc/x86_64-redhat-linux/14/../../../../include/c++/14/bits/unique_ptr.h:93:2: note: in instantiation of member function 'WTF::Detail::CallableWrapper<(lambda at /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoDecoder.cpp:147:74), void, WebCore::WebCodecsVideoDecoder &>::call' requested here
   93 |  delete __ptr;
      |  ^
/var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoDecoder.cpp:147:74: note: in instantiation of function template specialization 'WTF::Function<void (WebCore::WebCodecsVideoDecoder &)>::Function<(lambda at /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoDecoder.cpp:147:74), void>' requested here
  147 |             postTaskToCodec<WebCodecsVideoDecoder>(identifier, weakThis, [result = std::move<WTF::CheckMoveParameter>(result), decoderCount] (auto& decoder) mutable {
      |                                                                          ^
/usr/bin/../lib/gcc/x86_64-redhat-linux/14/../../../../include/c++/14/bits/unique_ptr.h:93:2: note: in instantiation of member function 'WTF::Detail::CallableWrapper<(lambda at /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoDecoder.cpp:146:105), void, std::experimental::expected<WebCore::VideoDecoder::DecodedFrame, WTF::String> &&>::call' requested here
   93 |  delete __ptr;
      |  ^
/var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoDecoder.cpp:146:105: note: in instantiation of function template specialization 'WTF::Function<void (std::experimental::expected<WebCore::VideoDecoder::DecodedFrame, WTF::String> &&)>::Function<(lambda at /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoDecoder.cpp:146:105), void>' requested here
  146 |         Ref createDecoderPromise = VideoDecoder::create(config.codec, createVideoDecoderConfig(config), [identifier, weakThis = ThreadSafeWeakPtr { *this }, decoderCount = ++m_decoderCount] (auto&& result) {
      |                                                                                                         ^
/var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoFrame.h:46:7: note: forward declaration of 'WebCore::ImageBitmap'
   46 | class ImageBitmap;
      |       ^
In file included from /var/home/phil/WebKit/WebKitBuild/GTK/Release/WebCore/DerivedSources/unified-sources/UnifiedSource-f8afad56-57.cpp:1:
In file included from /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/VideoColorSpace.cpp:27:
In file included from /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/VideoColorSpace.h:34:
/var/home/phil/WebKit/WebKitBuild/GTK/Release/WTF/Headers/wtf/Ref.h:62:16: error: member access into incomplete type 'WebCore::CSSStyleImageValue'
   62 |             ptr->deref();
      |                ^
/var/home/phil/WebKit/WebKitBuild/GTK/Release/WTF/Headers/wtf/RefPtr.h:60:75: note: in instantiation of member function 'WTF::DefaultRefDerefTraits<WebCore::CSSStyleImageValue>::derefIfNotNull' requested here
   60 |     inline __attribute__((__always_inline__)) ~RefPtr() { RefDerefTraits::derefIfNotNull(PtrTraits::exchange(m_ptr, nullptr)); }
      |                                                                           ^
/usr/bin/../lib/gcc/x86_64-redhat-linux/14/../../../../include/c++/14/variant:787:33: note: in instantiation of member function 'WTF::RefPtr<WebCore::CSSStyleImageValue>::~RefPtr' requested here
  787 |   template<typename _Ti> struct _Arr { _Ti _M_x[1]; };
      |                                 ^
/usr/bin/../lib/gcc/x86_64-redhat-linux/14/../../../../include/c++/14/bits/unique_ptr.h:93:2: note: in instantiation of member function 'WTF::Detail::CallableWrapper<(lambda at /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoDecoder.cpp:147:74), void, WebCore::WebCodecsVideoDecoder &>::call' requested here
   93 |  delete __ptr;
      |  ^
/var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoDecoder.cpp:147:74: note: in instantiation of function template specialization 'WTF::Function<void (WebCore::WebCodecsVideoDecoder &)>::Function<(lambda at /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoDecoder.cpp:147:74), void>' requested here
  147 |             postTaskToCodec<WebCodecsVideoDecoder>(identifier, weakThis, [result = std::move<WTF::CheckMoveParameter>(result), decoderCount] (auto& decoder) mutable {
      |                                                                          ^
/usr/bin/../lib/gcc/x86_64-redhat-linux/14/../../../../include/c++/14/bits/unique_ptr.h:93:2: note: in instantiation of member function 'WTF::Detail::CallableWrapper<(lambda at /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoDecoder.cpp:146:105), void, std::experimental::expected<WebCore::VideoDecoder::DecodedFrame, WTF::String> &&>::call' requested here
   93 |  delete __ptr;
      |  ^
/var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoDecoder.cpp:146:105: note: in instantiation of function template specialization 'WTF::Function<void (std::experimental::expected<WebCore::VideoDecoder::DecodedFrame, WTF::String> &&)>::Function<(lambda at /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoDecoder.cpp:146:105), void>' requested here
  146 |         Ref createDecoderPromise = VideoDecoder::create(config.codec, createVideoDecoderConfig(config), [identifier, weakThis = ThreadSafeWeakPtr { *this }, decoderCount = ++m_decoderCount] (auto&& result) {
      |                                                                                                         ^
/var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoFrame.h:41:7: note: forward declaration of 'WebCore::CSSStyleImageValue'
   41 | class CSSStyleImageValue;
      |       ^
In file included from /var/home/phil/WebKit/WebKitBuild/GTK/Release/WebCore/DerivedSources/unified-sources/UnifiedSource-f8afad56-57.cpp:1:
In file included from /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/VideoColorSpace.cpp:27:
In file included from /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/VideoColorSpace.h:34:
/var/home/phil/WebKit/WebKitBuild/GTK/Release/WTF/Headers/wtf/Ref.h:62:16: error: member access into incomplete type 'WebCore::OffscreenCanvas'
   62 |             ptr->deref();
      |                ^
/var/home/phil/WebKit/WebKitBuild/GTK/Release/WTF/Headers/wtf/RefPtr.h:60:75: note: in instantiation of member function 'WTF::DefaultRefDerefTraits<WebCore::OffscreenCanvas>::derefIfNotNull' requested here
   60 |     inline __attribute__((__always_inline__)) ~RefPtr() { RefDerefTraits::derefIfNotNull(PtrTraits::exchange(m_ptr, nullptr)); }
      |                                                                           ^
/usr/bin/../lib/gcc/x86_64-redhat-linux/14/../../../../include/c++/14/variant:787:33: note: in instantiation of member function 'WTF::RefPtr<WebCore::OffscreenCanvas>::~RefPtr' requested here
  787 |   template<typename _Ti> struct _Arr { _Ti _M_x[1]; };
      |                                 ^
/usr/bin/../lib/gcc/x86_64-redhat-linux/14/../../../../include/c++/14/bits/unique_ptr.h:93:2: note: in instantiation of member function 'WTF::Detail::CallableWrapper<(lambda at /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoDecoder.cpp:147:74), void, WebCore::WebCodecsVideoDecoder &>::call' requested here
   93 |  delete __ptr;
      |  ^
/var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoDecoder.cpp:147:74: note: in instantiation of function template specialization 'WTF::Function<void (WebCore::WebCodecsVideoDecoder &)>::Function<(lambda at /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoDecoder.cpp:147:74), void>' requested here
  147 |             postTaskToCodec<WebCodecsVideoDecoder>(identifier, weakThis, [result = std::move<WTF::CheckMoveParameter>(result), decoderCount] (auto& decoder) mutable {
      |                                                                          ^
/usr/bin/../lib/gcc/x86_64-redhat-linux/14/../../../../include/c++/14/bits/unique_ptr.h:93:2: note: in instantiation of member function 'WTF::Detail::CallableWrapper<(lambda at /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoDecoder.cpp:146:105), void, std::experimental::expected<WebCore::VideoDecoder::DecodedFrame, WTF::String> &&>::call' requested here
   93 |  delete __ptr;
      |  ^
/var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoDecoder.cpp:146:105: note: in instantiation of function template specialization 'WTF::Function<void (std::experimental::expected<WebCore::VideoDecoder::DecodedFrame, WTF::String> &&)>::Function<(lambda at /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoDecoder.cpp:146:105), void>' requested here
  146 |         Ref createDecoderPromise = VideoDecoder::create(config.codec, createVideoDecoderConfig(config), [identifier, weakThis = ThreadSafeWeakPtr { *this }, decoderCount = ++m_decoderCount] (auto&& result) {
      |                                                                                                         ^
/var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoFrame.h:49:7: note: forward declaration of 'WebCore::OffscreenCanvas'
   49 | class OffscreenCanvas;
      |       ^
In file included from /var/home/phil/WebKit/WebKitBuild/GTK/Release/WebCore/DerivedSources/unified-sources/UnifiedSource-f8afad56-57.cpp:1:
In file included from /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/VideoColorSpace.cpp:27:
In file included from /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/VideoColorSpace.h:34:
/var/home/phil/WebKit/WebKitBuild/GTK/Release/WTF/Headers/wtf/Ref.h:62:16: error: member access into incomplete type 'WebCore::HTMLVideoElement'
   62 |             ptr->deref();
      |                ^
/var/home/phil/WebKit/WebKitBuild/GTK/Release/WTF/Headers/wtf/RefPtr.h:60:75: note: in instantiation of member function 'WTF::DefaultRefDerefTraits<WebCore::HTMLVideoElement>::derefIfNotNull' requested here
   60 |     inline __attribute__((__always_inline__)) ~RefPtr() { RefDerefTraits::derefIfNotNull(PtrTraits::exchange(m_ptr, nullptr)); }
      |                                                                           ^
/usr/bin/../lib/gcc/x86_64-redhat-linux/14/../../../../include/c++/14/variant:787:33: note: in instantiation of member function 'WTF::RefPtr<WebCore::HTMLVideoElement>::~RefPtr' requested here
  787 |   template<typename _Ti> struct _Arr { _Ti _M_x[1]; };
      |                                 ^
/usr/bin/../lib/gcc/x86_64-redhat-linux/14/../../../../include/c++/14/bits/unique_ptr.h:93:2: note: in instantiation of member function 'WTF::Detail::CallableWrapper<(lambda at /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoDecoder.cpp:147:74), void, WebCore::WebCodecsVideoDecoder &>::call' requested here
   93 |  delete __ptr;
      |  ^
/var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoDecoder.cpp:147:74: note: in instantiation of function template specialization 'WTF::Function<void (WebCore::WebCodecsVideoDecoder &)>::Function<(lambda at /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoDecoder.cpp:147:74), void>' requested here
  147 |             postTaskToCodec<WebCodecsVideoDecoder>(identifier, weakThis, [result = std::move<WTF::CheckMoveParameter>(result), decoderCount] (auto& decoder) mutable {
      |                                                                          ^
/usr/bin/../lib/gcc/x86_64-redhat-linux/14/../../../../include/c++/14/bits/unique_ptr.h:93:2: note: in instantiation of member function 'WTF::Detail::CallableWrapper<(lambda at /var/home/phil/WebKit/Source/WebCo
re/Modules/webcodecs/WebCodecsVideoDecoder.cpp:146:105), void, std::experimental::expected<WebCore::VideoDecoder::DecodedFrame, WTF::String> &&>::call' requested here
   93 |  delete __ptr;
      |  ^
/var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoDecoder.cpp:146:105: note: in instantiation of function template specialization 'WTF::Function<void (std::experimental::expected<WebCore::VideoDecoder::DecodedFrame, WTF::String> &&)>::Function<(lambda at /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoDecoder.cpp:146:105), void>' requested here
  146 |         Ref createDecoderPromise = VideoDecoder::create(config.codec, createVideoDecoderConfig(config), [identifier, weakThis = ThreadSafeWeakPtr { *this }, decoderCount = ++m_decoderCount] (auto&& result) {
      |                                                                                                         ^
/var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoFrame.h:45:7: note: forward declaration of 'WebCore::HTMLVideoElement'
   45 | class HTMLVideoElement;
      |       ^
7 errors generated.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20241019/4f333d78/attachment-0001.htm>


More information about the webkit-unassigned mailing list