diff --git a/shell/platform/darwin/graphics/FlutterDarwinExternalTextureMetal.mm b/shell/platform/darwin/graphics/FlutterDarwinExternalTextureMetal.mm index 3c8d00510ea30..3e2a8c2eb6129 100644 --- a/shell/platform/darwin/graphics/FlutterDarwinExternalTextureMetal.mm +++ b/shell/platform/darwin/graphics/FlutterDarwinExternalTextureMetal.mm @@ -14,6 +14,7 @@ #include "third_party/skia/include/gpu/GrDirectContext.h" #include "third_party/skia/include/gpu/GrYUVABackendTextures.h" #include "third_party/skia/include/gpu/ganesh/SkImageGanesh.h" +#include "third_party/skia/include/ports/SkCFObject.h" FLUTTER_ASSERT_ARC diff --git a/shell/platform/embedder/embedder.cc b/shell/platform/embedder/embedder.cc index 9049a19eb2272..17df21bf1f6a2 100644 --- a/shell/platform/embedder/embedder.cc +++ b/shell/platform/embedder/embedder.cc @@ -69,6 +69,7 @@ extern const intptr_t kPlatformStrongDillSize; #ifdef SHELL_ENABLE_METAL #include "flutter/shell/platform/embedder/embedder_surface_metal.h" +#include "third_party/skia/include/ports/SkCFObject.h" #endif const int32_t kFlutterSemanticsNodeIdBatchEnd = -1; diff --git a/testing/test_metal_context.h b/testing/test_metal_context.h index de004cd82a0f9..c470e501257d4 100644 --- a/testing/test_metal_context.h +++ b/testing/test_metal_context.h @@ -9,6 +9,7 @@ #include #include "third_party/skia/include/gpu/GrDirectContext.h" +#include "third_party/skia/include/ports/SkCFObject.h" namespace flutter {