diff --git a/lib/ui/painting/image_descriptor.h b/lib/ui/painting/image_descriptor.h index c712f247df7bc..dc35d73d8d838 100644 --- a/lib/ui/painting/image_descriptor.h +++ b/lib/ui/painting/image_descriptor.h @@ -13,10 +13,11 @@ #include "flutter/lib/ui/dart_wrapper.h" #include "flutter/lib/ui/painting/image_generator_registry.h" #include "flutter/lib/ui/painting/immutable_buffer.h" -#include "third_party/skia/include/codec/SkCodec.h" -#include "third_party/skia/include/core/SkImageGenerator.h" +#include "third_party/skia/include/core/SkData.h" +#include "third_party/skia/include/core/SkImage.h" #include "third_party/skia/include/core/SkImageInfo.h" -#include "third_party/skia/src/codec/SkCodecImageGenerator.h" +#include "third_party/skia/include/core/SkPixmap.h" +#include "third_party/skia/include/core/SkSize.h" #include "third_party/tonic/dart_library_natives.h" namespace flutter { @@ -38,7 +39,7 @@ class ImageDescriptor : public RefCountedDartWrappable { kBGRA8888, }; - /// @brief Asynchronously initlializes an ImageDescriptor for an encoded + /// @brief Asynchronously initializes an ImageDescriptor for an encoded /// image, as long as the format is recognized by an encoder installed /// in the `ImageGeneratorRegistry`. Calling this method will create /// an `ImageGenerator` and read EXIF corrected dimensions from the diff --git a/lib/ui/painting/image_generator.cc b/lib/ui/painting/image_generator.cc index d8dbe8371b4e2..e5648fc24a97b 100644 --- a/lib/ui/painting/image_generator.cc +++ b/lib/ui/painting/image_generator.cc @@ -7,6 +7,7 @@ #include #include "flutter/fml/logging.h" +#include "third_party/skia/include/core/SkBitmap.h" namespace flutter { diff --git a/lib/ui/painting/image_generator.h b/lib/ui/painting/image_generator.h index 13b93fc94c3dc..4792f3b374b92 100644 --- a/lib/ui/painting/image_generator.h +++ b/lib/ui/painting/image_generator.h @@ -7,9 +7,13 @@ #include #include "flutter/fml/macros.h" +#include "third_party/skia/include/codec/SkCodec.h" #include "third_party/skia/include/codec/SkCodecAnimation.h" +#include "third_party/skia/include/core/SkData.h" +#include "third_party/skia/include/core/SkImage.h" #include "third_party/skia/include/core/SkImageInfo.h" -#include "third_party/skia/src/codec/SkCodecImageGenerator.h" +#include "third_party/skia/include/core/SkSize.h" +#include "third_party/skia/src/codec/SkCodecImageGenerator.h" // nogncheck namespace flutter {