DescriptionFix UB with LayerTreeImpl::PassSwapPromises usage
C++ reference says: "Unless otherwise specified, all standard library objects
that have been moved from are placed in a valid but unspecified state"
(http://en.cppreference.com/w/cpp/utility/move).
According to this, current CL fixes UB related to
|LayerTreeHost::swap_promise_list_| and |LayerTreeImpl::swap_promise_list_|
incorrect usage.
CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel
Committed: https://crrev.com/fea15b7520e0ef137d5794e03ad30bc033228b7d
Cr-Commit-Position: refs/heads/master@{#412495}
Patch Set 1 #
Total comments: 2
Patch Set 2 : Use std::vector::clear instead #
Messages
Total messages: 19 (8 generated)
|