Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(658)

Unified Diff: ui/gfx/paint_vector_icon.h

Issue 1406613002: For some vector icons, get the size from the vector definition. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/gfx/paint_vector_icon.h
diff --git a/ui/gfx/paint_vector_icon.h b/ui/gfx/paint_vector_icon.h
index a9adb797e6ab39da0b629942fba3b3ec07a74f2b..5dbf66cfff5c234812737b24ef27c300c01b5aae 100644
--- a/ui/gfx/paint_vector_icon.h
+++ b/ui/gfx/paint_vector_icon.h
@@ -24,7 +24,12 @@ GFX_EXPORT void PaintVectorIcon(Canvas* canvas,
size_t dip_size,
SkColor color);
-// Creates an ImageSkia which will render the icon on demand.
+// Creates an ImageSkia which will render the icon on demand. The size will come
+// from the .icon file (the 1x version, if multiple versions exist).
+GFX_EXPORT ImageSkia CreateVectorIcon(VectorIconId id,
+ SkColor color);
+
+// As above, but creates the image at the given size.
GFX_EXPORT ImageSkia CreateVectorIcon(VectorIconId id,
size_t dip_size,
SkColor color);

Powered by Google App Engine
This is Rietveld 408576698