[GPUP] Allow painting of GPUP hosted video from the WebContent process
<rdar://problem/74778890>
Created attachment 421616 [details] Patch
Created attachment 421618 [details] Patch
Created attachment 421619 [details] Patch
Comment on attachment 421619 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=421619&action=review > Source/WebCore/platform/graphics/cocoa/IOSurface.mm:304 > + auto status = CVPixelBufferCreateWithIOSurface(kCFAllocatorDefault, m_surface.get(), nullptr, &rawBuffer); Don't we want the pixel buffer to be GL/GLES compatible if possible? If so, see `ImageTransferSessionVT::ioSurfacePixelBufferCreationOptions`.
(In reply to Eric Carlson from comment #5) > Comment on attachment 421619 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=421619&action=review > > > Source/WebCore/platform/graphics/cocoa/IOSurface.mm:304 > > + auto status = CVPixelBufferCreateWithIOSurface(kCFAllocatorDefault, m_surface.get(), nullptr, &rawBuffer); > > Don't we want the pixel buffer to be GL/GLES compatible if possible? > > If so, see `ImageTransferSessionVT::ioSurfacePixelBufferCreationOptions`. Because we're merely transferring an existing IOSurface, that presumably is already GL compatible due to the flags we pass into the AVPlayerItemVideoOutput, I don't think we need to do any conformance here. But I'll look into this to make sure the resulting pixel buffer _is_ GL compatible.
Committed r273568: <https://commits.webkit.org/r273568> All reviewed patches have been landed. Closing bug and clearing flags on attachment 421619 [details].
*** Bug 221791 has been marked as a duplicate of this bug. ***
*** Bug 221790 has been marked as a duplicate of this bug. ***
*** Bug 221806 has been marked as a duplicate of this bug. ***
*** Bug 221797 has been marked as a duplicate of this bug. ***
*** Bug 221838 has been marked as a duplicate of this bug. ***
*** Bug 221823 has been marked as a duplicate of this bug. ***
*** Bug 221825 has been marked as a duplicate of this bug. ***
*** Bug 221818 has been marked as a duplicate of this bug. ***
*** Bug 222268 has been marked as a duplicate of this bug. ***