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

Unified Diff: media/blink/url_index.cc

Issue 1829163002: Lazily prune the multibuffer block cache. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: no export Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/blink/multibuffer_unittest.cc ('k') | media/blink/url_index_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/blink/url_index.cc
diff --git a/media/blink/url_index.cc b/media/blink/url_index.cc
index aadc8cad36e010f922574bc45f6c8e4e0499d10e..5f3f6f63698d1447c26e2e43b1a095ef7547ae47 100644
--- a/media/blink/url_index.cc
+++ b/media/blink/url_index.cc
@@ -168,7 +168,8 @@ UrlIndex::UrlIndex(blink::WebFrame* frame) : UrlIndex(frame, kBlockSizeShift) {}
UrlIndex::UrlIndex(blink::WebFrame* frame, int block_shift)
: frame_(frame),
- lru_(new MultiBuffer::GlobalLRU()),
+ lru_(new MultiBuffer::GlobalLRU(
+ base::MessageLoop::current()->task_runner())),
block_shift_(block_shift),
weak_factory_(this) {}
« no previous file with comments | « media/blink/multibuffer_unittest.cc ('k') | media/blink/url_index_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698