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

Unified Diff: third_party/WebKit/Source/core/paint/HTMLCanvasPainter.cpp

Issue 2899633002: Make EImageRendering an enum class. (Closed)
Patch Set: Rebase Created 3 years, 7 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/core/paint/HTMLCanvasPainter.cpp
diff --git a/third_party/WebKit/Source/core/paint/HTMLCanvasPainter.cpp b/third_party/WebKit/Source/core/paint/HTMLCanvasPainter.cpp
index 940a2636de23cc8c0a03af5e5740bb78241af41e..a6411b297992cb14fef4eca6dadcf3d7ca13431b 100644
--- a/third_party/WebKit/Source/core/paint/HTMLCanvasPainter.cpp
+++ b/third_party/WebKit/Source/core/paint/HTMLCanvasPainter.cpp
@@ -56,10 +56,11 @@ void HTMLCanvasPainter::PaintReplaced(const PaintInfo& paint_info,
// is set. See bug for more details: crbug.com/353716.
InterpolationQuality interpolation_quality =
layout_html_canvas_.Style()->ImageRendering() ==
- kImageRenderingOptimizeContrast
+ EImageRendering::kOptimizeContrast
? kInterpolationLow
: CanvasDefaultInterpolationQuality;
- if (layout_html_canvas_.Style()->ImageRendering() == kImageRenderingPixelated)
+ if (layout_html_canvas_.Style()->ImageRendering() ==
+ EImageRendering::kPixelated)
interpolation_quality = kInterpolationNone;
InterpolationQuality previous_interpolation_quality =
« no previous file with comments | « third_party/WebKit/Source/core/page/DragController.cpp ('k') | third_party/WebKit/Source/core/style/ComputedStyle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698