set leaf_nodes_builder in LayerTree::Flatten (flutter/engine#34261)

This commit is contained in:
Dan Field
2022-06-23 16:19:08 -07:00
committed by GitHub
parent 07873d4e21
commit 06f25e5fdd
2 changed files with 2 additions and 1 deletions

View File

@@ -160,6 +160,7 @@ sk_sp<DisplayList> LayerTree::Flatten(const SkRect& bounds) {
.frame_device_pixel_ratio = device_pixel_ratio_,
.layer_snapshot_store = nullptr,
.enable_leaf_layer_tracing = false,
.leaf_nodes_builder = builder.builder().get(),
// clang-format on
};

View File

@@ -65,6 +65,6 @@ void main() {
}
}
expect(saveLayerRecordCount, 3);
expect(saveLayerCount, 6);
expect(saveLayerCount, 3);
});
}