diff options
author | estade <estade@chromium.org> | 2015-07-08 19:55:58 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-07-09 02:56:44 +0000 |
commit | 5490bafef2f11416bed41ad8017a6db500c67345 (patch) | |
tree | 2675646c362589c0169ccb7d3daa62b7ea2dab4a /ui/gfx/paint_vector_icon.h | |
parent | a12d9841a0941862159e3fa159f213653cf749e3 (diff) | |
download | chromium_src-5490bafef2f11416bed41ad8017a6db500c67345.zip chromium_src-5490bafef2f11416bed41ad8017a6db500c67345.tar.gz chromium_src-5490bafef2f11416bed41ad8017a6db500c67345.tar.bz2 |
Split vector icon commands into separate files aggregated at build time.
depends on https://codereview.chromium.org/1214693005/
BUG=505953
Review URL: https://codereview.chromium.org/1219293004
Cr-Commit-Position: refs/heads/master@{#337973}
Diffstat (limited to 'ui/gfx/paint_vector_icon.h')
-rw-r--r-- | ui/gfx/paint_vector_icon.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/ui/gfx/paint_vector_icon.h b/ui/gfx/paint_vector_icon.h new file mode 100644 index 0000000..de2fb22 --- /dev/null +++ b/ui/gfx/paint_vector_icon.h @@ -0,0 +1,27 @@ +// Copyright 2015 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef UI_GFX_PAINT_VECTOR_ICON_H_ +#define UI_GFX_PAINT_VECTOR_ICON_H_ + +#include "base/basictypes.h" +#include "third_party/skia/include/core/SkColor.h" +#include "ui/gfx/gfx_export.h" + +namespace gfx { + +class Canvas; +enum class VectorIconId; + +// Draws a vector icon identified by |id| onto |canvas| at (0, 0). |dip_size| +// is the length of a single edge of the square icon, in device independent +// pixels. |color| is used as the fill. +GFX_EXPORT void PaintVectorIcon(Canvas* canvas, + VectorIconId id, + size_t dip_size, + SkColor color); + +} // namespace gfx + +#endif // UI_GFX_PAINT_VECTOR_ICON_H_ |