| 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 d489a3b20066b066e63f66ce8334654067216182..7ecba8343136542fa244b7960c58d633955210e9 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
|
| @@ -5,6 +5,7 @@
|
| #include "chrome/browser/ui/views/location_bar/background_with_1_px_border.h"
|
|
|
| #include "chrome/browser/ui/layout_constants.h"
|
| +#include "skia/ext/cdl_paint.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"
|
| @@ -42,17 +43,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);
|
| + CdlPaint paint;
|
| + paint.setStyle(CdlPaint::kStroke_Style);
|
| paint.setStrokeWidth(1);
|
| paint.setAntiAlias(true);
|
|
|
| SkPath stroke_path;
|
| - paint.getFillPath(path, &stroke_path);
|
| + ToSkPaint(paint).getFillPath(path, &stroke_path);
|
|
|
| SkPath fill_path;
|
| Op(path, stroke_path, kDifference_SkPathOp, &fill_path);
|
| - paint.setStyle(SkPaint::kFill_Style);
|
| + paint.setStyle(CdlPaint::kFill_Style);
|
| paint.setColor(get_color());
|
| canvas->sk_canvas()->drawPath(fill_path, paint);
|
|
|
|
|