Bug 242811 - [Cocoa] Hard code the IOSurface bytesPerRowAlignment to 64
Summary: [Cocoa] Hard code the IOSurface bytesPerRowAlignment to 64
Status: RESOLVED WONTFIX
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Said Abou-Hallawa
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-07-15 11:01 PDT by Said Abou-Hallawa
Modified: 2022-07-15 17:05 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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