| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_VIDEO_RENDERER_IMPL_H_ | 5 #ifndef MEDIA_RENDERERS_VIDEO_RENDERER_IMPL_H_ |
| 6 #define MEDIA_RENDERERS_VIDEO_RENDERER_IMPL_H_ | 6 #define MEDIA_RENDERERS_VIDEO_RENDERER_IMPL_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 | 9 |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 const SetDecryptorReadyCB& set_decryptor_ready_cb, | 58 const SetDecryptorReadyCB& set_decryptor_ready_cb, |
| 59 const StatisticsCB& statistics_cb, | 59 const StatisticsCB& statistics_cb, |
| 60 const BufferingStateCB& buffering_state_cb, | 60 const BufferingStateCB& buffering_state_cb, |
| 61 const PaintCB& paint_cb, | 61 const PaintCB& paint_cb, |
| 62 const base::Closure& ended_cb, | 62 const base::Closure& ended_cb, |
| 63 const PipelineStatusCB& error_cb, | 63 const PipelineStatusCB& error_cb, |
| 64 const WallClockTimeCB& wall_clock_time_cb, | 64 const WallClockTimeCB& wall_clock_time_cb, |
| 65 const base::Closure& waiting_for_decryption_key_cb) override; | 65 const base::Closure& waiting_for_decryption_key_cb) override; |
| 66 void Flush(const base::Closure& callback) override; | 66 void Flush(const base::Closure& callback) override; |
| 67 void StartPlayingFrom(base::TimeDelta timestamp) override; | 67 void StartPlayingFrom(base::TimeDelta timestamp) override; |
| 68 void OnTimeStateChanged(bool time_progressing) override; |
| 68 | 69 |
| 69 // PlatformThread::Delegate implementation. | 70 // PlatformThread::Delegate implementation. |
| 70 void ThreadMain() override; | 71 void ThreadMain() override; |
| 71 | 72 |
| 72 void SetTickClockForTesting(scoped_ptr<base::TickClock> tick_clock); | 73 void SetTickClockForTesting(scoped_ptr<base::TickClock> tick_clock); |
| 73 | 74 |
| 74 private: | 75 private: |
| 75 // Creates a dedicated |thread_| for video rendering. | 76 // Creates a dedicated |thread_| for video rendering. |
| 76 void CreateVideoThread(); | 77 void CreateVideoThread(); |
| 77 | 78 |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 | 212 |
| 212 // NOTE: Weak pointers must be invalidated before all other member variables. | 213 // NOTE: Weak pointers must be invalidated before all other member variables. |
| 213 base::WeakPtrFactory<VideoRendererImpl> weak_factory_; | 214 base::WeakPtrFactory<VideoRendererImpl> weak_factory_; |
| 214 | 215 |
| 215 DISALLOW_COPY_AND_ASSIGN(VideoRendererImpl); | 216 DISALLOW_COPY_AND_ASSIGN(VideoRendererImpl); |
| 216 }; | 217 }; |
| 217 | 218 |
| 218 } // namespace media | 219 } // namespace media |
| 219 | 220 |
| 220 #endif // MEDIA_RENDERERS_VIDEO_RENDERER_IMPL_H_ | 221 #endif // MEDIA_RENDERERS_VIDEO_RENDERER_IMPL_H_ |
| OLD | NEW |