From 2905171d55b2b1124a2c61ece3299d3df888053a Mon Sep 17 00:00:00 2001 From: "Ming Lyu (CareF)" Date: Tue, 4 Aug 2020 17:56:02 -0400 Subject: [PATCH] Remove null check for layer_tree pointer in `Animator::Render` (#20178) --- shell/common/animator.cc | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/shell/common/animator.cc b/shell/common/animator.cc index 7e581c07c..2237d1ffe 100644 --- a/shell/common/animator.cc +++ b/shell/common/animator.cc @@ -178,11 +178,8 @@ void Animator::Render(std::unique_ptr 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)); -- GitLab