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

Unified Diff: ui/views/controls/slider.cc

Issue 2716213002: ui: Fix cc/paint skia type mismatches (Closed)
Patch Set: Created 3 years, 10 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
« ui/gfx/harfbuzz_font_skia.cc ('K') | « ui/native_theme/native_theme_win.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/slider.cc
diff --git a/ui/views/controls/slider.cc b/ui/views/controls/slider.cc
index 219ebf6c02195dff7fb3096b33e49f5de41bd282..7f40c955d7d9d94b7ddcbce10fea02d9ad6693c2 100644
--- a/ui/views/controls/slider.cc
+++ b/ui/views/controls/slider.cc
@@ -295,14 +295,14 @@ void Slider::OnPaint(gfx::Canvas* canvas) {
cc::PaintFlags highlight;
SkColor kHighlightColor = SkColorSetA(kActiveColor, kHighlightColorAlpha);
highlight.setColor(kHighlightColor);
- highlight.setFlags(cc::PaintFlags::kAntiAlias_Flag);
+ highlight.setAntiAlias(true);
canvas->DrawCircle(thumb_center, thumb_highlight_radius, highlight);
}
// Paint the thumb of the slider.
cc::PaintFlags flags;
flags.setColor(current_thumb_color);
- flags.setFlags(cc::PaintFlags::kAntiAlias_Flag);
+ flags.setAntiAlias(true);
enne (OOO) 2017/02/27 01:56:21 Antialiasing is the only use of setFlags anywhere,
if (!is_active_) {
flags.setStrokeWidth(kThumbStroke);
« ui/gfx/harfbuzz_font_skia.cc ('K') | « ui/native_theme/native_theme_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698