Changeset 192194 in webkit


Ignore:
Timestamp:
Nov 9, 2015 5:10:51 PM (9 years ago)
Author:
Simon Fraser
Message:

Allow iOS to create linearRGB colorspaces
https://bugs.webkit.org/show_bug.cgi?id=151059

Reviewed by Tim Horton.

Remove iOS #ifdefs around code that creates linearized RGB colorspaces, as used
by SVG filters. Blending doesn't actually work correctly, but there's no reason
to #ifdef differently here.

  • platform/graphics/cg/GraphicsContextCG.cpp:
  • platform/graphics/mac/GraphicsContextMac.mm:

(WebCore::linearRGBColorSpaceRef):

Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r192193 r192194  
     12015-11-09  Simon Fraser  <simon.fraser@apple.com>
     2
     3        Allow iOS to create linearRGB colorspaces
     4        https://bugs.webkit.org/show_bug.cgi?id=151059
     5
     6        Reviewed by Tim Horton.
     7
     8        Remove iOS #ifdefs around code that creates linearized RGB colorspaces, as used
     9        by SVG filters. Blending doesn't actually work correctly, but there's no reason
     10        to #ifdef differently here.
     11
     12        * platform/graphics/cg/GraphicsContextCG.cpp:
     13        * platform/graphics/mac/GraphicsContextMac.mm:
     14        (WebCore::linearRGBColorSpaceRef):
     15
    1162015-11-09  Wenson Hsieh  <wenson_hsieh@apple.com>
    217
  • trunk/Source/WebCore/platform/graphics/cg/GraphicsContextCG.cpp

    r192140 r192194  
    5252#endif
    5353
    54 #if PLATFORM(IOS)
    55 #include <wtf/HashMap.h>
    56 #endif
    57 
    5854// FIXME: The following using declaration should be in <wtf/HashFunctions.h>.
    5955using WTF::pairIntHash;
     
    9490}
    9591
    96 #if PLATFORM(WIN) || PLATFORM(IOS)
     92#if PLATFORM(WIN)
    9793CGColorSpaceRef linearRGBColorSpaceRef()
    9894{
  • trunk/Source/WebCore/platform/graphics/mac/GraphicsContextMac.mm

    r191489 r192194  
    293293}
    294294
    295 #if !PLATFORM(IOS)
    296295CGColorSpaceRef linearRGBColorSpaceRef()
    297296{
    298     static CGColorSpaceRef linearSRGBSpace = 0;
     297    static CGColorSpaceRef linearSRGBSpace = nullptr;
    299298
    300299    if (linearSRGBSpace)
     
    313312    return linearSRGBSpace;
    314313}
    315 #endif
    316 
    317 }
     314
     315}
Note: See TracChangeset for help on using the changeset viewer.