| Summary: | RealtimeOutgoingVideoSourceCocoa rotation session should not use IOSurface | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | youenn fablet <youennf> | ||||||
| Component: | WebRTC | Assignee: | youenn fablet <youennf> | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Normal | CC: | eric.carlson, ews-watchlist, glenn, hta, jer.noble, philipj, sergio, tommyw, webkit-bug-importer, youennf | ||||||
| Priority: | P2 | Keywords: | InRadar | ||||||
| Version: | WebKit Nightly Build | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Attachments: |
|
||||||||
|
Description
youenn fablet
2022-02-04 06:55:55 PST
Created attachment 450892 [details]
Patch
Comment on attachment 450892 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=450892&action=review > Source/WebCore/platform/graphics/cv/ImageRotationSessionVT.mm:102 > + auto bufferPool = m_shouldUseIOSurface ? createIOSurfaceCVPixelBufferPool(m_rotatedSize.width(), m_rotatedSize.height(), m_pixelFormat, 0u, m_isCGImageCompatible == IsCGImageCompatible::Yes) : createInMemoryCVPixelBufferPool(m_rotatedSize.width(), m_rotatedSize.height(), m_pixelFormat, 0u, m_isCGImageCompatible == IsCGImageCompatible::Yes); Nit: this is long enough that I think it would be easier to read and understand as an `if ... else` (In reply to Eric Carlson from comment #2) > Comment on attachment 450892 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=450892&action=review > > > Source/WebCore/platform/graphics/cv/ImageRotationSessionVT.mm:102 > > + auto bufferPool = m_shouldUseIOSurface ? createIOSurfaceCVPixelBufferPool(m_rotatedSize.width(), m_rotatedSize.height(), m_pixelFormat, 0u, m_isCGImageCompatible == IsCGImageCompatible::Yes) : createInMemoryCVPixelBufferPool(m_rotatedSize.width(), m_rotatedSize.height(), m_pixelFormat, 0u, m_isCGImageCompatible == IsCGImageCompatible::Yes); > > Nit: this is long enough that I think it would be easier to read and > understand as an `if ... else` OK, let's introduce createCVPixelBufferPool with an option shouldUseIOSurface parameter then. Created attachment 451230 [details]
Patch for landing
Committed r289365 (246953@main): <https://commits.webkit.org/246953@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 451230 [details]. |