| Index: ui/gfx/paint_vector_icon.cc
|
| diff --git a/ui/gfx/paint_vector_icon.cc b/ui/gfx/paint_vector_icon.cc
|
| index 087d0ee31fe093820c8f115d438fd825708316eb..3bac6acd472f9b92de642c30a94e11d44d6dc325 100644
|
| --- a/ui/gfx/paint_vector_icon.cc
|
| +++ b/ui/gfx/paint_vector_icon.cc
|
| @@ -396,6 +396,13 @@ void PaintVectorIcon(Canvas* canvas,
|
| PaintPath(canvas, path, dip_size, color);
|
| }
|
|
|
| +ImageSkia CreateVectorIcon(VectorIconId id, SkColor color) {
|
| + const PathElement* one_x_path = GetPathForVectorIconAt1xScale(id);
|
| + size_t size = one_x_path[0].type == CANVAS_DIMENSIONS ? one_x_path[1].arg
|
| + : kReferenceSizeDip;
|
| + return CreateVectorIcon(id, size, color);
|
| +}
|
| +
|
| ImageSkia CreateVectorIcon(VectorIconId id, size_t dip_size, SkColor color) {
|
| return CreateVectorIconWithBadge(id, dip_size, color,
|
| VectorIconId::VECTOR_ICON_NONE);
|
|
|