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

Unified Diff: chrome/browser/ui/views/status_bubble_views.cc

Issue 2697663002: Clean up naming of paint-related identifiers (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 | « chrome/browser/ui/views/profiles/profile_chooser_view.cc ('k') | chrome/browser/ui/views/tabs/tab.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/status_bubble_views.cc
diff --git a/chrome/browser/ui/views/status_bubble_views.cc b/chrome/browser/ui/views/status_bubble_views.cc
index 20683e917fd31e352800dad44c0fe6fc546518ef..fe7e3d461b7bd55a409162378357fa821b098d7e 100644
--- a/chrome/browser/ui/views/status_bubble_views.cc
+++ b/chrome/browser/ui/views/status_bubble_views.cc
@@ -20,7 +20,6 @@
#include "components/url_formatter/elide_url.h"
#include "components/url_formatter/url_formatter.h"
#include "services/service_manager/runner/common/client_util.h"
-#include "third_party/skia/include/core/SkPaint.h"
#include "third_party/skia/include/core/SkPath.h"
#include "third_party/skia/include/pathops/SkPathOps.h"
#include "ui/base/theme_provider.h"
@@ -457,25 +456,25 @@ void StatusBubbleViews::StatusView::OnPaint(gfx::Canvas* canvas) {
SkPath path;
path.addRoundRect(gfx::RectFToSkRect(bubble_rect), rad);
- cc::PaintFlags paint;
- paint.setStyle(cc::PaintFlags::kStroke_Style);
- paint.setStrokeWidth(1);
- paint.setAntiAlias(true);
+ cc::PaintFlags flags;
+ flags.setStyle(cc::PaintFlags::kStroke_Style);
+ flags.setStrokeWidth(1);
+ flags.setAntiAlias(true);
SkPath stroke_path;
- paint.getFillPath(path, &stroke_path);
+ flags.getFillPath(path, &stroke_path);
// Get the fill path by subtracting the shadow so they align neatly.
SkPath fill_path;
Op(path, stroke_path, kDifference_SkPathOp, &fill_path);
- paint.setStyle(cc::PaintFlags::kFill_Style);
+ flags.setStyle(cc::PaintFlags::kFill_Style);
const SkColor bubble_color =
theme_provider_->GetColor(ThemeProperties::COLOR_TOOLBAR);
- paint.setColor(bubble_color);
- canvas->sk_canvas()->drawPath(fill_path, paint);
+ flags.setColor(bubble_color);
+ canvas->sk_canvas()->drawPath(fill_path, flags);
- paint.setColor(kShadowColor);
- canvas->sk_canvas()->drawPath(stroke_path, paint);
+ flags.setColor(kShadowColor);
+ canvas->sk_canvas()->drawPath(stroke_path, flags);
canvas->Restore();
« no previous file with comments | « chrome/browser/ui/views/profiles/profile_chooser_view.cc ('k') | chrome/browser/ui/views/tabs/tab.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698