| Index: ui/gfx/paint_vector_icon.cc
|
| diff --git a/ui/gfx/paint_vector_icon.cc b/ui/gfx/paint_vector_icon.cc
|
| index 52c1e9a9f50936ef6a500080a97b6d70a4138df2..c6a2620d71cffbd05579324234772f50aeae9d68 100644
|
| --- a/ui/gfx/paint_vector_icon.cc
|
| +++ b/ui/gfx/paint_vector_icon.cc
|
| @@ -102,7 +102,8 @@ void PaintPath(Canvas* canvas,
|
|
|
| SkPath& path = paths.back();
|
| SkPaint& paint = paints.back();
|
| - switch (path_elements[i].type) {
|
| + CommandType command_type = path_elements[i].type;
|
| + switch (command_type) {
|
| // Handled above.
|
| case NEW_PATH:
|
| continue;
|
| @@ -158,7 +159,7 @@ void PaintPath(Canvas* canvas,
|
| SkScalar y = path_elements[++i].arg;
|
|
|
| auto path_fn =
|
| - path_elements[i].type == ARC_TO
|
| + command_type == ARC_TO
|
| ? static_cast<void (SkPath::*)(
|
| SkScalar, SkScalar, SkScalar, SkPath::ArcSize,
|
| SkPath::Direction, SkScalar, SkScalar)>(&SkPath::arcTo)
|
|
|