[SCM] WebKit Debian packaging branch, debian/experimental, updated. upstream/1.3.3-9427-gc2be6fc

commit-queue at webkit.org commit-queue at webkit.org
Wed Dec 22 13:43:17 UTC 2010


The following commit has been merged in the debian/experimental branch:
commit 5be3713efef59dff6bff96a441844ca6a01c8869
Author: commit-queue at webkit.org <commit-queue at webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Fri Sep 24 00:29:35 2010 +0000

    2010-09-23  Matthew Delaney  <mdelaney at apple.com>
    
            Reviewed by Oliver Hunt.
    
            Lower the default canvas interpolation quality for platforms that use CG
            https://bugs.webkit.org/show_bug.cgi?id=45722
    
            Lowered the default image interpolation quality for platforms that
            use CG down to low since this is as good as if not better than
            other graphics platforms defaults (being bilinear interpolation).
    
            * html/HTMLCanvasElement.cpp:
            (WebCore::HTMLCanvasElement::createImageBuffer):
            * html/HTMLCanvasElement.h: Moved in macros for default canvas interp quality.
            * platform/graphics/GraphicsContext.h: Moved out macros for default canvas interp quality. It makes more sense for them to be housed where they're used.
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@68221 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/WebCore/ChangeLog b/WebCore/ChangeLog
index 612e86e..9b54389 100644
--- a/WebCore/ChangeLog
+++ b/WebCore/ChangeLog
@@ -1,3 +1,19 @@
+2010-09-23  Matthew Delaney  <mdelaney at apple.com>
+
+        Reviewed by Oliver Hunt.
+
+        Lower the default canvas interpolation quality for platforms that use CG
+        https://bugs.webkit.org/show_bug.cgi?id=45722
+
+        Lowered the default image interpolation quality for platforms that
+        use CG down to low since this is as good as if not better than
+        other graphics platforms defaults (being bilinear interpolation).
+
+        * html/HTMLCanvasElement.cpp:
+        (WebCore::HTMLCanvasElement::createImageBuffer):
+        * html/HTMLCanvasElement.h: Moved in macros for default canvas interp quality.
+        * platform/graphics/GraphicsContext.h: Moved out macros for default canvas interp quality. It makes more sense for them to be housed where they're used.
+
 2010-09-23  David Hyatt  <hyatt at apple.com>
 
         Reviewed by Adele Peterson.
diff --git a/WebCore/html/HTMLCanvasElement.cpp b/WebCore/html/HTMLCanvasElement.cpp
index 6f46ab4..634fe13 100644
--- a/WebCore/html/HTMLCanvasElement.cpp
+++ b/WebCore/html/HTMLCanvasElement.cpp
@@ -377,7 +377,7 @@ void HTMLCanvasElement::createImageBuffer() const
         return;
     m_imageBuffer->context()->scale(FloatSize(size.width() / unscaledSize.width(), size.height() / unscaledSize.height()));
     m_imageBuffer->context()->setShadowsIgnoreTransforms(true);
-    m_imageBuffer->context()->setImageInterpolationQuality(CanvasInterpolationQuality);
+    m_imageBuffer->context()->setImageInterpolationQuality(DefaultInterpolationQuality);
 }
 
 GraphicsContext* HTMLCanvasElement::drawingContext() const
diff --git a/WebCore/html/HTMLCanvasElement.h b/WebCore/html/HTMLCanvasElement.h
index 172ffbd..d9b7736 100644
--- a/WebCore/html/HTMLCanvasElement.h
+++ b/WebCore/html/HTMLCanvasElement.h
@@ -32,6 +32,14 @@
 #include "HTMLElement.h"
 #include "IntSize.h"
 
+#if PLATFORM(CHROMIUM)
+#define DefaultInterpolationQuality InterpolationMedium
+#elif PLATFORM(CG)
+#define DefaultInterpolationQuality InterpolationLow
+#else
+#define DefaultInterpolationQuality InterpolationDefault
+#endif
+
 namespace WebCore {
 
 class CanvasContextAttributes;
diff --git a/WebCore/platform/graphics/GraphicsContext.h b/WebCore/platform/graphics/GraphicsContext.h
index cb045e1..4cf7c00 100644
--- a/WebCore/platform/graphics/GraphicsContext.h
+++ b/WebCore/platform/graphics/GraphicsContext.h
@@ -100,12 +100,6 @@ typedef unsigned char UInt8;
 #endif
 #endif
 
-#if PLATFORM(CHROMIUM)
-#define CanvasInterpolationQuality InterpolationMedium
-#else
-#define CanvasInterpolationQuality InterpolationDefault
-#endif
-
 #if PLATFORM(QT) && defined(Q_WS_WIN)
 #include <windows.h>
 #endif

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list