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

Unified Diff: ash/common/system/tray/tray_background_view.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 | « ash/common/system/chromeos/network/network_icon.cc ('k') | ash/common/wm/overview/window_grid.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/system/tray/tray_background_view.cc
diff --git a/ash/common/system/tray/tray_background_view.cc b/ash/common/system/tray/tray_background_view.cc
index 475343216dbf61d94c65d8df1034fac14eed5f04..d7d545383819d21c2b50c104718b02c9dbf3740c 100644
--- a/ash/common/system/tray/tray_background_view.cc
+++ b/ash/common/system/tray/tray_background_view.cc
@@ -128,7 +128,7 @@ class TrayBackground : public views::Background {
void PaintMaterial(gfx::Canvas* canvas, views::View* view) const {
cc::PaintFlags background_flags;
- background_flags.setFlags(cc::PaintFlags::kAntiAlias_Flag);
+ background_flags.setAntiAlias(true);
background_flags.setColor(color_);
gfx::Insets insets =
GetMirroredBackgroundInsets(GetShelf()->GetAlignment());
@@ -138,7 +138,7 @@ class TrayBackground : public views::Background {
if (draws_active_ && tray_background_view_->is_active()) {
cc::PaintFlags highlight_flags;
- highlight_flags.setFlags(cc::PaintFlags::kAntiAlias_Flag);
+ highlight_flags.setAntiAlias(true);
highlight_flags.setColor(kShelfButtonActivatedHighlightColor);
canvas->DrawRoundRect(bounds, kTrayRoundedBorderRadius, highlight_flags);
}
« no previous file with comments | « ash/common/system/chromeos/network/network_icon.cc ('k') | ash/common/wm/overview/window_grid.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698