| Index: media/base/video_frame_pool.h
|
| diff --git a/media/base/video_frame_pool.h b/media/base/video_frame_pool.h
|
| index ebd0e249af2e7a9d4f792c4ccb23657c7b5a214c..6563417552b2904e76dda0c1760ffc8e920fbec4 100644
|
| --- a/media/base/video_frame_pool.h
|
| +++ b/media/base/video_frame_pool.h
|
| @@ -13,6 +13,8 @@
|
|
|
| namespace media {
|
|
|
| +class VideoFrameProvider;
|
| +
|
| // Simple VideoFrame pool used to avoid unnecessarily allocating and destroying
|
| // VideoFrame objects. The pool manages the memory for the VideoFrame
|
| // returned by CreateFrame(). When one of these VideoFrames is destroyed,
|
| @@ -24,6 +26,8 @@ namespace media {
|
| class MEDIA_EXPORT VideoFramePool {
|
| public:
|
| VideoFramePool();
|
| + explicit VideoFramePool(
|
| + std::unique_ptr<VideoFrameProvider> video_frame_provider);
|
| ~VideoFramePool();
|
|
|
| // Returns a frame from the pool that matches the specified
|
| @@ -37,7 +41,7 @@ class MEDIA_EXPORT VideoFramePool {
|
| const gfx::Size& natural_size,
|
| base::TimeDelta timestamp);
|
|
|
| -protected:
|
| + protected:
|
| friend class VideoFramePoolTest;
|
|
|
| // Returns the number of frames in the pool for testing purposes.
|
| @@ -45,6 +49,7 @@ protected:
|
|
|
| private:
|
| class PoolImpl;
|
| + std::unique_ptr<VideoFrameProvider> video_frame_provider_;
|
| scoped_refptr<PoolImpl> pool_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(VideoFramePool);
|
|
|