Skip to content

Commit 9c9ef56

Browse files
authored
set leaf_nodes_builder in LayerTree::Flatten (flutter#34261)
1 parent 5abab42 commit 9c9ef56

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

flow/layers/layer_tree.cc

+1
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ sk_sp<DisplayList> LayerTree::Flatten(const SkRect& bounds) {
160160
.frame_device_pixel_ratio = device_pixel_ratio_,
161161
.layer_snapshot_store = nullptr,
162162
.enable_leaf_layer_tracing = false,
163+
.leaf_nodes_builder = builder.builder().get(),
163164
// clang-format on
164165
};
165166

testing/dart/observatory/tracing_test.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,6 @@ void main() {
6565
}
6666
}
6767
expect(saveLayerRecordCount, 3);
68-
expect(saveLayerCount, 6);
68+
expect(saveLayerCount, 3);
6969
});
7070
}

0 commit comments

Comments
 (0)