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

Unified Diff: media/base/android/media_codec_video_decoder.cc

Issue 1372203002: Throttle media decoding after excessive Android media server crashes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: new infobar text per UI review Created 5 years, 2 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/base/android/media_codec_video_decoder.h ('k') | media/base/android/media_player_android.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/android/media_codec_video_decoder.cc
diff --git a/media/base/android/media_codec_video_decoder.cc b/media/base/android/media_codec_video_decoder.cc
index 57fc153eeef76e326bcb2456a3284152bd6a6438..f20bbebe210ed995831a2ade66dceb64a0da4501 100644
--- a/media/base/android/media_codec_video_decoder.cc
+++ b/media/base/android/media_codec_video_decoder.cc
@@ -27,8 +27,7 @@ MediaCodecVideoDecoder::MediaCodecVideoDecoder(
const base::Closure& waiting_for_decryption_key_cb,
const base::Closure& error_cb,
const SetTimeCallback& update_current_time_cb,
- const VideoSizeChangedCallback& video_size_changed_cb,
- const base::Closure& codec_created_cb)
+ const VideoSizeChangedCallback& video_size_changed_cb)
: MediaCodecDecoder("VideoDecoder",
media_task_runner,
frame_statistics,
@@ -40,8 +39,7 @@ MediaCodecVideoDecoder::MediaCodecVideoDecoder(
error_cb),
is_protected_surface_required_(false),
update_current_time_cb_(update_current_time_cb),
- video_size_changed_cb_(video_size_changed_cb),
- codec_created_cb_(codec_created_cb) {
+ video_size_changed_cb_(video_size_changed_cb) {
}
MediaCodecVideoDecoder::~MediaCodecVideoDecoder() {
@@ -187,8 +185,6 @@ MediaCodecDecoder::ConfigStatus MediaCodecVideoDecoder::ConfigureInternal(
DVLOG(0) << class_name() << "::" << __FUNCTION__ << " succeeded";
- media_task_runner_->PostTask(FROM_HERE, codec_created_cb_);
-
if (!codec_created_for_tests_cb_.is_null())
media_task_runner_->PostTask(FROM_HERE, codec_created_for_tests_cb_);
« no previous file with comments | « media/base/android/media_codec_video_decoder.h ('k') | media/base/android/media_player_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698