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

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

Issue 10928093: Adds an iOS implementation of gfx::Image. (Closed) Base URL: http://git.chromium.org/chromium/src.git@skia
Patch Set: Moar GYP and TODOs. Created 8 years, 3 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 | « ui/gfx/image/image_unittest_util.cc ('k') | ui/gfx/image/image_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/image/image_util.h
diff --git a/ui/gfx/image/image_util.h b/ui/gfx/image/image_util.h
index 06643172c9cfc029121bff33426992c402de2cef..67670626dc38eadf2b5990802350165efef3d7c8 100644
--- a/ui/gfx/image/image_util.h
+++ b/ui/gfx/image/image_util.h
@@ -21,17 +21,17 @@ namespace gfx {
UI_EXPORT Image* ImageFromPNGEncodedData(const unsigned char* input,
size_t input_size);
+// Fills the |dst| vector with PNG-encoded bytes based on the given Image.
+// Returns true if the Image was encoded successfully.
+UI_EXPORT bool PNGEncodedDataFromImage(const Image& image,
+ std::vector<unsigned char>* dst);
+
// Creates an image from the given JPEG-encoded input. The caller owns the
// returned Image. If there was an error creating the image, returns an
// IsEmpty() Image.
UI_EXPORT Image ImageFromJPEGEncodedData(const unsigned char* input,
size_t input_size);
-// Fills the |dst| vector with PNG-encoded bytes based on the given Image.
-// Returns true if the Image was encoded successfully.
-UI_EXPORT bool PNGEncodedDataFromImage(const Image& image,
- std::vector<unsigned char>* dst);
-
// Fills the |dst| vector with JPEG-encoded bytes based on the given Image.
// |quality| determines the compression level, 0 == lowest, 100 == highest.
// Returns true if the Image was encoded successfully.
« no previous file with comments | « ui/gfx/image/image_unittest_util.cc ('k') | ui/gfx/image/image_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698