OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_RENDERERS_RENDERER_IMPL_H_ | 5 #ifndef MEDIA_RENDERERS_RENDERER_IMPL_H_ |
6 #define MEDIA_RENDERERS_RENDERER_IMPL_H_ | 6 #define MEDIA_RENDERERS_RENDERER_IMPL_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <memory> | 9 #include <memory> |
10 #include <vector> | 10 #include <vector> |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 video_underflow_threshold_ = threshold; | 75 video_underflow_threshold_ = threshold; |
76 } | 76 } |
77 | 77 |
78 private: | 78 private: |
79 class RendererClientInternal; | 79 class RendererClientInternal; |
80 | 80 |
81 enum State { | 81 enum State { |
82 STATE_UNINITIALIZED, | 82 STATE_UNINITIALIZED, |
83 STATE_INIT_PENDING_CDM, // Initialization is waiting for the CDM to be set. | 83 STATE_INIT_PENDING_CDM, // Initialization is waiting for the CDM to be set. |
84 STATE_INITIALIZING, // Initializing audio/video renderers. | 84 STATE_INITIALIZING, // Initializing audio/video renderers. |
85 STATE_FLUSHING, | 85 STATE_FLUSHING, // Flushing is in progress. |
86 STATE_PLAYING, | 86 STATE_FLUSHED, // After initialization or after flush completed. |
| 87 STATE_PLAYING, // After StartPlayingFrom has been called. |
87 STATE_ERROR | 88 STATE_ERROR |
88 }; | 89 }; |
89 | 90 |
90 bool GetWallClockTimes(const std::vector<base::TimeDelta>& media_timestamps, | 91 bool GetWallClockTimes(const std::vector<base::TimeDelta>& media_timestamps, |
91 std::vector<base::TimeTicks>* wall_clock_times); | 92 std::vector<base::TimeTicks>* wall_clock_times); |
92 | 93 |
93 bool HasEncryptedStream(); | 94 bool HasEncryptedStream(); |
94 | 95 |
95 void FinishInitialization(PipelineStatus status); | 96 void FinishInitialization(PipelineStatus status); |
96 | 97 |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 | 205 |
205 base::WeakPtr<RendererImpl> weak_this_; | 206 base::WeakPtr<RendererImpl> weak_this_; |
206 base::WeakPtrFactory<RendererImpl> weak_factory_; | 207 base::WeakPtrFactory<RendererImpl> weak_factory_; |
207 | 208 |
208 DISALLOW_COPY_AND_ASSIGN(RendererImpl); | 209 DISALLOW_COPY_AND_ASSIGN(RendererImpl); |
209 }; | 210 }; |
210 | 211 |
211 } // namespace media | 212 } // namespace media |
212 | 213 |
213 #endif // MEDIA_RENDERERS_RENDERER_IMPL_H_ | 214 #endif // MEDIA_RENDERERS_RENDERER_IMPL_H_ |
OLD | NEW |