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

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

Issue 2504683002: Adds a new constructor for gfx::Image on iOS. (Closed)
Patch Set: Created 4 years, 1 month 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 | « ui/base/resource/resource_bundle_ios.mm ('k') | 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 bf0d9b455fcd6d00c623b41b5d9875dee867ef5d..18440165941b6c758b853165d0fc3ae579b36abe 100644
--- a/ui/gfx/image/image.h
+++ b/ui/gfx/image/image.h
@@ -72,6 +72,10 @@ class GFX_EXPORT Image {
#if defined(OS_IOS)
// Does not retain |image|; expects to take ownership.
explicit Image(UIImage* image);
+
+ // Retains argument if |retain_argument| is true.
+ explicit Image(UIImage* image, bool retain_argument);
sdefresne 2016/11/22 14:23:16 "explicit" is only for constructor that can be inv
stkhapugin 2016/12/06 10:41:57 Done
+
#elif defined(OS_MACOSX)
// Does not retain |image|; expects to take ownership.
// A single NSImage object can contain multiple bitmaps so there's no reason
« no previous file with comments | « ui/base/resource/resource_bundle_ios.mm ('k') | ui/gfx/image/image.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698