Fix use of uninitialized memory in animator (flutter/engine#22714)

* Fix use of uninitialized memory in animator

Discovered via MSAN build of embedder_unittests
This commit is contained in:
Brian Osman 2020-11-24 14:51:31 -05:00 committed by GitHub
parent 2e1e887c76
commit 2260bb3fd7

View File

@ -108,7 +108,7 @@ class Animator final {
bool frame_scheduled_;
int notify_idle_task_id_;
bool dimension_change_pending_;
SkISize last_layer_tree_size_;
SkISize last_layer_tree_size_ = {0, 0};
std::deque<uint64_t> trace_flow_ids_;
fml::WeakPtrFactory<Animator> weak_factory_;