Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(678)

Unified Diff: Source/core/html/canvas/CanvasRenderingContext2DState.cpp

Issue 1176073003: Improve filtering quality of images downsampled in 2d canvas (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: re-add test Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/fast/canvas/downsample-quality.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/canvas/CanvasRenderingContext2DState.cpp
diff --git a/Source/core/html/canvas/CanvasRenderingContext2DState.cpp b/Source/core/html/canvas/CanvasRenderingContext2DState.cpp
index fc4102e0c6e20136fd2454e8aaafa1cf9d17859c..3aebf600c88993927f2fe9cd2ac93a86f6a0894f 100644
--- a/Source/core/html/canvas/CanvasRenderingContext2DState.cpp
+++ b/Source/core/html/canvas/CanvasRenderingContext2DState.cpp
@@ -404,7 +404,7 @@ SkXfermode::Mode CanvasRenderingContext2DState::globalComposite() const
void CanvasRenderingContext2DState::setImageSmoothingEnabled(bool enabled)
{
- SkFilterQuality filterQuality = enabled ? kLow_SkFilterQuality : kNone_SkFilterQuality;
+ SkFilterQuality filterQuality = enabled ? kMedium_SkFilterQuality : kNone_SkFilterQuality;
m_strokePaint.setFilterQuality(filterQuality);
m_fillPaint.setFilterQuality(filterQuality);
m_imagePaint.setFilterQuality(filterQuality);
@@ -412,7 +412,7 @@ void CanvasRenderingContext2DState::setImageSmoothingEnabled(bool enabled)
bool CanvasRenderingContext2DState::imageSmoothingEnabled() const
{
- return m_imagePaint.getFilterQuality() == kLow_SkFilterQuality;
+ return m_imagePaint.getFilterQuality() == kMedium_SkFilterQuality;
}
bool CanvasRenderingContext2DState::shouldDrawShadows() const
« no previous file with comments | « LayoutTests/fast/canvas/downsample-quality.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698