未验证 提交 2905171d 编写于 作者: M Ming Lyu (CareF) 提交者: GitHub

Remove null check for layer_tree pointer in `Animator::Render` (#20178)

上级 da7a54f6
......@@ -178,11 +178,8 @@ void Animator::Render(std::unique_ptr<flutter::LayerTree> layer_tree) {
}
last_layer_tree_size_ = layer_tree->frame_size();
if (layer_tree) {
// Note the frame time for instrumentation.
layer_tree->RecordBuildTime(last_frame_begin_time_,
last_frame_target_time_);
}
// Note the frame time for instrumentation.
layer_tree->RecordBuildTime(last_frame_begin_time_, last_frame_target_time_);
// Commit the pending continuation.
bool result = producer_continuation_.Complete(std::move(layer_tree));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册