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

Unified Diff: ash/common/shelf/app_list_button.cc

Issue 2717943002: 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
« no previous file with comments | « no previous file | ash/common/shelf/overflow_button.cc » ('j') | content/renderer/render_view_impl.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/shelf/app_list_button.cc
diff --git a/ash/common/shelf/app_list_button.cc b/ash/common/shelf/app_list_button.cc
index a2c9227ec3a6b77de89ba76dcb80c43395f81404..3630d94ef0b52ce7de6580ab358170effcfbb57f 100644
--- a/ash/common/shelf/app_list_button.cc
+++ b/ash/common/shelf/app_list_button.cc
@@ -166,7 +166,7 @@ void AppListButton::PaintMd(gfx::Canvas* canvas) {
// Paint the circular background.
cc::PaintFlags bg_flags;
bg_flags.setColor(background_color_);
- bg_flags.setFlags(cc::PaintFlags::kAntiAlias_Flag);
+ bg_flags.setAntiAlias(true);
enne (OOO) 2017/02/27 05:20:52 Antialiasing is the only use of setFlags, so am cl
bg_flags.setStyle(cc::PaintFlags::kFill_Style);
canvas->DrawCircle(circle_center, kAppListButtonRadius, bg_flags);
@@ -179,7 +179,7 @@ void AppListButton::PaintMd(gfx::Canvas* canvas) {
circle_center.Scale(dsf);
cc::PaintFlags fg_flags;
- fg_flags.setFlags(cc::PaintFlags::kAntiAlias_Flag);
+ fg_flags.setAntiAlias(true);
fg_flags.setStyle(cc::PaintFlags::kStroke_Style);
fg_flags.setColor(kShelfIconColor);
const float thickness = std::ceil(kRingThicknessDp * dsf);
« no previous file with comments | « no previous file | ash/common/shelf/overflow_button.cc » ('j') | content/renderer/render_view_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698