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

Unified Diff: ash/common/system/tray/tray_background_view.cc

Issue 2640983002: Rename paint data structures (Closed)
Patch Set: DrawingDisplayItem Created 3 years, 11 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/toast/toast_overlay.cc ('k') | ash/common/system/tray/tray_details_view.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 d7634c2f2506b9849d238679ad950899d86abac2..e5aef5a48faa937c5f314537e99c548adb4dc0aa 100644
--- a/ash/common/system/tray/tray_background_view.cc
+++ b/ash/common/system/tray/tray_background_view.cc
@@ -127,8 +127,8 @@ class TrayBackground : public views::Background {
WmShelf* GetShelf() const { return tray_background_view_->shelf(); }
void PaintMaterial(gfx::Canvas* canvas, views::View* view) const {
- SkPaint background_paint;
- background_paint.setFlags(SkPaint::kAntiAlias_Flag);
+ cc::PaintFlags background_paint;
+ background_paint.setFlags(cc::PaintFlags::kAntiAlias_Flag);
background_paint.setColor(SkColorSetA(kShelfBaseColor, alpha_));
gfx::Insets insets =
GetMirroredBackgroundInsets(GetShelf()->GetAlignment());
@@ -137,8 +137,8 @@ class TrayBackground : public views::Background {
canvas->DrawRoundRect(bounds, kTrayRoundedBorderRadius, background_paint);
if (draws_active_ && tray_background_view_->is_active()) {
- SkPaint highlight_paint;
- highlight_paint.setFlags(SkPaint::kAntiAlias_Flag);
+ cc::PaintFlags highlight_paint;
+ highlight_paint.setFlags(cc::PaintFlags::kAntiAlias_Flag);
highlight_paint.setColor(kShelfButtonActivatedHighlightColor);
canvas->DrawRoundRect(bounds, kTrayRoundedBorderRadius, highlight_paint);
}
@@ -600,7 +600,7 @@ void TrayBackgroundView::OnPaint(gfx::Canvas* canvas) {
const int y = (GetShelfConstant(SHELF_SIZE) - kTrayItemSize) / 2;
gfx::ScopedCanvas scoped_canvas(canvas);
const float scale = canvas->UndoDeviceScaleFactor();
- SkPaint paint;
+ cc::PaintFlags paint;
paint.setColor(kSeparatorColor);
paint.setAntiAlias(true);
« no previous file with comments | « ash/common/system/toast/toast_overlay.cc ('k') | ash/common/system/tray/tray_details_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698