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

Unified Diff: chrome/browser/ui/views/infobars/infobar_background.cc

Issue 2640983002: Rename paint data structures (Closed)
Patch Set: Clean up comments, fix mac build 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
Index: chrome/browser/ui/views/infobars/infobar_background.cc
diff --git a/chrome/browser/ui/views/infobars/infobar_background.cc b/chrome/browser/ui/views/infobars/infobar_background.cc
index 86969d3c236deaf411c0d7300bfd94c87a4d3df4..db6b89e6cc5a89ab05569afc29b4b0f38cf39eb8 100644
--- a/chrome/browser/ui/views/infobars/infobar_background.cc
+++ b/chrome/browser/ui/views/infobars/infobar_background.cc
@@ -4,6 +4,8 @@
#include "chrome/browser/ui/views/infobars/infobar_background.h"
+#include "cc/paint/paint_canvas.h"
danakj 2017/01/20 23:34:14 why paintcanvas? this uses gfx::canvas
enne (OOO) 2017/01/24 01:51:28 canvas->sk_canvas()->drawLine(0, y, w, y, stroke);
+#include "cc/paint/paint_flags.h"
#include "chrome/browser/ui/infobar_container_delegate.h"
#include "chrome/browser/ui/views/infobars/infobar_view.h"
#include "components/infobars/core/infobar.h"
@@ -63,13 +65,13 @@ void InfoBarBackground::Paint(gfx::Canvas* canvas, views::View* view) const {
}
}
fill_path.addRect(0, arrow_height, infobar_width, scale(infobar->height()));
- SkPaint fill;
- fill.setStyle(SkPaint::kFill_Style);
+ cc::PaintFlags fill;
+ fill.setStyle(cc::PaintFlags::kFill_Style);
fill.setColor(get_color());
canvas->DrawPath(fill_path, fill);
- SkPaint stroke;
- stroke.setStyle(SkPaint::kStroke_Style);
+ cc::PaintFlags stroke;
+ stroke.setStyle(cc::PaintFlags::kStroke_Style);
const int kSeparatorThicknessPx = 1;
stroke.setStrokeWidth(SkIntToScalar(kSeparatorThicknessPx));
stroke.setColor(separator_color);

Powered by Google App Engine
This is Rietveld 408576698