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

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

Issue 2717943002: Fix cc/paint skia type mismatches (Closed)
Patch Set: Rebase 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/shelf_button.cc » ('j') | no next file with comments »
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 9898689f6930bb93cd291e7223d6af9dd2603c90..d62c00f2e9f6646f57c9da6d69af5f821a6a8199 100644
--- a/ash/common/shelf/app_list_button.cc
+++ b/ash/common/shelf/app_list_button.cc
@@ -125,7 +125,7 @@ void AppListButton::OnPaint(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);
bg_flags.setStyle(cc::PaintFlags::kFill_Style);
canvas->DrawCircle(circle_center, kAppListButtonRadius, bg_flags);
@@ -138,7 +138,7 @@ void AppListButton::OnPaint(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/shelf_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698