Title: [100667] trunk/Source/WebCore
Revision
100667
Author
mr...@apple.com
Date
2011-11-17 13:50:47 -0800 (Thu, 17 Nov 2011)

Log Message

<http://webkit.org/b/72637> Stop performing runtime version checks on OS versions where the check can never possibly fail.

Reviewed by Simon Fraser.

* platform/graphics/cg/ImageBufferDataCG.cpp:
(WebCore::haveVImageRoundingErrorFix): When not targeting Snow Leopard we always have the fix.

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (100666 => 100667)


--- trunk/Source/WebCore/ChangeLog	2011-11-17 21:48:43 UTC (rev 100666)
+++ trunk/Source/WebCore/ChangeLog	2011-11-17 21:50:47 UTC (rev 100667)
@@ -1,3 +1,12 @@
+2011-11-17  Mark Rowe  <mr...@apple.com>
+
+        <http://webkit.org/b/72637> Stop performing runtime version checks on OS versions where the check can never possibly fail.
+
+        Reviewed by Simon Fraser.
+
+        * platform/graphics/cg/ImageBufferDataCG.cpp:
+        (WebCore::haveVImageRoundingErrorFix): When not targeting Snow Leopard we always have the fix.
+
 2011-11-17  Chris Fleizach  <cfleiz...@apple.com>
 
         AX: The scrollArea is not correctly returning the scrollbars

Modified: trunk/Source/WebCore/platform/graphics/cg/ImageBufferDataCG.cpp (100666 => 100667)


--- trunk/Source/WebCore/platform/graphics/cg/ImageBufferDataCG.cpp	2011-11-17 21:48:43 UTC (rev 100666)
+++ trunk/Source/WebCore/platform/graphics/cg/ImageBufferDataCG.cpp	2011-11-17 21:50:47 UTC (rev 100667)
@@ -58,6 +58,10 @@
 }
 
 #if USE(ACCELERATE)
+
+#ifndef TARGETING_SNOW_LEOPARD
+static bool haveVImageRoundingErrorFix() { return true; }
+#else
 // The vImage unpremultiply routine had a rounding bug before 10.6.7 <rdar://problem/8631548>
 static bool haveVImageRoundingErrorFix()
 {
@@ -65,6 +69,7 @@
     static bool result = (Gestalt(gestaltSystemVersion, &version) == noErr && version > 0x1066);
     return result;
 }
+#endif // TARGETING_SNOW_LEOPARD
 
 #if USE(IOSURFACE_CANVAS_BACKING_STORE)
 static void convertScanline(void* data, size_t tileNumber, bool premultiply)
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to