From 1d719312b4aa8226823e3ed347dbcd14a9a657f2 Mon Sep 17 00:00:00 2001 From: Kevin Lubick Date: Tue, 20 Jun 2023 16:56:44 -0400 Subject: [PATCH] Add decoder #includes to implementation files Without these, the various Sk*Decoder::Decode functions were not properly being marked with SK_API and were not visible to Chromium. Change-Id: I29b5bb630e54a26205a8f562d61929d61bc4aaec Bug: skia:13983 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/714237 Commit-Queue: Kevin Lubick Auto-Submit: Kevin Lubick Reviewed-by: Florin Malita --- include/codec/SkAvifDecoder.h | 1 + include/codec/SkBmpDecoder.h | 1 + include/codec/SkCodec.h | 4 ++-- include/codec/SkGifDecoder.h | 1 + include/codec/SkIcoDecoder.h | 1 + include/codec/SkJpegDecoder.h | 1 + include/codec/SkJpegxlDecoder.h | 1 + include/codec/SkPngDecoder.h | 1 + include/codec/SkRawDecoder.h | 1 + include/codec/SkWbmpDecoder.h | 1 + include/codec/SkWebpDecoder.h | 1 + src/codec/SkAvifCodec.cpp | 1 + src/codec/SkBmpCodec.cpp | 1 + src/codec/SkIcoCodec.cpp | 1 + src/codec/SkJpegCodec.cpp | 1 + src/codec/SkJpegxlCodec.cpp | 3 ++- src/codec/SkPngCodec.cpp | 1 + src/codec/SkRawCodec.cpp | 1 + src/codec/SkWbmpCodec.cpp | 1 + src/codec/SkWebpCodec.cpp | 1 + src/codec/SkWuffsCodec.cpp | 1 + 21 files changed, 23 insertions(+), 3 deletions(-) diff --git a/include/codec/SkAvifDecoder.h b/include/codec/SkAvifDecoder.h index 4bd7bb7a81ce..a6d5c61aba16 100644 --- a/include/codec/SkAvifDecoder.h +++ b/include/codec/SkAvifDecoder.h @@ -9,6 +9,7 @@ #include "include/codec/SkCodec.h" #include "include/core/SkRefCnt.h" +#include "include/private/base/SkAPI.h" class SkData; class SkStream; diff --git a/include/codec/SkBmpDecoder.h b/include/codec/SkBmpDecoder.h index 2463ddb9efab..752555242e0f 100644 --- a/include/codec/SkBmpDecoder.h +++ b/include/codec/SkBmpDecoder.h @@ -9,6 +9,7 @@ #include "include/codec/SkCodec.h" #include "include/core/SkRefCnt.h" +#include "include/private/base/SkAPI.h" class SkData; class SkStream; diff --git a/include/codec/SkCodec.h b/include/codec/SkCodec.h index f5c54ad1e186..2db242b2ad90 100644 --- a/include/codec/SkCodec.h +++ b/include/codec/SkCodec.h @@ -1021,7 +1021,7 @@ using MakeFromStreamCallback = std::unique_ptr (*)(std::unique_ptr