Bug 242811

Summary: [Cocoa] Hard code the IOSurface bytesPerRowAlignment to 64
Product: WebKit Reporter: Said Abou-Hallawa <sabouhallawa>
Component: Layout and RenderingAssignee: Said Abou-Hallawa <sabouhallawa>
Status: RESOLVED WONTFIX    
Severity: Normal CC: bfulgham, simon.fraser, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=242815

Description Said Abou-Hallawa 2022-07-15 11:01:39 PDT
In WebKit, we use IOSurfaceAlignProperty(kIOSurfaceBytesPerRow, ...) to ask IOKit to do the alignment for us. And we use IOSurfaceGetPropertyAlignment() when we do the alignment manually. 

It seems other Cocoa frameworks sometimes use different alignment values. If the alignment values are different, these frameworks will fail to complete IOSurface operations.
Comment 1 Said Abou-Hallawa 2022-07-15 11:02:01 PDT
rdar://79626142
Comment 2 Said Abou-Hallawa 2022-07-15 11:10:37 PDT
Pull request: https://github.com/WebKit/WebKit/pull/2460