aboutsummaryrefslogtreecommitdiff
path: root/src/pdf/SkPDFTypes.h
diff options
context:
space:
mode:
authorBen Wagner <bungeman@google.com>2023-12-01 16:40:20 -0500
committerSkCQ <skcq-be@skia-corp.google.com.iam.gserviceaccount.com>2023-12-12 03:26:08 +0000
commiteff8181a629035377ad4e74c24aa250d4c095a90 (patch)
treef1d8b841c1dc3713de222a259a59ca22bf6a32f3 /src/pdf/SkPDFTypes.h
parent6e442416432609be9d1ba8a310d90c16ef9fed7f (diff)
downloadskia-eff8181a629035377ad4e74c24aa250d4c095a90.tar.gz
[pdf] Emit color space of images
This also makes Skia PDF directly depend on the Skia JPEG encoders and decoders instead of making them build time optional. All known users of PDF already depend on these so it should not make a difference in practice. If there is a need to allow other (or no) encoders and decoders that could be considered as a follow up. Bug: chromium:999986,chromium:1465627 Change-Id: I4992b0d9267a30154cd176528fcb830a39a12494 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/784553 Reviewed-by: Brian Osman <brianosman@google.com> Commit-Queue: Ben Wagner <bungeman@google.com>
Diffstat (limited to 'src/pdf/SkPDFTypes.h')
-rw-r--r--src/pdf/SkPDFTypes.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pdf/SkPDFTypes.h b/src/pdf/SkPDFTypes.h
index 370c94878f..579434ba8e 100644
--- a/src/pdf/SkPDFTypes.h
+++ b/src/pdf/SkPDFTypes.h
@@ -186,6 +186,7 @@ public:
void insertTextString(const char key[], const char value[]);
void insertByteString(const char key[], SkString value);
void insertTextString(const char key[], SkString value);
+ void insertUnion(const char key[], SkPDFUnion&&);
private:
std::vector<std::pair<SkPDFUnion, SkPDFUnion>> fRecords;