Changeset 290618 in webkit
- Timestamp:
- Feb 28, 2022 3:26:38 PM (2 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r290616 r290618 1 2022-02-28 Per Arne Vollan <pvollan@apple.com> 2 3 Remove release assert when UI process is blocking IOSurface IOKit access 4 https://bugs.webkit.org/show_bug.cgi?id=237278 5 6 Reviewed by Darin Adler. 7 8 Remove release assert in IOSurface::bytesPerRowAlignment() when UI process is blocking IOSurface IOKit access. 9 Instead, log this event, and return an appropriate value. 10 11 * platform/graphics/cocoa/IOSurface.mm: 12 (WebCore::IOSurface::bytesPerRowAlignment): 13 1 14 2022-02-28 Chris Dumez <cdumez@apple.com> 2 15 -
trunk/Source/WebCore/platform/graphics/cocoa/IOSurface.mm
r288789 r290618 294 294 // This likely means that the sandbox is blocking access to the IOSurface IOKit class, 295 295 // and that IOSurface::bytesPerRowAlignment() has been called before IOSurface::setBytesPerRowAlignment. 296 RELEASE_ASSERT(alignment > 1); 296 if (alignment <= 1) { 297 RELEASE_LOG_FAULT(Layers, "Sandbox does not allow IOSurface IOKit access."); 298 // 64 bytes is currently the alignment on all platforms. 299 alignment = 64; 300 } 297 301 } 298 302 return alignment;
Note: See TracChangeset
for help on using the changeset viewer.