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_FILTERS_VIDEO_FRAME_SCHEDULER_H_ | 5 #ifndef MEDIA_FILTERS_VIDEO_FRAME_SCHEDULER_H_ |
6 #define MEDIA_FILTERS_VIDEO_FRAME_SCHEDULER_H_ | 6 #define MEDIA_FILTERS_VIDEO_FRAME_SCHEDULER_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "base/time/time.h" |
10 #include "media/base/media_export.h" | 11 #include "media/base/media_export.h" |
11 | 12 |
12 namespace media { | 13 namespace media { |
13 | 14 |
14 class VideoFrame; | 15 class VideoFrame; |
15 | 16 |
16 // Defines an abstract video frame scheduler that is capable of managing the | 17 // Defines an abstract video frame scheduler that is capable of managing the |
17 // display of video frames at explicit times. | 18 // display of video frames at explicit times. |
18 class MEDIA_EXPORT VideoFrameScheduler { | 19 class MEDIA_EXPORT VideoFrameScheduler { |
19 public: | 20 public: |
(...skipping 14 matching lines...) Expand all Loading... |
34 const DoneCB& done_cb) = 0; | 35 const DoneCB& done_cb) = 0; |
35 | 36 |
36 // Causes the scheduler to release all previously scheduled frames. Frames | 37 // Causes the scheduler to release all previously scheduled frames. Frames |
37 // will be returned as RESET. | 38 // will be returned as RESET. |
38 virtual void Reset() = 0; | 39 virtual void Reset() = 0; |
39 }; | 40 }; |
40 | 41 |
41 } // namespace media | 42 } // namespace media |
42 | 43 |
43 #endif // MEDIA_FILTERS_VIDEO_FRAME_SCHEDULER_H_ | 44 #endif // MEDIA_FILTERS_VIDEO_FRAME_SCHEDULER_H_ |
OLD | NEW |