Changeset 211601 in webkit


Ignore:
Timestamp:
Feb 2, 2017 3:21:34 PM (7 years ago)
Author:
Megan Gardner
Message:

Don't attempt wide gammut on older OSes
https://bugs.webkit.org/show_bug.cgi?id=167754
<rdar://problem/29931587>

Reviewed by Tim Horton.

We need to guard our extended color checks the same way throughout the code, or we will attempt to set up
support for wide gamut partially, which causes crashes when using sharable bitmap.

  • WebProcess/WebCoreSupport/mac/WebDragClientMac.mm:

(WebKit::convertImageToBitmap):

  • WebProcess/WebPage/ios/WebPageIOS.mm:

(WebKit::WebPage::getPositionInformation):

Location:
trunk/Source/WebKit2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r211598 r211601  
     12017-02-02  Megan Gardner  <megan_gardner@apple.com>
     2
     3        Don't attempt wide gammut on older OSes
     4        https://bugs.webkit.org/show_bug.cgi?id=167754
     5        <rdar://problem/29931587>
     6
     7        Reviewed by Tim Horton.
     8
     9        We need to guard our extended color checks the same way throughout the code, or we will attempt to set up
     10        support for wide gamut partially, which causes crashes when using sharable bitmap.
     11
     12        * WebProcess/WebCoreSupport/mac/WebDragClientMac.mm:
     13        (WebKit::convertImageToBitmap):
     14        * WebProcess/WebPage/ios/WebPageIOS.mm:
     15        (WebKit::WebPage::getPositionInformation):
     16
    1172017-02-02  Enrica Casucci  <enrica@apple.com>
    218
  • trunk/Source/WebKit2/WebProcess/WebCoreSupport/mac/WebDragClientMac.mm

    r211597 r211601  
    6363{
    6464    ShareableBitmap::Flags flags = ShareableBitmap::SupportsAlpha;
     65#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 101200
    6566    if (screenSupportsExtendedColor(frame.mainFrame().view()))
    6667        flags |= ShareableBitmap::SupportsExtendedColor;
     68#endif
    6769    auto bitmap = ShareableBitmap::createShareable(size, flags);
    6870    if (!bitmap)
  • trunk/Source/WebKit2/WebProcess/WebPage/ios/WebPageIOS.mm

    r211538 r211601  
    24892489                                    // FIXME: Only select ExtendedColor on images known to need wide gamut
    24902490                                    ShareableBitmap::Flags flags = ShareableBitmap::SupportsAlpha;
     2491#if __IPHONE_OS_VERSION_MIN_REQUIRED >= 100000
    24912492                                    flags |= screenSupportsExtendedColor() ? ShareableBitmap::SupportsExtendedColor : 0;
     2493#endif
    24922494                                    if (RefPtr<ShareableBitmap> sharedBitmap = ShareableBitmap::createShareable(IntSize(bitmapSize), flags)) {
    24932495                                        auto graphicsContext = sharedBitmap->createGraphicsContext();
Note: See TracChangeset for help on using the changeset viewer.