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

Commit 8e0750d

Browse files
committed
Fix view embedding crash
1 parent bd59fe3 commit 8e0750d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

flow/layers/child_scene_layer.cc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,9 @@ ChildSceneLayer::ChildSceneLayer(zx_koid_t layer_id,
1919

2020
void ChildSceneLayer::Preroll(PrerollContext* context, const SkMatrix& matrix) {
2121
TRACE_EVENT0("flutter", "ChildSceneLayer::Preroll");
22-
set_needs_system_composite(true);
23-
24-
CheckForChildLayerBelow(context);
2522

2623
context->child_scene_layer_exists_below = true;
24+
CheckForChildLayerBelow(context);
2725

2826
// An alpha "hole punch" is required if the frame behind us is not opaque.
2927
if (!context->is_opaque) {

0 commit comments

Comments
 (0)