[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.
This commit is contained in:
Brandon DeRosier
2023-09-14 13:21:05 -07:00
committed by GitHub
parent 6ae781812f
commit 5b5853f4dc
2 changed files with 4 additions and 1 deletions

View File

@@ -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"

View File

@@ -4,6 +4,10 @@
#pragma once
#if !IMPELLER_ENABLE_3D
static_assert(false);
#endif
#include <memory>
#include "impeller/entity/contents/color_source_contents.h"