mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Jank insted of flicker in Mozart
Currently there's no good way of synchronizing layout changes with children in Mozart. Previously we flickered when we were out of sync with our child. Now we jank instead because that's a more acceptable artifact while we work on improving Mozart. Fixes https://github.com/flutter/flutter/issues/3024
This commit is contained in:
parent
37847ca4c4
commit
2123899cc6
@ -99,7 +99,7 @@ void RasterizerMojo::Draw(uint64_t layer_tree_ptr,
|
||||
root_node->op->get_image()->content_rect->height = size.height;
|
||||
root_node->op->get_image()->image_resource_id = kContentImageResourceId;
|
||||
root_node->hit_test_behavior = mojo::gfx::composition::HitTestBehavior::New();
|
||||
root_node->combinator = mojo::gfx::composition::Node::Combinator::PRUNE;
|
||||
root_node->combinator = mojo::gfx::composition::Node::Combinator::MERGE;
|
||||
layer_tree->UpdateScene(update.get(), root_node.get());
|
||||
|
||||
update->nodes.insert(kRootNodeId, root_node.Pass());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user