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

Unified Diff: media/blink/websourcebuffer_impl.cc

Issue 1008463002: Fix MSE GC, make it less aggressive, more spec-compliant (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: A bit more informative logging + fixed unit test Created 5 years, 4 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
Index: media/blink/websourcebuffer_impl.cc
diff --git a/media/blink/websourcebuffer_impl.cc b/media/blink/websourcebuffer_impl.cc
index 0e387785ae1db4d0bb3a64b54d7dac0d3b1100fc..256d4672df080bd783fcbfd056ad338fac26b156 100644
--- a/media/blink/websourcebuffer_impl.cc
+++ b/media/blink/websourcebuffer_impl.cc
@@ -81,6 +81,12 @@ blink::WebTimeRanges WebSourceBufferImpl::buffered() {
return result;
}
+bool WebSourceBufferImpl::evictCodedFrames(double currentPlaybackTime,
+ size_t newDataSize) {
wolenetz 2015/08/12 21:09:57 newDataSize is unused. Please provide comment in c
wolenetz 2015/08/12 21:13:26 Hmm. disregard the TODO/bug request. There is noth
servolk 2015/08/13 00:31:42 I was actually hoping to use the newDataSize to de
servolk 2015/08/20 02:45:27 Update: I've implemented the logic described above
wolenetz 2015/08/20 23:23:37 Oops. There is actually spec line-item in the code
servolk 2015/08/21 01:32:08 Yes, step 3 of 3.5.14
+ return demuxer_->EvictCodedFrames(
+ base::TimeDelta::FromSecondsD(currentPlaybackTime));
+}
+
void WebSourceBufferImpl::append(
const unsigned char* data,
unsigned length,

Powered by Google App Engine
This is Rietveld 408576698