aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/codec
diff options
context:
space:
mode:
authorGravatar Leon Scroggins III <scroggo@google.com>2018-01-16 11:56:54 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-01-16 17:17:58 +0000
commitfe3da02e76a0288d9245e1c1253cdbac07729c4b (patch)
treeed7ffe463770dab5806de759d75b1830396b0cc5 /include/codec
parent5fb009df3c87167762b33483ee82b5fe632837a9 (diff)
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 <scroggo@google.com> Reviewed-by: Derek Sollenberger <djsollen@google.com>
Diffstat (limited to 'include/codec')
-rw-r--r--include/codec/SkCodec.h5
1 files changed, 5 insertions, 0 deletions
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
@@ -108,6 +108,11 @@ public:
};
/**
+ * 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.
*