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" | 8 #include "base/basictypes.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 // liberally if no new frames are expected. | 49 // liberally if no new frames are expected. |
50 virtual void Stop() = 0; | 50 virtual void Stop() = 0; |
51 | 51 |
52 // Instead of using a callback driven rendering path, allow clients to paint | 52 // Instead of using a callback driven rendering path, allow clients to paint |
53 // frames as they see fit without regard for the compositor. | 53 // frames as they see fit without regard for the compositor. |
54 // TODO(dalecurtis): This should be nuked once experiments show the new path | 54 // TODO(dalecurtis): This should be nuked once experiments show the new path |
55 // is amazing and the old path is not! http://crbug.com/439548 | 55 // is amazing and the old path is not! http://crbug.com/439548 |
56 virtual void PaintFrameUsingOldRenderingPath( | 56 virtual void PaintFrameUsingOldRenderingPath( |
57 const scoped_refptr<VideoFrame>& frame) = 0; | 57 const scoped_refptr<VideoFrame>& frame) = 0; |
58 | 58 |
| 59 // TODO(dalecurtis): We may need OnSizeChanged() and OnOpacityChanged() |
| 60 // methods on this interface if background rendering is handled inside of |
| 61 // the media layer instead of by VideoFrameCompositor. |
| 62 |
59 virtual ~VideoRendererSink() {} | 63 virtual ~VideoRendererSink() {} |
60 }; | 64 }; |
61 | 65 |
62 } // namespace media | 66 } // namespace media |
63 | 67 |
64 #endif // MEDIA_BASE_VIDEO_RENDERER_SINK_H_ | 68 #endif // MEDIA_BASE_VIDEO_RENDERER_SINK_H_ |
OLD | NEW |