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

Unified Diff: media/blink/websourcebuffer_impl.cc

Issue 789983003: Implement evictFrames() to support MSE's coded frame eviction algorithm. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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
Index: media/blink/websourcebuffer_impl.cc
diff --git a/media/blink/websourcebuffer_impl.cc b/media/blink/websourcebuffer_impl.cc
index 3491378f2d9f988c6ade4735638ef47b33fcacef..c20c9415bec6c78588de908e0a52b3ec21f0dca2 100644
--- a/media/blink/websourcebuffer_impl.cc
+++ b/media/blink/websourcebuffer_impl.cc
@@ -81,6 +81,10 @@ blink::WebTimeRanges WebSourceBufferImpl::buffered() {
return result;
}
+bool WebSourceBufferImpl::evictCodedFrames() {
+ return demuxer_->EvictFrames();
+}
+
void WebSourceBufferImpl::append(
const unsigned char* data,
unsigned length,

Powered by Google App Engine
This is Rietveld 408576698