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

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: guard Created 5 years, 5 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') | ui/gfx/paint_vector_icon.cc » ('J')
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..5a9d68b65595fbf2640619c86bf1a2f9a0d310aa 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)
+// Takes a string of the format expected of .icon files and renders into 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') | ui/gfx/paint_vector_icon.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698