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

Unified Diff: Source/core/rendering/RenderHTMLCanvas.cpp

Issue 201513003: Implement InterpolationMedium to filter animated images (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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: Source/core/rendering/RenderHTMLCanvas.cpp
diff --git a/Source/core/rendering/RenderHTMLCanvas.cpp b/Source/core/rendering/RenderHTMLCanvas.cpp
index f2b67c7c8275c3e2f583ad08ce5fe788517aa66c..5bcd605049d3cbf6000414f234864600fb5b6b92 100644
--- a/Source/core/rendering/RenderHTMLCanvas.cpp
+++ b/Source/core/rendering/RenderHTMLCanvas.cpp
@@ -73,8 +73,9 @@ void RenderHTMLCanvas::paintReplaced(PaintInfo& paintInfo, const LayoutPoint& pa
paintInfo.context->clip(pixelSnappedIntRect(contentRect));
}
+ // FIXME: InterpolationNone should be used if ImageRenderingOptimizeContrast is set.
Stephen White 2014/03/18 17:26:43 Please log a bug for this, if there isn't one alre
Alpha Left Google 2014/03/18 22:59:13 Done.
bool useLowQualityScale = style()->imageRendering() == ImageRenderingOptimizeContrast;
- toHTMLCanvasElement(node())->paint(context, paintRect, useLowQualityScale);
+ toHTMLCanvasElement(node())->paint(context, paintRect, useLowQualityScale ? InterpolationLow : DefaultInterpolationQuality);
if (clip)
context->restore();

Powered by Google App Engine
This is Rietveld 408576698