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

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

Issue 1978973002: Moves video frame callbacks from VideoFrameCompositor to Renderer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixes media_bit_reader_fuzzer link error Created 4 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) 2016 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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_BASE_PIPELINE_IMPL_H_ 5 #ifndef MEDIA_BASE_PIPELINE_IMPL_H_
6 #define MEDIA_BASE_PIPELINE_IMPL_H_ 6 #define MEDIA_BASE_PIPELINE_IMPL_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 void AddTextStream(DemuxerStream* text_stream, 149 void AddTextStream(DemuxerStream* text_stream,
150 const TextTrackConfig& config) override; 150 const TextTrackConfig& config) override;
151 void RemoveTextStream(DemuxerStream* text_stream) override; 151 void RemoveTextStream(DemuxerStream* text_stream) override;
152 152
153 // RendererClient implementation. 153 // RendererClient implementation.
154 void OnError(PipelineStatus error) override; 154 void OnError(PipelineStatus error) override;
155 void OnEnded() override; 155 void OnEnded() override;
156 void OnStatisticsUpdate(const PipelineStatistics& stats) override; 156 void OnStatisticsUpdate(const PipelineStatistics& stats) override;
157 void OnBufferingStateChange(BufferingState state) override; 157 void OnBufferingStateChange(BufferingState state) override;
158 void OnWaitingForDecryptionKey() override; 158 void OnWaitingForDecryptionKey() override;
159 void OnVideoNaturalSizeChange(const gfx::Size& size) override;
160 void OnVideoOpacityChange(bool opaque) override;
159 161
160 // The following "task" methods correspond to the public methods, but these 162 // The following "task" methods correspond to the public methods, but these
161 // methods are run as the result of posting a task to the Pipeline's 163 // methods are run as the result of posting a task to the Pipeline's
162 // task runner. 164 // task runner.
163 void StartTask(); 165 void StartTask();
164 166
165 // Suspends the pipeline, discarding the current renderer. 167 // Suspends the pipeline, discarding the current renderer.
166 void SuspendTask(const PipelineStatusCB& suspend_cb); 168 void SuspendTask(const PipelineStatusCB& suspend_cb);
167 169
168 // Resumes the pipeline with a new renderer, and initializes it with a seek. 170 // Resumes the pipeline with a new renderer, and initializes it with a seek.
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 // Declared last so that weak pointers will be invalidated before all other 337 // Declared last so that weak pointers will be invalidated before all other
336 // member variables. 338 // member variables.
337 base::WeakPtrFactory<PipelineImpl> weak_factory_; 339 base::WeakPtrFactory<PipelineImpl> weak_factory_;
338 340
339 DISALLOW_COPY_AND_ASSIGN(PipelineImpl); 341 DISALLOW_COPY_AND_ASSIGN(PipelineImpl);
340 }; 342 };
341 343
342 } // namespace media 344 } // namespace media
343 345
344 #endif // MEDIA_BASE_PIPELINE_IMPL_H_ 346 #endif // MEDIA_BASE_PIPELINE_IMPL_H_
OLDNEW
« no previous file with comments | « media/base/pipeline.h ('k') | media/base/pipeline_impl.cc » ('j') | media/base/renderer_client.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698