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

Unified Diff: ui/gfx/image/image.h

Issue 9455062: Add gfx::Image::Image(const SkBitmap&) constructor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 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/image/image.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/image/image.h
diff --git a/ui/gfx/image/image.h b/ui/gfx/image/image.h
index d5e630b5915bc9a28741da3c88001e513d5c0b86..544d18a0367d77fbcd35fbddc49391d917f89c58 100644
--- a/ui/gfx/image/image.h
+++ b/ui/gfx/image/image.h
@@ -65,6 +65,10 @@ class UI_EXPORT Image {
// ownership of the image.
explicit Image(const SkBitmap* bitmap);
+ // Creates a new image by copying the bitmap for use as the default
+ // representation.
+ explicit Image(const SkBitmap& bitmap);
+
// To create an Image that supports multiple resolutions pass a vector
// of bitmaps, one for each resolution.
explicit Image(const std::vector<const SkBitmap*>& bitmaps);
« no previous file with comments | « no previous file | ui/gfx/image/image.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698