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

Lines changed: 1 addition & 0 deletions
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

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy