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

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

Issue 2523673004: [NOT FOR COMMIT] Fully replace SkCanvas uses.
Patch Set: Support Android build. Created 4 years 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..5f1b857cbefe581abc4ccf034cc26779cd16e388 100644
--- a/chrome/browser/ui/views/infobars/infobar_background.cc
+++ b/chrome/browser/ui/views/infobars/infobar_background.cc
@@ -7,6 +7,8 @@
#include "chrome/browser/ui/infobar_container_delegate.h"
#include "chrome/browser/ui/views/infobars/infobar_view.h"
#include "components/infobars/core/infobar.h"
+#include "skia/ext/cdl_canvas.h"
+#include "skia/ext/cdl_paint.h"
#include "ui/base/material_design/material_design_controller.h"
#include "ui/gfx/canvas.h"
#include "ui/gfx/scoped_canvas.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);
+ CdlPaint fill;
+ fill.setStyle(CdlPaint::kFill_Style);
fill.setColor(get_color());
canvas->DrawPath(fill_path, fill);
- SkPaint stroke;
- stroke.setStyle(SkPaint::kStroke_Style);
+ CdlPaint stroke;
+ stroke.setStyle(CdlPaint::kStroke_Style);
const int kSeparatorThicknessPx = 1;
stroke.setStrokeWidth(SkIntToScalar(kSeparatorThicknessPx));
stroke.setColor(separator_color);
« no previous file with comments | « chrome/browser/ui/views/frame/browser_view.cc ('k') | chrome/browser/ui/views/infobars/infobar_container_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698