OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_VIDEO_RENDERER_SINK_H_ | 5 #ifndef MEDIA_BASE_VIDEO_RENDERER_SINK_H_ |
6 #define MEDIA_BASE_VIDEO_RENDERER_SINK_H_ | 6 #define MEDIA_BASE_VIDEO_RENDERER_SINK_H_ |
7 | 7 |
8 #include "base/basictypes.h" | |
9 #include "base/logging.h" | 8 #include "base/logging.h" |
10 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
11 #include "base/time/time.h" | 10 #include "base/time/time.h" |
12 #include "media/base/media_export.h" | 11 #include "media/base/media_export.h" |
13 #include "media/base/video_frame.h" | 12 #include "media/base/video_frame.h" |
14 | 13 |
15 namespace media { | 14 namespace media { |
16 | 15 |
17 // VideoRendererSink is an interface representing the end-point for rendered | 16 // VideoRendererSink is an interface representing the end-point for rendered |
18 // video frames. An implementation is expected to periodically call Render() on | 17 // video frames. An implementation is expected to periodically call Render() on |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 // TODO(dalecurtis): We may need OnSizeChanged() and OnOpacityChanged() | 63 // TODO(dalecurtis): We may need OnSizeChanged() and OnOpacityChanged() |
65 // methods on this interface if background rendering is handled inside of | 64 // methods on this interface if background rendering is handled inside of |
66 // the media layer instead of by VideoFrameCompositor. | 65 // the media layer instead of by VideoFrameCompositor. |
67 | 66 |
68 virtual ~VideoRendererSink() {} | 67 virtual ~VideoRendererSink() {} |
69 }; | 68 }; |
70 | 69 |
71 } // namespace media | 70 } // namespace media |
72 | 71 |
73 #endif // MEDIA_BASE_VIDEO_RENDERER_SINK_H_ | 72 #endif // MEDIA_BASE_VIDEO_RENDERER_SINK_H_ |
OLD | NEW |