Skip to content

Commit

Permalink
[Impeller] Assert IMPELLER_ENABLE_3D when importing scene_contents.h. (
Browse files Browse the repository at this point in the history
…#45848)

Noticed we had a residual unguarded import of scene_contents.h while investigating flutter/flutter#134745.
  • Loading branch information
bdero authored Sep 14, 2023
1 parent 1ec0d84 commit 683bca5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 0 additions & 1 deletion impeller/aiks/aiks_unittests.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 4 additions & 0 deletions impeller/entity/contents/scene_contents.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@

#pragma once

#if !IMPELLER_ENABLE_3D
static_assert(false);
#endif

#include <memory>

#include "impeller/entity/contents/color_source_contents.h"
Expand Down

0 comments on commit 683bca5

Please sign in to comment.