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

Side by Side Diff: media/base/android/media_player_android.cc

Issue 1128383003: Implementation of MediaCodecPlayer stage 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed unused media_codec_player_state.h and .cc Created 5 years, 7 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "media/base/android/media_player_android.h" 5 #include "media/base/android/media_player_android.h"
6 6
7 #include "base/android/jni_android.h" 7 #include "base/android/jni_android.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/single_thread_task_runner.h" 9 #include "base/single_thread_task_runner.h"
10 #include "base/thread_task_runner_handle.h" 10 #include "base/thread_task_runner_handle.h"
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 listener_.reset(); 91 listener_.reset();
92 } 92 }
93 93
94 void MediaPlayerAndroid::SetAudible(bool is_audible) { 94 void MediaPlayerAndroid::SetAudible(bool is_audible) {
95 if (is_audible_ != is_audible) { 95 if (is_audible_ != is_audible) {
96 is_audible_ = is_audible; 96 is_audible_ = is_audible;
97 manager_->OnAudibleStateChanged(player_id(), is_audible_); 97 manager_->OnAudibleStateChanged(player_id(), is_audible_);
98 } 98 }
99 } 99 }
100 100
101 base::WeakPtr<MediaPlayerAndroid>
102 MediaPlayerAndroid::WeakPtrForUIThread() {
103 return weak_factory_.GetWeakPtr();
qinmin 2015/05/19 19:26:26 nit: indent by 2
Tima Vaisburd 2015/05/20 05:19:59 Done.
104 }
105
101 } // namespace media 106 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698