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

Unified Diff: ui/gfx/paint_vector_icon.h

Issue 1268633002: Make it easier to test changes to a .icon file. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix build? Created 5 years, 4 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
« no previous file with comments | « no previous file | ui/gfx/paint_vector_icon.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/paint_vector_icon.h
diff --git a/ui/gfx/paint_vector_icon.h b/ui/gfx/paint_vector_icon.h
index 563d7cb2d3e2699f9224ccf0bdf12db0dcfa1dbf..51b244029824ae4a579d4553a48fd1ab06ab476e 100644
--- a/ui/gfx/paint_vector_icon.h
+++ b/ui/gfx/paint_vector_icon.h
@@ -28,6 +28,15 @@ GFX_EXPORT ImageSkia CreateVectorIcon(VectorIconId id,
size_t dip_size,
SkColor color);
+#if defined(GFX_VECTOR_ICONS_UNSAFE) || defined(GFX_IMPLEMENTATION)
+// Takes a string of the format expected of .icon files and renders onto
+// a canvas. This should only be used as a debugging aid and should never be
+// used in production code.
+GFX_EXPORT ImageSkia CreateVectorIconFromSource(const std::string& source,
+ size_t dip_size,
+ SkColor color);
+#endif
+
} // namespace gfx
#endif // UI_GFX_PAINT_VECTOR_ICON_H_
« no previous file with comments | « no previous file | ui/gfx/paint_vector_icon.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698