Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 03ee971

Browse files
committed
Trivial changes
1 parent 15b9eb4 commit 03ee971

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

shell/common/animator.cc

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -180,17 +180,13 @@ void Animator::Render(int64_t view_id,
180180

181181
if (!result.success) {
182182
FML_DLOG(INFO) << "No pending continuation to commit";
183-
return;
184-
}
185-
186-
if (!result.is_first_item) {
183+
} else if (!result.is_first_item) {
187184
// It has been successfully pushed to the pipeline but not as the first
188185
// item. Eventually the 'Rasterizer' will consume it, so we don't need to
189186
// notify the delegate.
190-
return;
187+
} else {
188+
delegate_.OnAnimatorDraw(layer_tree_pipeline_);
191189
}
192-
193-
delegate_.OnAnimatorDraw(layer_tree_pipeline_);
194190
}
195191

196192
const std::weak_ptr<VsyncWaiter> Animator::GetVsyncWaiter() const {

0 commit comments

Comments
 (0)