Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit ee76ab7

Browse files
authored
Cleanup Skia includes in image_generator/descriptor (#38775)
* Cleanup skia includes in image_generator/descriptor * format
1 parent 6048f91 commit ee76ab7

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

lib/ui/painting/image_descriptor.h

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,11 @@
1313
#include "flutter/lib/ui/dart_wrapper.h"
1414
#include "flutter/lib/ui/painting/image_generator_registry.h"
1515
#include "flutter/lib/ui/painting/immutable_buffer.h"
16-
#include "third_party/skia/include/codec/SkCodec.h"
17-
#include "third_party/skia/include/core/SkImageGenerator.h"
16+
#include "third_party/skia/include/core/SkData.h"
17+
#include "third_party/skia/include/core/SkImage.h"
1818
#include "third_party/skia/include/core/SkImageInfo.h"
19-
#include "third_party/skia/src/codec/SkCodecImageGenerator.h"
19+
#include "third_party/skia/include/core/SkPixmap.h"
20+
#include "third_party/skia/include/core/SkSize.h"
2021
#include "third_party/tonic/dart_library_natives.h"
2122

2223
namespace flutter {
@@ -38,7 +39,7 @@ class ImageDescriptor : public RefCountedDartWrappable<ImageDescriptor> {
3839
kBGRA8888,
3940
};
4041

41-
/// @brief Asynchronously initlializes an ImageDescriptor for an encoded
42+
/// @brief Asynchronously initializes an ImageDescriptor for an encoded
4243
/// image, as long as the format is recognized by an encoder installed
4344
/// in the `ImageGeneratorRegistry`. Calling this method will create
4445
/// an `ImageGenerator` and read EXIF corrected dimensions from the

lib/ui/painting/image_generator.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#include <utility>
88

99
#include "flutter/fml/logging.h"
10+
#include "third_party/skia/include/core/SkBitmap.h"
1011

1112
namespace flutter {
1213

lib/ui/painting/image_generator.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,13 @@
77

88
#include <optional>
99
#include "flutter/fml/macros.h"
10+
#include "third_party/skia/include/codec/SkCodec.h"
1011
#include "third_party/skia/include/codec/SkCodecAnimation.h"
12+
#include "third_party/skia/include/core/SkData.h"
13+
#include "third_party/skia/include/core/SkImage.h"
1114
#include "third_party/skia/include/core/SkImageInfo.h"
12-
#include "third_party/skia/src/codec/SkCodecImageGenerator.h"
15+
#include "third_party/skia/include/core/SkSize.h"
16+
#include "third_party/skia/src/codec/SkCodecImageGenerator.h" // nogncheck
1317

1418
namespace flutter {
1519

0 commit comments

Comments
 (0)