Changeset 290618 in webkit


Ignore:
Timestamp:
Feb 28, 2022 3:26:38 PM (2 years ago)
Author:
pvollan@apple.com
Message:

Remove release assert when UI process is blocking IOSurface IOKit access
https://bugs.webkit.org/show_bug.cgi?id=237278

Reviewed by Darin Adler.

Remove release assert in IOSurface::bytesPerRowAlignment() when UI process is blocking IOSurface IOKit access.
Instead, log this event, and return an appropriate value.

  • platform/graphics/cocoa/IOSurface.mm:

(WebCore::IOSurface::bytesPerRowAlignment):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r290616 r290618  
     12022-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
    1142022-02-28  Chris Dumez  <cdumez@apple.com>
    215
  • trunk/Source/WebCore/platform/graphics/cocoa/IOSurface.mm

    r288789 r290618  
    294294        // This likely means that the sandbox is blocking access to the IOSurface IOKit class,
    295295        // 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        }
    297301    }
    298302    return alignment;
Note: See TracChangeset for help on using the changeset viewer.