From 5b5853f4dc22e8ea1c2eb2090499ce9b1d87b462 Mon Sep 17 00:00:00 2001 From: Brandon DeRosier Date: Thu, 14 Sep 2023 13:21:05 -0700 Subject: [PATCH] [Impeller] Assert IMPELLER_ENABLE_3D when importing scene_contents.h. (flutter/engine#45848) Noticed we had a residual unguarded import of scene_contents.h while investigating https://github.com/flutter/flutter/issues/134745. --- engine/src/flutter/impeller/aiks/aiks_unittests.cc | 1 - engine/src/flutter/impeller/entity/contents/scene_contents.h | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/engine/src/flutter/impeller/aiks/aiks_unittests.cc b/engine/src/flutter/impeller/aiks/aiks_unittests.cc index 4097a43dca..a9e4b162f3 100644 --- a/engine/src/flutter/impeller/aiks/aiks_unittests.cc +++ b/engine/src/flutter/impeller/aiks/aiks_unittests.cc @@ -22,7 +22,6 @@ #include "impeller/entity/contents/conical_gradient_contents.h" #include "impeller/entity/contents/filters/inputs/filter_input.h" #include "impeller/entity/contents/linear_gradient_contents.h" -#include "impeller/entity/contents/scene_contents.h" #include "impeller/entity/contents/solid_color_contents.h" #include "impeller/entity/contents/tiled_texture_contents.h" #include "impeller/geometry/color.h" diff --git a/engine/src/flutter/impeller/entity/contents/scene_contents.h b/engine/src/flutter/impeller/entity/contents/scene_contents.h index 9191728cb9..b1f443cd75 100644 --- a/engine/src/flutter/impeller/entity/contents/scene_contents.h +++ b/engine/src/flutter/impeller/entity/contents/scene_contents.h @@ -4,6 +4,10 @@ #pragma once +#if !IMPELLER_ENABLE_3D +static_assert(false); +#endif + #include #include "impeller/entity/contents/color_source_contents.h"