From fe3da02e76a0288d9245e1c1253cdbac07729c4b Mon Sep 17 00:00:00 2001 From: Leon Scroggins III Date: Tue, 16 Jan 2018 11:56:54 -0500 Subject: Add a method to convert SkCodec::Result to a string Bug: b/63909536 Change-Id: Ic91e3401359f80eadd9d1cd79aa8ef642c60b0fc Reviewed-on: https://skia-review.googlesource.com/94781 Commit-Queue: Leon Scroggins Reviewed-by: Derek Sollenberger --- include/codec/SkCodec.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/codec') diff --git a/include/codec/SkCodec.h b/include/codec/SkCodec.h index 43f0176081..9c215c6dd4 100644 --- a/include/codec/SkCodec.h +++ b/include/codec/SkCodec.h @@ -107,6 +107,11 @@ public: kUnimplemented, }; + /** + * Readable string representing the error code. + */ + static const char* ResultToString(Result); + /** * If this stream represents an encoded image that we know how to decode, * return an SkCodec that can decode it. Otherwise return NULL. -- cgit v1.2.3