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

Commit 683bca5

Browse files
authored
[Impeller] Assert IMPELLER_ENABLE_3D when importing scene_contents.h. (#45848)
Noticed we had a residual unguarded import of scene_contents.h while investigating flutter/flutter#134745.
1 parent 1ec0d84 commit 683bca5

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

impeller/aiks/aiks_unittests.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
#include "impeller/entity/contents/conical_gradient_contents.h"
2323
#include "impeller/entity/contents/filters/inputs/filter_input.h"
2424
#include "impeller/entity/contents/linear_gradient_contents.h"
25-
#include "impeller/entity/contents/scene_contents.h"
2625
#include "impeller/entity/contents/solid_color_contents.h"
2726
#include "impeller/entity/contents/tiled_texture_contents.h"
2827
#include "impeller/geometry/color.h"

impeller/entity/contents/scene_contents.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44

55
#pragma once
66

7+
#if !IMPELLER_ENABLE_3D
8+
static_assert(false);
9+
#endif
10+
711
#include <memory>
812

913
#include "impeller/entity/contents/color_source_contents.h"

0 commit comments

Comments
 (0)