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

Unified Diff: chrome/browser/ui/views/location_bar/background_with_1_px_border.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/location_bar/background_with_1_px_border.cc
diff --git a/chrome/browser/ui/views/location_bar/background_with_1_px_border.cc b/chrome/browser/ui/views/location_bar/background_with_1_px_border.cc
index 82f522647e63a1d1f66e73e59c2b1cdf4f87a7df..7b4f8c95a1656c3cf3a74f2521a1c12d37a04764 100644
--- a/chrome/browser/ui/views/location_bar/background_with_1_px_border.cc
+++ b/chrome/browser/ui/views/location_bar/background_with_1_px_border.cc
@@ -4,7 +4,7 @@
#include "chrome/browser/ui/views/location_bar/background_with_1_px_border.h"
-#include "third_party/skia/include/core/SkPaint.h"
+#include "cc/paint/paint_flags.h"
#include "third_party/skia/include/core/SkPath.h"
#include "third_party/skia/include/pathops/SkPathOps.h"
#include "ui/gfx/canvas.h"
@@ -40,17 +40,17 @@ void BackgroundWith1PxBorder::Paint(gfx::Canvas* canvas,
path.addRoundRect(gfx::RectFToSkRect(border_rect_f), scaled_corner_radius,
scaled_corner_radius);
- SkPaint paint;
- paint.setStyle(SkPaint::kStroke_Style);
+ cc::PaintFlags paint;
+ paint.setStyle(cc::PaintFlags::kStroke_Style);
paint.setStrokeWidth(1);
paint.setAntiAlias(true);
SkPath stroke_path;
- paint.getFillPath(path, &stroke_path);
+ cc::ToSkPaint(paint).getFillPath(path, &stroke_path);
SkPath fill_path;
Op(path, stroke_path, kDifference_SkPathOp, &fill_path);
- paint.setStyle(SkPaint::kFill_Style);
+ paint.setStyle(cc::PaintFlags::kFill_Style);
paint.setColor(get_color());
canvas->sk_canvas()->drawPath(fill_path, paint);

Powered by Google App Engine
This is Rietveld 408576698