Changeset 269893 in webkit
- Timestamp:
- Nov 16, 2020 9:23:24 PM (3 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r269888 r269893 1 2020-11-16 Kimmo Kinnunen <kkinnunen@apple.com> 2 3 Textures Fail to Render in WebGL from HLS Stream on iPhone 12 [iOS 14.2] 4 https://bugs.webkit.org/show_bug.cgi?id=218637 5 <rdar://problem/71102126> 6 7 Reviewed by Eric Carlson. 8 9 Patch by Jer Noble. 10 11 Treat internal compressed YUV pixel formats 12 kCVPixelFormatType_AGX_420YpCbCr8BiPlanarVideoRange and 13 kCVPixelFormatType_AGX_420YpCbCr8BiPlanarFullRange as 14 kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange and 15 kCVPixelFormatType_420YpCbCr8BiPlanarFullRange when 16 using the OpenGL shader to convert video IOSurface to a WebGL 17 texture. 18 19 Fixes cases where the decoder outputs the compressed formats. 20 21 No new tests, adding more comprehensive test content suite is tracked 22 in another bug. 23 24 * platform/graphics/cv/GraphicsContextGLCVANGLE.cpp: 25 (WebCore::pixelRangeFromPixelFormat): 26 (WebCore::GraphicsContextGLCVANGLE::copyPixelBufferToTexture): 27 1 28 2020-11-16 Sam Weinig <weinig@apple.com> 2 29 -
trunk/Source/WebCore/PAL/ChangeLog
r269688 r269893 1 2020-11-16 Kimmo Kinnunen <kkinnunen@apple.com> 2 3 Textures Fail to Render in WebGL from HLS Stream on iPhone 12 [iOS 14.2] 4 https://bugs.webkit.org/show_bug.cgi?id=218637 5 <rdar://problem/71102126> 6 7 Reviewed by Eric Carlson. 8 9 Patch by Jer Noble. 10 11 Treat internal compressed YUV pixel formats 12 kCVPixelFormatType_AGX_420YpCbCr8BiPlanarVideoRange and 13 kCVPixelFormatType_AGX_420YpCbCr8BiPlanarFullRange as 14 kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange and 15 kCVPixelFormatType_420YpCbCr8BiPlanarFullRange when 16 using the OpenGL shader to convert video IOSurface to a WebGL 17 texture. 18 19 Fixes cases where the decoder outputs the compressed formats. 20 21 No new tests, adding more comprehensive test content suite is tracked 22 in another bug. 23 24 * PAL.xcodeproj/project.pbxproj: 25 * pal/spi/cf/CoreVideoSPI.h: Added. 26 1 27 2020-11-11 Eric Carlson <eric.carlson@apple.com> 2 28 -
trunk/Source/WebCore/PAL/PAL.xcodeproj/project.pbxproj
r269631 r269893 382 382 C15CBB3223F34A1200300CC7 /* NSUserDefaultsSPI.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = NSUserDefaultsSPI.h; sourceTree = "<group>"; }; 383 383 C2147A4A1EFD0AA600056FA5 /* CopyPALHeaders.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = CopyPALHeaders.xcconfig; sourceTree = "<group>"; }; 384 CD17B268255F1625008430F9 /* CoreVideoSPI.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CoreVideoSPI.h; sourceTree = "<group>"; }; 384 385 CD6122CA2559B6AC00FC657A /* OutputContext.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = OutputContext.h; sourceTree = "<group>"; }; 385 386 CD6122CB2559B6AC00FC657A /* OutputContext.mm */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.objcpp; path = OutputContext.mm; sourceTree = "<group>"; }; … … 444 445 0C2DA06B1F33CA8400DBC317 /* CoreAudioSPI.h */, 445 446 0C2DA06C1F33CA8400DBC317 /* CoreMediaSPI.h */, 447 CD17B268255F1625008430F9 /* CoreVideoSPI.h */, 446 448 ); 447 449 path = cf; -
trunk/Source/WebCore/platform/graphics/cv/GraphicsContextGLCVANGLE.cpp
r269678 r269893 31 31 #include "FourCC.h" 32 32 #include "Logging.h" 33 #include <pal/spi/cf/CoreVideoSPI.h> 33 34 #include <pal/spi/cocoa/IOSurfaceSPI.h> 34 35 #include <wtf/NeverDestroyed.h> … … 147 148 case kCVPixelFormatType_422YpCbCr10BiPlanarVideoRange: 148 149 case kCVPixelFormatType_444YpCbCr10BiPlanarVideoRange: 150 case kCVPixelFormatType_AGX_420YpCbCr8BiPlanarVideoRange: 149 151 return PixelRange::Video; 150 152 case kCVPixelFormatType_420YpCbCr8PlanarFullRange: … … 155 157 case kCVPixelFormatType_422YpCbCr10BiPlanarFullRange: 156 158 case kCVPixelFormatType_444YpCbCr10BiPlanarFullRange: 159 case kCVPixelFormatType_AGX_420YpCbCr8BiPlanarFullRange: 157 160 return PixelRange::Full; 158 161 default: … … 579 582 // FIXME: This currently only supports '420v' and '420f' pixel formats. Investigate supporting more pixel formats. 580 583 OSType pixelFormat = CVPixelBufferGetPixelFormatType(image); 581 if (pixelFormat != kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange && pixelFormat != kCVPixelFormatType_420YpCbCr8BiPlanarFullRange) { 584 if (pixelFormat != kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange 585 && pixelFormat != kCVPixelFormatType_420YpCbCr8BiPlanarFullRange 586 && pixelFormat != kCVPixelFormatType_AGX_420YpCbCr8BiPlanarVideoRange 587 && pixelFormat != kCVPixelFormatType_AGX_420YpCbCr8BiPlanarFullRange) { 582 588 LOG(WebGL, "GraphicsContextGLCVANGLE::copyVideoTextureToPlatformTexture(%p) - Asked to copy an unsupported pixel format ('%s').", this, FourCC(pixelFormat).toString().utf8().data()); 583 589 return false;
Note: See TracChangeset
for help on using the changeset viewer.