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

Side by Side Diff: media/base/pipeline_impl.cc

Issue 2964713004: media: Add more player details in chrome://media-internals player list (Closed)
Patch Set: Bikeshed. Created 3 years, 5 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
« no previous file with comments | « content/browser/resources/media/media_internals.css ('k') | media/blink/webmediaplayer_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/pipeline_impl.h" 5 #include "media/base/pipeline_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 demuxer_(nullptr), 194 demuxer_(nullptr),
195 playback_rate_(kDefaultPlaybackRate), 195 playback_rate_(kDefaultPlaybackRate),
196 volume_(kDefaultVolume), 196 volume_(kDefaultVolume),
197 cdm_context_(nullptr), 197 cdm_context_(nullptr),
198 state_(kCreated), 198 state_(kCreated),
199 status_(PIPELINE_OK), 199 status_(PIPELINE_OK),
200 renderer_ended_(false), 200 renderer_ended_(false),
201 text_renderer_ended_(false), 201 text_renderer_ended_(false),
202 weak_factory_(this) { 202 weak_factory_(this) {
203 weak_this_ = weak_factory_.GetWeakPtr(); 203 weak_this_ = weak_factory_.GetWeakPtr();
204 media_log_->AddEvent(media_log_->CreatePipelineStateChangedEvent(kCreated));
205 } 204 }
206 205
207 PipelineImpl::RendererWrapper::~RendererWrapper() { 206 PipelineImpl::RendererWrapper::~RendererWrapper() {
208 DCHECK(media_task_runner_->BelongsToCurrentThread()); 207 DCHECK(media_task_runner_->BelongsToCurrentThread());
209 DCHECK(state_ == kCreated || state_ == kStopped); 208 DCHECK(state_ == kCreated || state_ == kStopped);
210 } 209 }
211 210
212 // Note that the usage of base::Unretained() with the renderers is considered 211 // Note that the usage of base::Unretained() with the renderers is considered
213 // safe as they are owned by |pending_callbacks_| and share the same lifetime. 212 // safe as they are owned by |pending_callbacks_| and share the same lifetime.
214 // 213 //
(...skipping 1147 matching lines...) Expand 10 before | Expand all | Expand 10 after
1362 void PipelineImpl::OnSuspendDone() { 1361 void PipelineImpl::OnSuspendDone() {
1363 DVLOG(3) << __func__; 1362 DVLOG(3) << __func__;
1364 DCHECK(thread_checker_.CalledOnValidThread()); 1363 DCHECK(thread_checker_.CalledOnValidThread());
1365 DCHECK(IsRunning()); 1364 DCHECK(IsRunning());
1366 1365
1367 DCHECK(!suspend_cb_.is_null()); 1366 DCHECK(!suspend_cb_.is_null());
1368 base::ResetAndReturn(&suspend_cb_).Run(PIPELINE_OK); 1367 base::ResetAndReturn(&suspend_cb_).Run(PIPELINE_OK);
1369 } 1368 }
1370 1369
1371 } // namespace media 1370 } // namespace media
OLDNEW
« no previous file with comments | « content/browser/resources/media/media_internals.css ('k') | media/blink/webmediaplayer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698