Title: [186879] trunk/Source/WebCore
- Revision
- 186879
- Author
- [email protected]
- Date
- 2015-07-15 18:13:10 -0700 (Wed, 15 Jul 2015)
Log Message
Tag WebGL layers with sRGB colorspace
https://bugs.webkit.org/show_bug.cgi?id=146986
<rdar://problem/21758704>
Fix the build on older El Capitan releases.
* platform/graphics/mac/WebGLLayer.mm:
(-[WebGLLayer initWithGraphicsContext3D:]):
* platform/spi/cocoa/QuartzCoreSPI.h:
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (186878 => 186879)
--- trunk/Source/WebCore/ChangeLog 2015-07-16 01:00:22 UTC (rev 186878)
+++ trunk/Source/WebCore/ChangeLog 2015-07-16 01:13:10 UTC (rev 186879)
@@ -22,6 +22,18 @@
https://bugs.webkit.org/show_bug.cgi?id=146986
<rdar://problem/21758704>
+ Fix the build on older El Capitan releases.
+
+ * platform/graphics/mac/WebGLLayer.mm:
+ (-[WebGLLayer initWithGraphicsContext3D:]):
+ * platform/spi/cocoa/QuartzCoreSPI.h:
+
+2015-07-15 Dean Jackson <[email protected]>
+
+ Tag WebGL layers with sRGB colorspace
+ https://bugs.webkit.org/show_bug.cgi?id=146986
+ <rdar://problem/21758704>
+
Reviewed by Simon Fraser.
Label a CAOpenGLLayer as using the sRGB colorspace,
Modified: trunk/Source/WebCore/platform/graphics/mac/WebGLLayer.mm (186878 => 186879)
--- trunk/Source/WebCore/platform/graphics/mac/WebGLLayer.mm 2015-07-16 01:00:22 UTC (rev 186878)
+++ trunk/Source/WebCore/platform/graphics/mac/WebGLLayer.mm 2015-07-16 01:13:10 UTC (rev 186879)
@@ -54,7 +54,8 @@
#if PLATFORM(MAC)
self.contentsScale = _devicePixelRatio;
#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 101100
- self.colorspace = sRGBColorSpaceRef();
+ if ([self respondsToSelector:@selector(setColorspace:)])
+ [self setColorspace:sRGBColorSpaceRef()];
#endif
#endif
return self;
Modified: trunk/Source/WebCore/platform/spi/cocoa/QuartzCoreSPI.h (186878 => 186879)
--- trunk/Source/WebCore/platform/spi/cocoa/QuartzCoreSPI.h 2015-07-16 01:00:22 UTC (rev 186878)
+++ trunk/Source/WebCore/platform/spi/cocoa/QuartzCoreSPI.h 2015-07-16 01:13:10 UTC (rev 186879)
@@ -97,6 +97,12 @@
- (void)setNeedsDisplayInRect:(CGRect)rect levelOfDetail:(int)levelOfDetail options:(NSDictionary *)dictionary;
@end
+#if PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101100
+@interface CAOpenGLLayer (Details)
+@property CGColorSpaceRef colorspace;
+@end
+#endif
+
struct CAColorMatrix {
float m11, m12, m13, m14, m15;
float m21, m22, m23, m24, m25;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes