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