OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "ui/gfx/paint_vector_icon.h" | 5 #include "ui/gfx/paint_vector_icon.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 #include <tuple> | 8 #include <tuple> |
9 | 9 |
10 #include "base/i18n/rtl.h" | 10 #include "base/i18n/rtl.h" |
11 #include "base/lazy_instance.h" | 11 #include "base/lazy_instance.h" |
| 12 #include "base/macros.h" |
12 #include "base/strings/string_number_conversions.h" | 13 #include "base/strings/string_number_conversions.h" |
13 #include "base/strings/string_split.h" | 14 #include "base/strings/string_split.h" |
14 #include "third_party/skia/include/core/SkPaint.h" | 15 #include "third_party/skia/include/core/SkPaint.h" |
15 #include "third_party/skia/include/core/SkPath.h" | 16 #include "third_party/skia/include/core/SkPath.h" |
16 #include "third_party/skia/include/core/SkXfermode.h" | 17 #include "third_party/skia/include/core/SkXfermode.h" |
17 #include "ui/gfx/canvas.h" | 18 #include "ui/gfx/canvas.h" |
18 #include "ui/gfx/image/canvas_image_source.h" | 19 #include "ui/gfx/image/canvas_image_source.h" |
19 #include "ui/gfx/vector_icon_types.h" | 20 #include "ui/gfx/vector_icon_types.h" |
20 #include "ui/gfx/vector_icons.h" | 21 #include "ui/gfx/vector_icons.h" |
21 | 22 |
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
405 | 406 |
406 ImageSkia CreateVectorIconFromSource(const std::string& source, | 407 ImageSkia CreateVectorIconFromSource(const std::string& source, |
407 size_t dip_size, | 408 size_t dip_size, |
408 SkColor color) { | 409 SkColor color) { |
409 return ImageSkia( | 410 return ImageSkia( |
410 new VectorIconSource(source, dip_size, color), | 411 new VectorIconSource(source, dip_size, color), |
411 gfx::Size(static_cast<int>(dip_size), static_cast<int>(dip_size))); | 412 gfx::Size(static_cast<int>(dip_size), static_cast<int>(dip_size))); |
412 } | 413 } |
413 | 414 |
414 } // namespace gfx | 415 } // namespace gfx |
OLD | NEW |