Changeset 223254 in webkit


Ignore:
Timestamp:
Oct 12, 2017, 2:12:36 PM (8 years ago)
Author:
Simon Fraser
Message:

Don't assert if mix-blend-mode is set to a non-separable blend mode on a composited layer
https://bugs.webkit.org/show_bug.cgi?id=178196
rdar://problem/34942337

Reviewed by Dan Bates.

Source/WebCore:

Core Animation doesn't support non-separable blend modes (hue, saturation, color, luminosity)
on layers, but don't assert if we try to use them.

Test: compositing/filters/blend-mode-saturation.html

  • platform/graphics/ca/cocoa/PlatformCAFiltersCocoa.mm:

(PlatformCAFilters::setBlendingFiltersOnLayer):

LayoutTests:

  • compositing/filters/blend-mode-saturation-expected.txt: Added.
  • compositing/filters/blend-mode-saturation.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r223253 r223254  
     12017-10-11  Simon Fraser  <simon.fraser@apple.com>
     2
     3        Don't assert if mix-blend-mode is set to a non-separable blend mode on a composited layer
     4        https://bugs.webkit.org/show_bug.cgi?id=178196
     5        rdar://problem/34942337
     6
     7        Reviewed by Dan Bates.
     8
     9        * compositing/filters/blend-mode-saturation-expected.txt: Added.
     10        * compositing/filters/blend-mode-saturation.html: Added.
     11
    1122017-10-12  John Wilander  <wilander@apple.com>
    213
  • trunk/Source/WebCore/ChangeLog

    r223253 r223254  
     12017-10-11  Simon Fraser  <simon.fraser@apple.com>
     2
     3        Don't assert if mix-blend-mode is set to a non-separable blend mode on a composited layer
     4        https://bugs.webkit.org/show_bug.cgi?id=178196
     5        rdar://problem/34942337
     6
     7        Reviewed by Dan Bates.
     8
     9        Core Animation doesn't support non-separable blend modes (hue, saturation, color, luminosity)
     10        on layers, but don't assert if we try to use them.
     11
     12        Test: compositing/filters/blend-mode-saturation.html
     13
     14        * platform/graphics/ca/cocoa/PlatformCAFiltersCocoa.mm:
     15        (PlatformCAFilters::setBlendingFiltersOnLayer):
     16
    1172017-10-12  John Wilander  <wilander@apple.com>
    218
  • trunk/Source/WebCore/platform/graphics/ca/cocoa/PlatformCAFiltersCocoa.mm

    r222125 r223254  
    587587        filter = [CAFilter filterWithType:kCAFilterPlusL];
    588588        break;
     589    case BlendModeHue:
     590    case BlendModeSaturation:
     591    case BlendModeColor:
     592    case BlendModeLuminosity:
     593        // FIXME: CA does't support non-separable blend modes on compositing filters.
     594        break;
    589595    default:
    590596        ASSERT_NOT_REACHED();
Note: See TracChangeset for help on using the changeset viewer.