aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/encode
diff options
context:
space:
mode:
authorGravatar Yuqian Li <liyuqian@google.com>2017-06-09 11:35:58 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-06-09 17:24:03 +0000
commitd0dbee6559341247fadc8c828cde82bfa737cc04 (patch)
tree70166b4dc1467722729ec57982e0b5777fa65f54 /include/encode
parent9a87cda3d308eb41703828e17ed1cf2cfd8e0901 (diff)
Add comments support for PNG encoder
Bug: skia:6689 Change-Id: I6ccac8890f44724ccd6e20c8f4ea80bc99f9fa58 Reviewed-on: https://skia-review.googlesource.com/19080 Reviewed-by: Mike Reed <reed@google.com> Reviewed-by: Matt Sarett <msarett@google.com> Commit-Queue: Yuqian Li <liyuqian@google.com>
Diffstat (limited to 'include/encode')
-rw-r--r--include/encode/SkPngEncoder.h8
1 files changed, 8 insertions, 0 deletions
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<SkDataTable> fComments;
};
/**