diff options
author | scroggo@google.com <scroggo@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-05-15 14:53:49 +0000 |
---|---|---|
committer | scroggo@google.com <scroggo@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-05-15 14:53:49 +0000 |
commit | 8bae0cdb1afb6adfdeebabddba27ebb7dbf236c8 (patch) | |
tree | 0069b902b2ddaab93326a2c25c3083243e07615d /images | |
parent | ff0e42c35f74c0adce7a7edb044b3a352838aa7c (diff) | |
download | include-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.h | 4 |
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; |