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

Unified Diff: ui/gfx/canvas.cc

Issue 1011683006: stop using deprecated SkPaint::FilterLevel (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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: ui/gfx/canvas.cc
diff --git a/ui/gfx/canvas.cc b/ui/gfx/canvas.cc
index c16a0872b400bcb63af173e2b25dbb6bb4db1930..ec7d74c36fcb0cc15cd430a6a6eafa5e682a6ae0 100644
--- a/ui/gfx/canvas.cc
+++ b/ui/gfx/canvas.cc
@@ -632,8 +632,7 @@ void Canvas::DrawImageIntHelper(const ImageSkia& image,
// Set up our paint to use the shader & release our reference (now just owned
// by the paint).
SkPaint p(paint);
- p.setFilterLevel(filter ? SkPaint::kLow_FilterLevel
- : SkPaint::kNone_FilterLevel);
+ p.setFilterQuality(filter ? kLow_SkFilterQuality : kNone_SkFilterQuality);
p.setShader(shader.get());
// The rect will be filled by the bitmap.

Powered by Google App Engine
This is Rietveld 408576698