Chromium Code Reviews
Descriptionmultibuffer: Evict lower blocks first after inserting multiple blocks
When seeking, the change in reader position can cause multiple "present" blocks
to transition from pinned to unpinned state, and thus enter the LRU all at
once. These blocks should then be evicted (by Pop()) in the
lowest-position-first order. Issuing the Insert() calls in this order
guarantees that.
For implementation convenience, this also reverses the order of Remove()
calls. It is assumed Remove() order is not relevant for performance as
these calls end up erasing from an std::list and std::map anyway.
BUG=650201
TEST=media_blink_unittests --gtest_filter=MultiBuffer*:Multibuffer*
Patch Set 1 #
Messages
Total messages: 7 (2 generated)
|
||||||||||||||||||||||||||||