From a94c7fe1de75c88a1d17e9c35928f27aa868a7b1 Mon Sep 17 00:00:00 2001 From: Kevin Lubick Date: Tue, 1 Nov 2022 14:39:49 -0400 Subject: [PATCH] Fix Skia includes of SkEncodedImageFormat et al (flutter/engine#37201) --- .../src/flutter/lib/ui/painting/image_decoder_unittests.cc | 5 +++++ engine/src/flutter/third_party/txt/tests/render_test.cc | 3 +++ 2 files changed, 8 insertions(+) diff --git a/engine/src/flutter/lib/ui/painting/image_decoder_unittests.cc b/engine/src/flutter/lib/ui/painting/image_decoder_unittests.cc index 55c5e7e756..7a5e3cfd0a 100644 --- a/engine/src/flutter/lib/ui/painting/image_decoder_unittests.cc +++ b/engine/src/flutter/lib/ui/painting/image_decoder_unittests.cc @@ -18,6 +18,11 @@ #include "flutter/testing/test_dart_native_resolver.h" #include "flutter/testing/test_gl_surface.h" #include "flutter/testing/testing.h" +#include "third_party/skia/include/codec/SkCodecAnimation.h" +#include "third_party/skia/include/core/SkData.h" +#include "third_party/skia/include/core/SkEncodedImageFormat.h" +#include "third_party/skia/include/core/SkImageInfo.h" +#include "third_party/skia/include/core/SkSize.h" namespace flutter { namespace testing { diff --git a/engine/src/flutter/third_party/txt/tests/render_test.cc b/engine/src/flutter/third_party/txt/tests/render_test.cc index 17e4fc43a6..17730da022 100644 --- a/engine/src/flutter/third_party/txt/tests/render_test.cc +++ b/engine/src/flutter/third_party/txt/tests/render_test.cc @@ -19,6 +19,9 @@ #include #include "flutter/fml/logging.h" +#include "third_party/skia/include/core/SkBitmap.h" +#include "third_party/skia/include/core/SkCanvas.h" +#include "third_party/skia/include/core/SkEncodedImageFormat.h" #include "third_party/skia/include/core/SkImageEncoder.h" #include "third_party/skia/include/core/SkStream.h" #include "txt/asset_font_manager.h"