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

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

Issue 2690583002: Make cc/paint have concrete types (Closed)
Patch Set: PaintRecord as typedef, fixup playback calls Created 3 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
« no previous file with comments | « ash/common/shelf/overflow_button.cc ('k') | cc/layers/painted_overlay_scrollbar_layer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/shelf/shelf_button.cc
diff --git a/ash/common/shelf/shelf_button.cc b/ash/common/shelf/shelf_button.cc
index d5d32ff71833d2f7f240a64f9a353a5e7ff079d6..e77571e1e77cf2c8217525d9108c12d8b76ecd88 100644
--- a/ash/common/shelf/shelf_button.cc
+++ b/ash/common/shelf/shelf_button.cc
@@ -154,13 +154,13 @@ class ShelfButton::AppStatusIndicatorView
// Fill the center.
cc::PaintFlags flags;
flags.setColor(kIndicatorColor);
- flags.setFlags(cc::PaintFlags::kAntiAlias_Flag);
+ flags.setAntiAlias(true);
canvas->DrawCircle(center, dsf * kIndicatorRadiusDip - kStrokeWidthPx,
flags);
// Stroke the border.
flags.setColor(SkColorSetA(SK_ColorBLACK, 0x4D));
- flags.setStyle(SkPaint::kStroke_Style);
+ flags.setStyle(cc::PaintFlags::kStroke_Style);
canvas->DrawCircle(
center, dsf * kIndicatorRadiusDip - kStrokeWidthPx / 2.0f, flags);
}
« no previous file with comments | « ash/common/shelf/overflow_button.cc ('k') | cc/layers/painted_overlay_scrollbar_layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698