[SCM] WebKit Debian packaging branch, debian/experimental, updated. upstream/1.3.3-9427-gc2be6fc
senorblanco at chromium.org
senorblanco at chromium.org
Wed Dec 22 11:53:44 UTC 2010
The following commit has been merged in the debian/experimental branch:
commit d8afac46671dadf46ddd4ebf7e094589e035d6ef
Author: senorblanco at chromium.org <senorblanco at chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date: Tue Aug 10 22:02:26 2010 +0000
2010-08-09 Stephen White <senorblanco at chromium.org>
Reviewed by David Levin.
Prefer the medium-quality (bilinear) image resampling for 2D canvas on
Chromium.
https://bugs.webkit.org/show_bug.cgi?id=43646
This is what the accelerated path is going to do,
so do it in the software path as well.
* html/HTMLCanvasElement.cpp:
(WebCore::HTMLCanvasElement::createImageBuffer):
* platform/graphics/GraphicsContext.h:
2010-08-09 Stephen White <senorblanco at chromium.org>
Reviewed by David Levin.
Temporarily mark html/canvas/image-object-in-canvas.html as failing.
https://bugs.webkit.org/show_bug.cgi?id=43646
* platform/chromium/test_expectations.txt:
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65097 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/LayoutTests/ChangeLog b/LayoutTests/ChangeLog
index 6b08cd0..6010981 100644
--- a/LayoutTests/ChangeLog
+++ b/LayoutTests/ChangeLog
@@ -1,3 +1,12 @@
+2010-08-09 Stephen White <senorblanco at chromium.org>
+
+ Reviewed by David Levin.
+
+ Temporarily mark html/canvas/image-object-in-canvas.html as failing.
+ https://bugs.webkit.org/show_bug.cgi?id=43646
+
+ * platform/chromium/test_expectations.txt:
+
2010-08-10 Chris Fleizach <cfleizach at apple.com>
Reviewed by Dave Hyatt.
diff --git a/LayoutTests/platform/chromium/test_expectations.txt b/LayoutTests/platform/chromium/test_expectations.txt
index 873f66f..5621223 100644
--- a/LayoutTests/platform/chromium/test_expectations.txt
+++ b/LayoutTests/platform/chromium/test_expectations.txt
@@ -3185,5 +3185,8 @@ BUG51416 : fast/dom/DeviceMotion/create-event.html = TEXT
BUG51416 : fast/dom/DeviceMotion/optional-event-properties.html = TEXT
BUG51416 : fast/dom/DeviceMotion/window-property.html = TEXT
+// Will need rebaseline.
+BUG_SENORBLANCO : fast/canvas/image-object-in-canvas.html = IMAGE
+
// Slow test introduced in r64817
BUG51571 : http/tests/misc/bad-charset-alias.html = TIMEOUT
diff --git a/WebCore/ChangeLog b/WebCore/ChangeLog
index f29d191..4df80d0 100644
--- a/WebCore/ChangeLog
+++ b/WebCore/ChangeLog
@@ -1,3 +1,18 @@
+2010-08-09 Stephen White <senorblanco at chromium.org>
+
+ Reviewed by David Levin.
+
+ Prefer the medium-quality (bilinear) image resampling for 2D canvas on
+ Chromium.
+ https://bugs.webkit.org/show_bug.cgi?id=43646
+
+ This is what the accelerated path is going to do,
+ so do it in the software path as well.
+
+ * html/HTMLCanvasElement.cpp:
+ (WebCore::HTMLCanvasElement::createImageBuffer):
+ * platform/graphics/GraphicsContext.h:
+
2010-08-10 Chris Fleizach <cfleizach at apple.com>
Reviewed by Dave Hyatt.
diff --git a/WebCore/html/HTMLCanvasElement.cpp b/WebCore/html/HTMLCanvasElement.cpp
index ef5574a..b306361 100644
--- a/WebCore/html/HTMLCanvasElement.cpp
+++ b/WebCore/html/HTMLCanvasElement.cpp
@@ -405,6 +405,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);
}
GraphicsContext* HTMLCanvasElement::drawingContext() const
diff --git a/WebCore/platform/graphics/GraphicsContext.h b/WebCore/platform/graphics/GraphicsContext.h
index a2e018a..c903ed7 100644
--- a/WebCore/platform/graphics/GraphicsContext.h
+++ b/WebCore/platform/graphics/GraphicsContext.h
@@ -96,6 +96,12 @@ 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