diff --git a/include/core/SkImageEncoder.h b/include/core/SkImageEncoder.h index 15796220a5..fd7bc80369 100644 --- a/include/core/SkImageEncoder.h +++ b/include/core/SkImageEncoder.h @@ -8,6 +8,9 @@ #ifndef SkImageEncoder_DEFINED #define SkImageEncoder_DEFINED +// TODO: update clients so we can remove this include, they should IWYU +#include "include/core/SkBitmap.h" + #include "include/core/SkData.h" #include "include/core/SkEncodedImageFormat.h" #include "include/core/SkPixmap.h" diff --git a/tests/MultiPictureDocumentTest.cpp b/tests/MultiPictureDocumentTest.cpp index f8570dbeed..8c4a080e9c 100644 --- a/tests/MultiPictureDocumentTest.cpp +++ b/tests/MultiPictureDocumentTest.cpp @@ -4,22 +4,19 @@ * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. * - * This test confirms that a MultiPictureDocument can be serialized and deserialized without error. + * This test confirms that a MultiPictureDocument can be serialized and deserailzied without error. * And that the pictures within it are re-created accurately */ #include "include/core/SkCanvas.h" -#include "include/core/SkColor.h" +#include "include/core/SkColorPriv.h" +#include "include/core/SkColorSpace.h" #include "include/core/SkDocument.h" #include "include/core/SkFont.h" #include "include/core/SkImage.h" -#include "include/core/SkImageInfo.h" #include "include/core/SkPicture.h" #include "include/core/SkPictureRecorder.h" #include "include/core/SkRRect.h" -#include "include/core/SkRect.h" -#include "include/core/SkSerialProcs.h" -#include "include/core/SkStream.h" #include "include/core/SkString.h" #include "include/core/SkSurface.h" #include "include/core/SkTextBlob.h" @@ -174,9 +171,6 @@ DEF_TEST(SkMultiPictureDocument_Serialize_and_deserialize, reporter) { #if SK_SUPPORT_GPU && defined(SK_BUILD_FOR_ANDROID) && __ANDROID_API__ >= 26 -#include "include/core/SkBitmap.h" -#include "include/core/SkColorSpace.h" -#include "include/core/SkColorType.h" #include "include/gpu/GrDirectContext.h" #include "src/gpu/GrAHardwareBufferUtils.h" #include "src/gpu/GrDirectContextPriv.h"