| Index: ui/gfx/paint_vector_icon.cc
|
| diff --git a/ui/gfx/paint_vector_icon.cc b/ui/gfx/paint_vector_icon.cc
|
| index 7168a756d63c9a298ecc9f34abf91d5506da00b9..d529ed36f1c08f0621bc2127b0342e7d518383be 100644
|
| --- a/ui/gfx/paint_vector_icon.cc
|
| +++ b/ui/gfx/paint_vector_icon.cc
|
| @@ -13,6 +13,8 @@
|
| #include "base/memory/ptr_util.h"
|
| #include "base/strings/string_number_conversions.h"
|
| #include "base/strings/string_split.h"
|
| +#include "skia/ext/cdl_canvas.h"
|
| +#include "skia/ext/cdl_paint.h"
|
| #include "third_party/skia/include/core/SkPaint.h"
|
| #include "third_party/skia/include/core/SkPath.h"
|
| #include "ui/gfx/canvas.h"
|
| @@ -89,7 +91,7 @@ void PaintPath(Canvas* canvas,
|
|
|
| int canvas_size = kReferenceSizeDip;
|
| std::vector<SkPath> paths;
|
| - std::vector<SkPaint> paints;
|
| + std::vector<CdlPaint> paints;
|
| SkRect clip_rect = SkRect::MakeEmpty();
|
| bool flips_in_rtl = false;
|
| CommandType previous_command_type = NEW_PATH;
|
| @@ -99,14 +101,14 @@ void PaintPath(Canvas* canvas,
|
| paths.push_back(SkPath());
|
| paths.back().setFillType(SkPath::kEvenOdd_FillType);
|
|
|
| - paints.push_back(SkPaint());
|
| + paints.push_back(CdlPaint());
|
| paints.back().setColor(color);
|
| paints.back().setAntiAlias(true);
|
| - paints.back().setStrokeCap(SkPaint::kRound_Cap);
|
| + paints.back().setStrokeCap(CdlPaint::kRound_Cap);
|
| }
|
|
|
| SkPath& path = paths.back();
|
| - SkPaint& paint = paints.back();
|
| + CdlPaint& paint = paints.back();
|
| CommandType command_type = path_elements[i].type;
|
| switch (command_type) {
|
| // Handled above.
|
| @@ -128,14 +130,14 @@ void PaintPath(Canvas* canvas,
|
| };
|
|
|
| case STROKE: {
|
| - paint.setStyle(SkPaint::kStroke_Style);
|
| + paint.setStyle(CdlPaint::kStroke_Style);
|
| SkScalar width = path_elements[++i].arg;
|
| paint.setStrokeWidth(width);
|
| break;
|
| }
|
|
|
| case CAP_SQUARE: {
|
| - paint.setStrokeCap(SkPaint::kSquare_Cap);
|
| + paint.setStrokeCap(CdlPaint::kSquare_Cap);
|
| break;
|
| }
|
|
|
|
|