Index: ui/gfx/image/image_skia_util_ios.h |
diff --git a/ui/gfx/image/image_skia_util_ios.h b/ui/gfx/image/image_skia_util_ios.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..c3434ca9cf0f78a6ac430f42461a6ebd053e31de |
--- /dev/null |
+++ b/ui/gfx/image/image_skia_util_ios.h |
@@ -0,0 +1,27 @@ |
+// Copyright 2012 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef UI_GFX_IMAGE_IMAGE_SKIA_UTIL_IOS_H_ |
+#define UI_GFX_IMAGE_IMAGE_SKIA_UTIL_IOS_H_ |
+ |
+#include "ui/base/ui_export.h" |
+ |
+#ifdef __OBJC__ |
+@class UIImage; |
+#else |
+class UIImage; |
+#endif |
+ |
+namespace gfx { |
+class ImageSkia; |
+ |
+// Converts to ImageSkia from UIImage. |
+UI_EXPORT gfx::ImageSkia ImageSkiaFromUIImage(UIImage* image); |
+ |
+// Converts to UIImage from ImageSkia. |
Robert Sesek
2012/09/13 16:14:24
Who owns the result?
rohitrao (ping after 24h)
2012/09/13 17:57:57
Per convention, returns an autoreleased UIImage.
|
+UI_EXPORT UIImage* UIImageFromImageSkia(const gfx::ImageSkia& image_skia); |
+ |
+} // namespace gfx |
+ |
+#endif // UI_GFX_IMAGE_IMAGE_SKIA_UTIL_IOS_H_ |