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

Unified Diff: third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp

Issue 2157953002: Change filter quality when scaling-down in drawImage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
Index: third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp b/third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp
index d0fbe4ece623a9715e26f1a4d8b04ecc0c685071..8077ba898849064561cfb9a602dad7b2bbdcb7f8 100644
--- a/third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp
+++ b/third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp
@@ -762,7 +762,7 @@ void GraphicsContext::drawImage(Image* image, const FloatRect& dest, const Float
imagePaint.setColor(SK_ColorBLACK);
imagePaint.setFilterQuality(computeFilterQuality(image, dest, src));
imagePaint.setAntiAlias(shouldAntialias());
- image->draw(m_canvas, imagePaint, dest, src, shouldRespectImageOrientation, Image::ClampImageToSourceRect);
+ image->draw(m_canvas, imagePaint, dest, src, true, shouldRespectImageOrientation, Image::ClampImageToSourceRect);
m_paintController.setImagePainted();
}
@@ -803,7 +803,7 @@ void GraphicsContext::drawImageRRect(Image* image, const FloatRoundedRect& dest,
// Clip-based fallback.
SkAutoCanvasRestore autoRestore(m_canvas, true);
m_canvas->clipRRect(dest, SkRegion::kIntersect_Op, imagePaint.isAntiAlias());
- image->draw(m_canvas, imagePaint, dest.rect(), srcRect, respectOrientation, Image::ClampImageToSourceRect);
+ image->draw(m_canvas, imagePaint, dest.rect(), srcRect, true, respectOrientation, Image::ClampImageToSourceRect);
}
m_paintController.setImagePainted();

Powered by Google App Engine
This is Rietveld 408576698