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

Unified Diff: content/renderer/media/android/webmediaplayer_android.cc

Issue 1185453004: Implemented setting memory limits through WebMediaPlayer interface Base URL: https://chromium.googlesource.com/chromium/src.git@set-mem-limits-on-demux-stream
Patch Set: int -> size_t Created 5 years, 6 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: content/renderer/media/android/webmediaplayer_android.cc
diff --git a/content/renderer/media/android/webmediaplayer_android.cc b/content/renderer/media/android/webmediaplayer_android.cc
index dfad9db0f2f7f4c036516947b9cc7b0bb02ac0e1..4564d52d7f8c1be394cc62ad9511d7cc0633dbb5 100644
--- a/content/renderer/media/android/webmediaplayer_android.cc
+++ b/content/renderer/media/android/webmediaplayer_android.cc
@@ -759,6 +759,34 @@ unsigned WebMediaPlayerAndroid::videoDecodedByteCount() const {
return 0;
}
+size_t WebMediaPlayerAndroid::getAudioBufferSize() const {
+ if (media_source_delegate_)
+ return media_source_delegate_->getAudioBufferSize();
+ NOTIMPLEMENTED();
ddorwin 2015/06/17 21:02:27 As mentioned in https://codereview.chromium.org/11
servolk 2015/06/17 22:20:58 See my comments on other CLs: this could make sens
+ return 0;
+}
+
+void WebMediaPlayerAndroid::setAudioBufferSize(size_t size) {
+ if (media_source_delegate_)
+ media_source_delegate_->setAudioBufferSize(size);
+ else
+ NOTIMPLEMENTED();
+}
+
+size_t WebMediaPlayerAndroid::getVideoBufferSize() const {
+ if (media_source_delegate_)
+ return media_source_delegate_->getVideoBufferSize();
+ NOTIMPLEMENTED();
+ return 0;
+}
+
+void WebMediaPlayerAndroid::setVideoBufferSize(size_t size) {
+ if (media_source_delegate_)
+ media_source_delegate_->setVideoBufferSize(size);
+ else
+ NOTIMPLEMENTED();
+}
+
void WebMediaPlayerAndroid::OnMediaMetadataChanged(
const base::TimeDelta& duration, int width, int height, bool success) {
DCHECK(main_thread_checker_.CalledOnValidThread());

Powered by Google App Engine
This is Rietveld 408576698