OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CC_VIDEO_FRAME_PROVIDER_H_ | 5 #ifndef CC_LAYERS_VIDEO_FRAME_PROVIDER_H_ |
6 #define CC_VIDEO_FRAME_PROVIDER_H_ | 6 #define CC_LAYERS_VIDEO_FRAME_PROVIDER_H_ |
7 | 7 |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 | 9 |
10 namespace media { | 10 namespace media { |
11 class VideoFrame; | 11 class VideoFrame; |
12 } | 12 } |
13 | 13 |
14 namespace cc { | 14 namespace cc { |
15 | 15 |
16 // Threading notes: This class may be used in a multi threaded manner. | 16 // Threading notes: This class may be used in a multi threaded manner. |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 // This function releases the lock on the video frame. It should always be | 50 // This function releases the lock on the video frame. It should always be |
51 // called after GetCurrentFrame(). Frames passed into this method | 51 // called after GetCurrentFrame(). Frames passed into this method |
52 // should no longer be referenced after the call is made. Only the current | 52 // should no longer be referenced after the call is made. Only the current |
53 // provider client should call this function. | 53 // provider client should call this function. |
54 virtual void PutCurrentFrame( | 54 virtual void PutCurrentFrame( |
55 const scoped_refptr<media::VideoFrame>& frame) = 0; | 55 const scoped_refptr<media::VideoFrame>& frame) = 0; |
56 }; | 56 }; |
57 | 57 |
58 } // namespace cc | 58 } // namespace cc |
59 | 59 |
60 #endif // CC_VIDEO_FRAME_PROVIDER_H_ | 60 #endif // CC_LAYERS_VIDEO_FRAME_PROVIDER_H_ |
OLD | NEW |