Chromium Code Reviews| 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; | |
|
xhwang
2015/10/13 19:13:31
nit: add empty line
emircan
2015/10/13 19:17:35
Done.
| |
| 19 private: | |
| 20 std::vector<base::Closure>* frame_ready_cbs_; | |
| 21 }; | |
|
xhwang
2015/10/13 19:13:31
nit: add empty line
emircan
2015/10/13 19:17:36
Done.
| |
| 22 } // namespace media | |
| 23 | |
| 24 #endif // MEDIA_RENDERERS_MOCK_GPU_MEMORY_BUFFER_VIDEO_FRAME_POOL_H_ | |
| OLD | NEW |