Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(136)

Issue 2363953003: multibuffer: Evict lower blocks first after inserting multiple blocks

Created:
4 years, 3 months ago by wdzierzanowski
Modified:
4 years, 2 months ago
Reviewers:
hubbe
CC:
chromium-reviews, feature-media-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

multibuffer: 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+70 lines, -6 lines) Patch
M media/blink/multibuffer.cc View 2 chunks +4 lines, -6 lines 0 comments Download
M media/blink/multibuffer_unittest.cc View 1 chunk +66 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (2 generated)
wdzierzanowski
hubbe, found this when working on the integration of the multibuffer in Opera. I think ...
4 years, 3 months ago (2016-09-23 07:35:03 UTC) #2
hubbe
On 2016/09/23 07:35:03, wdzierzanowski wrote: > hubbe, found this when working on the integration of ...
4 years, 3 months ago (2016-09-23 17:24:45 UTC) #3
wdzierzanowski
On 2016/09/23 17:24:45, hubbe wrote: > On 2016/09/23 07:35:03, wdzierzanowski wrote: > > hubbe, found ...
4 years, 3 months ago (2016-09-23 21:34:43 UTC) #4
hubbe
On 2016/09/23 21:34:43, wdzierzanowski wrote: > On 2016/09/23 17:24:45, hubbe wrote: > > On 2016/09/23 ...
4 years, 3 months ago (2016-09-23 22:15:22 UTC) #5
wdzierzanowski
4 years, 2 months ago (2016-09-26 09:24:39 UTC) #7
I've created crbug.com/650201, can we move the discussion there please? It
should make it easier to talk about pictures and stuff thanks to attachments :)

Powered by Google App Engine
This is Rietveld 408576698