From d0dbee6559341247fadc8c828cde82bfa737cc04 Mon Sep 17 00:00:00 2001 From: Yuqian Li Date: Fri, 9 Jun 2017 11:35:58 -0400 Subject: Add comments support for PNG encoder Bug: skia:6689 Change-Id: I6ccac8890f44724ccd6e20c8f4ea80bc99f9fa58 Reviewed-on: https://skia-review.googlesource.com/19080 Reviewed-by: Mike Reed Reviewed-by: Matt Sarett Commit-Queue: Yuqian Li --- include/encode/SkPngEncoder.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/encode') diff --git a/include/encode/SkPngEncoder.h b/include/encode/SkPngEncoder.h index 6de800f367..39e407e075 100644 --- a/include/encode/SkPngEncoder.h +++ b/include/encode/SkPngEncoder.h @@ -9,6 +9,7 @@ #define SkPngEncoder_DEFINED #include "SkEncoder.h" +#include "SkDataTable.h" class SkPngEncoderMgr; class SkWStream; @@ -58,6 +59,13 @@ public: * function and unpremultiply the input as is. */ SkTransferFunctionBehavior fUnpremulBehavior = SkTransferFunctionBehavior::kRespect; + + /** + * Represents comments in the tEXt ancillary chunk of the png. + * The 2i-th entry is the keyword for the i-th comment, + * and the (2i + 1)-th entry is the text for the i-th comment. + */ + sk_sp fComments; }; /** -- cgit v1.2.3