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_RENDERERS_MOCK_GPU_MEMORY_BUFFER_VIDEO_FRAME_POOL_H_ | 5 #ifndef MEDIA_RENDERERS_MOCK_GPU_MEMORY_BUFFER_VIDEO_FRAME_POOL_H_ |
6 #define MEDIA_RENDERERS_MOCK_GPU_MEMORY_BUFFER_VIDEO_FRAME_POOL_H_ | 6 #define MEDIA_RENDERERS_MOCK_GPU_MEMORY_BUFFER_VIDEO_FRAME_POOL_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "media/video/gpu_memory_buffer_video_frame_pool.h" | 9 #include "media/video/gpu_memory_buffer_video_frame_copier.h" |
10 | 10 |
11 namespace media { | 11 namespace media { |
12 | 12 |
13 class MockGpuMemoryBufferVideoFramePool : public GpuMemoryBufferVideoFramePool { | 13 class MockGpuMemoryBufferVideoFrameCopier |
| 14 : public GpuMemoryBufferVideoFrameCopier { |
14 public: | 15 public: |
15 MockGpuMemoryBufferVideoFramePool(std::vector<base::Closure>* frame_ready_cbs) | 16 MockGpuMemoryBufferVideoFrameCopier( |
| 17 std::vector<base::Closure>* frame_ready_cbs) |
16 : frame_ready_cbs_(frame_ready_cbs) {} | 18 : frame_ready_cbs_(frame_ready_cbs) {} |
17 void MaybeCreateHardwareFrame(const scoped_refptr<VideoFrame>& video_frame, | 19 void MaybeCreateHardwareFrame(const scoped_refptr<VideoFrame>& video_frame, |
18 const FrameReadyCB& frame_ready_cb) override; | 20 const FrameReadyCB& frame_ready_cb) override; |
19 | 21 |
20 private: | 22 private: |
21 std::vector<base::Closure>* frame_ready_cbs_; | 23 std::vector<base::Closure>* frame_ready_cbs_; |
22 }; | 24 }; |
23 | 25 |
24 } // namespace media | 26 } // namespace media |
25 | 27 |
26 #endif // MEDIA_RENDERERS_MOCK_GPU_MEMORY_BUFFER_VIDEO_FRAME_POOL_H_ | 28 #endif // MEDIA_RENDERERS_MOCK_GPU_MEMORY_BUFFER_VIDEO_FRAME_POOL_H_ |
OLD | NEW |