Cleanup Skia includes in image_generator/descriptor (flutter/engine#38775)

* Cleanup skia includes in image_generator/descriptor

* format
This commit is contained in:
Kevin Lubick 2023-01-11 12:54:27 -06:00 committed by GitHub
parent 9d751fe63a
commit 60b92fe438
3 changed files with 11 additions and 5 deletions

View File

@ -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<ImageDescriptor> {
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

View File

@ -7,6 +7,7 @@
#include <utility>
#include "flutter/fml/logging.h"
#include "third_party/skia/include/core/SkBitmap.h"
namespace flutter {

View File

@ -7,9 +7,13 @@
#include <optional>
#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 {