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_BLINK_VIDEO_FRAME_COMPOSITOR_H_ | 5 #ifndef MEDIA_BLINK_VIDEO_FRAME_COMPOSITOR_H_ |
6 #define MEDIA_BLINK_VIDEO_FRAME_COMPOSITOR_H_ | 6 #define MEDIA_BLINK_VIDEO_FRAME_COMPOSITOR_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 "cc/layers/video_frame_provider.h" | 10 #include "cc/layers/video_frame_provider.h" |
11 #include "media/base/media_export.h" | 11 #include "media/base/media_export.h" |
12 #include "ui/gfx/size.h" | 12 #include "ui/gfx/geometry/size.h" |
13 | 13 |
14 namespace media { | 14 namespace media { |
15 class VideoFrame; | 15 class VideoFrame; |
16 | 16 |
17 // VideoFrameCompositor handles incoming frames by notifying the compositor and | 17 // VideoFrameCompositor handles incoming frames by notifying the compositor and |
18 // dispatching callbacks when detecting changes in video frames. | 18 // dispatching callbacks when detecting changes in video frames. |
19 // | 19 // |
20 // Typical usage is to deliver ready-to-be-displayed video frames to | 20 // Typical usage is to deliver ready-to-be-displayed video frames to |
21 // UpdateCurrentFrame() so that VideoFrameCompositor can take care of tracking | 21 // UpdateCurrentFrame() so that VideoFrameCompositor can take care of tracking |
22 // changes in video frames and firing callbacks as needed. | 22 // changes in video frames and firing callbacks as needed. |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 cc::VideoFrameProvider::Client* client_; | 58 cc::VideoFrameProvider::Client* client_; |
59 | 59 |
60 scoped_refptr<VideoFrame> current_frame_; | 60 scoped_refptr<VideoFrame> current_frame_; |
61 | 61 |
62 DISALLOW_COPY_AND_ASSIGN(VideoFrameCompositor); | 62 DISALLOW_COPY_AND_ASSIGN(VideoFrameCompositor); |
63 }; | 63 }; |
64 | 64 |
65 } // namespace media | 65 } // namespace media |
66 | 66 |
67 #endif // MEDIA_BLINK_VIDEO_FRAME_COMPOSITOR_H_ | 67 #endif // MEDIA_BLINK_VIDEO_FRAME_COMPOSITOR_H_ |
OLD | NEW |