OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_FRAME_POOL_H_ | 5 #ifndef MEDIA_BASE_VIDEO_FRAME_POOL_H_ |
6 #define MEDIA_BASE_VIDEO_FRAME_POOL_H_ | 6 #define MEDIA_BASE_VIDEO_FRAME_POOL_H_ |
7 | 7 |
| 8 #include <stddef.h> |
| 9 |
8 #include "base/macros.h" | 10 #include "base/macros.h" |
9 #include "media/base/media_export.h" | 11 #include "media/base/media_export.h" |
10 #include "media/base/video_frame.h" | 12 #include "media/base/video_frame.h" |
11 | 13 |
12 namespace media { | 14 namespace media { |
13 | 15 |
14 // Simple VideoFrame pool used to avoid unnecessarily allocating and destroying | 16 // Simple VideoFrame pool used to avoid unnecessarily allocating and destroying |
15 // VideoFrame objects. The pool manages the memory for the VideoFrame | 17 // VideoFrame objects. The pool manages the memory for the VideoFrame |
16 // returned by CreateFrame(). When one of these VideoFrames is destroyed, | 18 // returned by CreateFrame(). When one of these VideoFrames is destroyed, |
17 // the memory is returned to the pool for use by a subsequent CreateFrame() | 19 // the memory is returned to the pool for use by a subsequent CreateFrame() |
(...skipping 26 matching lines...) Expand all Loading... |
44 private: | 46 private: |
45 class PoolImpl; | 47 class PoolImpl; |
46 scoped_refptr<PoolImpl> pool_; | 48 scoped_refptr<PoolImpl> pool_; |
47 | 49 |
48 DISALLOW_COPY_AND_ASSIGN(VideoFramePool); | 50 DISALLOW_COPY_AND_ASSIGN(VideoFramePool); |
49 }; | 51 }; |
50 | 52 |
51 } // namespace media | 53 } // namespace media |
52 | 54 |
53 #endif // MEDIA_BASE_VIDEO_FRAME_POOL_H_ | 55 #endif // MEDIA_BASE_VIDEO_FRAME_POOL_H_ |
OLD | NEW |