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

Side by Side Diff: media/base/pipeline.h

Issue 827013005: Avoid double task trampoline for Pipeline state transitions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanup. Created 5 years, 11 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 | « media/base/demuxer.h ('k') | media/base/pipeline.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 #ifndef MEDIA_BASE_PIPELINE_H_ 5 #ifndef MEDIA_BASE_PIPELINE_H_
6 #define MEDIA_BASE_PIPELINE_H_ 6 #define MEDIA_BASE_PIPELINE_H_
7 7
8 #include "base/gtest_prod_util.h" 8 #include "base/gtest_prod_util.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 273
274 // Callbacks executed when a text track is added. 274 // Callbacks executed when a text track is added.
275 void OnAddTextTrack(const TextTrackConfig& config, 275 void OnAddTextTrack(const TextTrackConfig& config,
276 const AddTextTrackDoneCB& done_cb); 276 const AddTextTrackDoneCB& done_cb);
277 277
278 // Kicks off initialization for each media object, executing |done_cb| with 278 // Kicks off initialization for each media object, executing |done_cb| with
279 // the result when completed. 279 // the result when completed.
280 void InitializeDemuxer(const PipelineStatusCB& done_cb); 280 void InitializeDemuxer(const PipelineStatusCB& done_cb);
281 void InitializeRenderer(const base::Closure& done_cb); 281 void InitializeRenderer(const base::Closure& done_cb);
282 282
283 void OnStateTransition(PipelineStatus status);
284 void StateTransitionTask(PipelineStatus status); 283 void StateTransitionTask(PipelineStatus status);
285 284
286 // Initiates an asynchronous pause-flush-seek-preroll call sequence 285 // Initiates an asynchronous pause-flush-seek-preroll call sequence
287 // executing |done_cb| with the final status when completed. 286 // executing |done_cb| with the final status when completed.
288 void DoSeek(base::TimeDelta seek_timestamp, const PipelineStatusCB& done_cb); 287 void DoSeek(base::TimeDelta seek_timestamp, const PipelineStatusCB& done_cb);
289 288
290 // Initiates an asynchronous pause-flush-stop call sequence executing 289 // Initiates an asynchronous pause-flush-stop call sequence executing
291 // |done_cb| when completed. 290 // |done_cb| when completed.
292 void DoStop(const PipelineStatusCB& done_cb); 291 void DoStop(const PipelineStatusCB& done_cb);
293 void OnStopCompleted(PipelineStatus status); 292 void OnStopCompleted(PipelineStatus status);
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 384
386 // NOTE: Weak pointers must be invalidated before all other member variables. 385 // NOTE: Weak pointers must be invalidated before all other member variables.
387 base::WeakPtrFactory<Pipeline> weak_factory_; 386 base::WeakPtrFactory<Pipeline> weak_factory_;
388 387
389 DISALLOW_COPY_AND_ASSIGN(Pipeline); 388 DISALLOW_COPY_AND_ASSIGN(Pipeline);
390 }; 389 };
391 390
392 } // namespace media 391 } // namespace media
393 392
394 #endif // MEDIA_BASE_PIPELINE_H_ 393 #endif // MEDIA_BASE_PIPELINE_H_
OLDNEW
« no previous file with comments | « media/base/demuxer.h ('k') | media/base/pipeline.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698