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

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

Issue 2679423002: ash: Clean up naming of paint-related identifiers (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 | « ash/common/shelf/app_list_button.cc ('k') | 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/overflow_button.cc
diff --git a/ash/common/shelf/overflow_button.cc b/ash/common/shelf/overflow_button.cc
index 73dddf57dfb23fecde483c2c0d4b2fe5d068a478..1b656ac0eacb348fc5775aaadf4a898662d4a2c9 100644
--- a/ash/common/shelf/overflow_button.cc
+++ b/ash/common/shelf/overflow_button.cc
@@ -119,11 +119,10 @@ std::unique_ptr<views::InkDropMask> OverflowButton::CreateInkDropMask() const {
void OverflowButton::PaintBackground(gfx::Canvas* canvas,
const gfx::Rect& bounds) {
if (MaterialDesignController::IsShelfMaterial()) {
- cc::PaintFlags background_paint;
- background_paint.setFlags(cc::PaintFlags::kAntiAlias_Flag);
- background_paint.setColor(SkColorSetA(kShelfBaseColor, background_alpha_));
- canvas->DrawRoundRect(bounds, kOverflowButtonCornerRadius,
- background_paint);
+ cc::PaintFlags flags;
+ flags.setFlags(cc::PaintFlags::kAntiAlias_Flag);
+ flags.setColor(SkColorSetA(kShelfBaseColor, background_alpha_));
+ canvas->DrawRoundRect(bounds, kOverflowButtonCornerRadius, flags);
} else {
ResourceBundle& rb = ResourceBundle::GetSharedInstance();
const gfx::ImageSkia* background =
« no previous file with comments | « ash/common/shelf/app_list_button.cc ('k') | ash/common/shelf/shelf_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698