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

Side by Side Diff: media/filters/pipeline_controller.h

Issue 1873513003: Add video-rendering to mojo media pipeline. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed comments Created 4 years, 8 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_FILTERS_PIPELINE_CONTROLLER_H_ 5 #ifndef MEDIA_FILTERS_PIPELINE_CONTROLLER_H_
6 #define MEDIA_FILTERS_PIPELINE_CONTROLLER_H_ 6 #define MEDIA_FILTERS_PIPELINE_CONTROLLER_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 // When |is_static| is true, seeks to the current time may be elided. 67 // When |is_static| is true, seeks to the current time may be elided.
68 // Otherwise it is assumed that the media data may have changed. 68 // Otherwise it is assumed that the media data may have changed.
69 // 69 //
70 // The remaining parameters are just passed directly to pipeline_.Start(). 70 // The remaining parameters are just passed directly to pipeline_.Start().
71 void Start(Demuxer* demuxer, 71 void Start(Demuxer* demuxer,
72 bool is_streaming, 72 bool is_streaming,
73 bool is_static, 73 bool is_static,
74 const base::Closure& ended_cb, 74 const base::Closure& ended_cb,
75 const PipelineMetadataCB& metadata_cb, 75 const PipelineMetadataCB& metadata_cb,
76 const BufferingStateCB& buffering_state_cb, 76 const BufferingStateCB& buffering_state_cb,
77 const NaturalSizeChangedCB& natural_size_changed_cb,
77 const base::Closure& duration_change_cb, 78 const base::Closure& duration_change_cb,
78 const AddTextTrackCB& add_text_track_cb, 79 const AddTextTrackCB& add_text_track_cb,
79 const base::Closure& waiting_for_decryption_key_cb); 80 const base::Closure& waiting_for_decryption_key_cb);
80 81
81 // Request a seek to |time|. If |time_updated| is true, then the eventual 82 // Request a seek to |time|. If |time_updated| is true, then the eventual
82 // |seeked_cb| callback will also have |time_updated| set to true; it 83 // |seeked_cb| callback will also have |time_updated| set to true; it
83 // indicates that the seek was requested by Blink and a time update is 84 // indicates that the seek was requested by Blink and a time update is
84 // expected so that Blink can fire the seeked event. 85 // expected so that Blink can fire the seeked event.
85 void Seek(base::TimeDelta time, bool time_updated); 86 void Seek(base::TimeDelta time, bool time_updated);
86 87
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 166
166 base::ThreadChecker thread_checker_; 167 base::ThreadChecker thread_checker_;
167 base::WeakPtrFactory<PipelineController> weak_factory_; 168 base::WeakPtrFactory<PipelineController> weak_factory_;
168 169
169 DISALLOW_COPY_AND_ASSIGN(PipelineController); 170 DISALLOW_COPY_AND_ASSIGN(PipelineController);
170 }; 171 };
171 172
172 } // namespace media 173 } // namespace media
173 174
174 #endif // MEDIA_FILTERS_PIPELINE_CONTROLLER_H_ 175 #endif // MEDIA_FILTERS_PIPELINE_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698