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

Unified Diff: chrome/browser/ui/views/status_bubble_views.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 | « 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 db6e54c78195dda5189d068c85d3bbb96b0b2a9c..20683e917fd31e352800dad44c0fe6fc546518ef 100644
--- a/chrome/browser/ui/views/status_bubble_views.cc
+++ b/chrome/browser/ui/views/status_bubble_views.cc
@@ -15,6 +15,7 @@
#include "base/strings/utf_string_conversions.h"
#include "base/threading/thread_task_runner_handle.h"
#include "build/build_config.h"
+#include "cc/paint/paint_flags.h"
#include "chrome/browser/themes/theme_properties.h"
#include "components/url_formatter/elide_url.h"
#include "components/url_formatter/url_formatter.h"
@@ -456,8 +457,8 @@ void StatusBubbleViews::StatusView::OnPaint(gfx::Canvas* canvas) {
SkPath path;
path.addRoundRect(gfx::RectFToSkRect(bubble_rect), rad);
- SkPaint paint;
- paint.setStyle(SkPaint::kStroke_Style);
+ cc::PaintFlags paint;
+ paint.setStyle(cc::PaintFlags::kStroke_Style);
paint.setStrokeWidth(1);
paint.setAntiAlias(true);
@@ -467,7 +468,7 @@ void StatusBubbleViews::StatusView::OnPaint(gfx::Canvas* canvas) {
// 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(SkPaint::kFill_Style);
+ paint.setStyle(cc::PaintFlags::kFill_Style);
const SkColor bubble_color =
theme_provider_->GetColor(ThemeProperties::COLOR_TOOLBAR);
paint.setColor(bubble_color);
« 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