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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
72 } | 72 } |
73 | 73 |
74 private: | 74 private: |
75 class RendererClientInternal; | 75 class RendererClientInternal; |
76 | 76 |
77 enum State { | 77 enum State { |
78 STATE_UNINITIALIZED, | 78 STATE_UNINITIALIZED, |
79 STATE_INIT_PENDING_CDM, // Initialization is waiting for the CDM to be set. | 79 STATE_INIT_PENDING_CDM, // Initialization is waiting for the CDM to be set. |
80 STATE_INITIALIZING, // Initializing audio/video renderers. | 80 STATE_INITIALIZING, // Initializing audio/video renderers. |
81 STATE_FLUSHING, | 81 STATE_FLUSHING, |
82 STATE_FLUSHED, | |
xhwang
2017/04/06 05:20:28
Please add a comment. Otherwise it's not clear thi
servolk
2017/04/06 17:11:47
Done.
| |
82 STATE_PLAYING, | 83 STATE_PLAYING, |
83 STATE_ERROR | 84 STATE_ERROR |
84 }; | 85 }; |
85 | 86 |
86 bool GetWallClockTimes(const std::vector<base::TimeDelta>& media_timestamps, | 87 bool GetWallClockTimes(const std::vector<base::TimeDelta>& media_timestamps, |
87 std::vector<base::TimeTicks>* wall_clock_times); | 88 std::vector<base::TimeTicks>* wall_clock_times); |
88 | 89 |
89 bool HasEncryptedStream(); | 90 bool HasEncryptedStream(); |
90 | 91 |
91 void FinishInitialization(PipelineStatus status); | 92 void FinishInitialization(PipelineStatus status); |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
239 | 240 |
240 base::WeakPtr<RendererImpl> weak_this_; | 241 base::WeakPtr<RendererImpl> weak_this_; |
241 base::WeakPtrFactory<RendererImpl> weak_factory_; | 242 base::WeakPtrFactory<RendererImpl> weak_factory_; |
242 | 243 |
243 DISALLOW_COPY_AND_ASSIGN(RendererImpl); | 244 DISALLOW_COPY_AND_ASSIGN(RendererImpl); |
244 }; | 245 }; |
245 | 246 |
246 } // namespace media | 247 } // namespace media |
247 | 248 |
248 #endif // MEDIA_RENDERERS_RENDERER_IMPL_H_ | 249 #endif // MEDIA_RENDERERS_RENDERER_IMPL_H_ |
OLD | NEW |