summaryrefslogtreecommitdiff
path: root/images
diff options
context:
space:
mode:
authorscroggo@google.com <scroggo@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-05-15 14:53:49 +0000
committerscroggo@google.com <scroggo@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-05-15 14:53:49 +0000
commit8bae0cdb1afb6adfdeebabddba27ebb7dbf236c8 (patch)
tree0069b902b2ddaab93326a2c25c3083243e07615d /images
parentff0e42c35f74c0adce7a7edb044b3a352838aa7c (diff)
downloadinclude-8bae0cdb1afb6adfdeebabddba27ebb7dbf236c8.tar.gz
Provide a function to print the name of a Format.
Also use SkToU32 instead of a flat cast. R=djsollen@google.com Review URL: https://codereview.chromium.org/14565005 git-svn-id: http://skia.googlecode.com/svn/trunk/include@9139 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'images')
-rw-r--r--images/SkImageDecoder.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/images/SkImageDecoder.h b/images/SkImageDecoder.h
index f6f64e1..ba22652 100644
--- a/images/SkImageDecoder.h
+++ b/images/SkImageDecoder.h
@@ -49,6 +49,10 @@ public:
*/
static Format GetStreamFormat(SkStream*);
+ /** Return a readable string of the Format provided.
+ */
+ static const char* GetFormatName(Format);
+
/** Return a readable string of the value returned by getFormat().
*/
const char* getFormatName() const;