Skip to content

Commit

Permalink
Unreviewed, rolling out r206845.
Browse files Browse the repository at this point in the history
https://bugs.webkit.org/show_bug.cgi?id=162998

broke el capitan build (Requested by alexchristensen on
#webkit).

Reverted changeset:

"Add Display P3 ColorSpace"
https://bugs.webkit.org/show_bug.cgi?id=162880
http://trac.webkit.org/changeset/206845

Canonical link: https://commits.webkit.org/180905@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@206852 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
webkit-commit-queue committed Oct 6, 2016
1 parent 193110d commit 0d0e2e0
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
14 changes: 14 additions & 0 deletions Source/WebCore/ChangeLog
@@ -1,3 +1,17 @@
2016-10-05 Commit Queue <commit-queue@webkit.org>

Unreviewed, rolling out r206845.
https://bugs.webkit.org/show_bug.cgi?id=162998

broke el capitan build (Requested by alexchristensen on
#webkit).

Reverted changeset:

"Add Display P3 ColorSpace"
https://bugs.webkit.org/show_bug.cgi?id=162880
http://trac.webkit.org/changeset/206845

2016-10-05 Youenn Fablet <youenn@apple.com>

Reuse CodeGenerator::UpdateFile in Tools CodeGenerator
Expand Down
3 changes: 1 addition & 2 deletions Source/WebCore/platform/graphics/ColorSpace.h
Expand Up @@ -31,8 +31,7 @@ namespace WebCore {
enum ColorSpace {
ColorSpaceDeviceRGB,
ColorSpaceSRGB,
ColorSpaceLinearRGB,
ColorSpaceDisplayP3
ColorSpaceLinearRGB
};

} // namespace WebCore
Expand Down
10 changes: 0 additions & 10 deletions Source/WebCore/platform/graphics/cg/GraphicsContextCG.cpp
Expand Up @@ -94,16 +94,6 @@ CGColorSpaceRef sRGBColorSpaceRef()
return sRGBSpace;
}

CGColorSpaceRef displayP3ColorSpaceRef()
{
#if PLATFORM(IOS) || (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101100)
static CGColorSpaceRef displayP3Space = CGColorSpaceCreateWithName(kCGColorSpaceDisplayP3);
#else
static CGColorSpaceRef displayP3Space = sRGBColorSpaceRef();
#endif
return displayP3Space;
}

#if PLATFORM(WIN)
CGColorSpaceRef linearRGBColorSpaceRef()
{
Expand Down
3 changes: 0 additions & 3 deletions Source/WebCore/platform/graphics/cg/GraphicsContextCG.h
Expand Up @@ -34,7 +34,6 @@ namespace WebCore {

CGColorSpaceRef deviceRGBColorSpaceRef();
WEBCORE_EXPORT CGColorSpaceRef sRGBColorSpaceRef();
WEBCORE_EXPORT CGColorSpaceRef displayP3ColorSpaceRef();
CGColorSpaceRef linearRGBColorSpaceRef();

inline CGAffineTransform getUserToBaseCTM(CGContextRef context)
Expand All @@ -51,8 +50,6 @@ static inline CGColorSpaceRef cachedCGColorSpace(ColorSpace colorSpace)
return sRGBColorSpaceRef();
case ColorSpaceLinearRGB:
return linearRGBColorSpaceRef();
case ColorSpaceDisplayP3:
return displayP3ColorSpaceRef();
}
ASSERT_NOT_REACHED();
return deviceRGBColorSpaceRef();
Expand Down

0 comments on commit 0d0e2e0

Please sign in to comment.