| 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_RENDERERS_MOCK_GPU_VIDEO_ACCELERATOR_FACTORIES_H_ | 5 #ifndef MEDIA_RENDERERS_MOCK_GPU_VIDEO_ACCELERATOR_FACTORIES_H_ |
| 6 #define MEDIA_RENDERERS_MOCK_GPU_VIDEO_ACCELERATOR_FACTORIES_H_ | 6 #define MEDIA_RENDERERS_MOCK_GPU_VIDEO_ACCELERATOR_FACTORIES_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 namespace media { | 25 namespace media { |
| 26 | 26 |
| 27 class MockGpuVideoAcceleratorFactories : public GpuVideoAcceleratorFactories { | 27 class MockGpuVideoAcceleratorFactories : public GpuVideoAcceleratorFactories { |
| 28 public: | 28 public: |
| 29 explicit MockGpuVideoAcceleratorFactories(gpu::gles2::GLES2Interface* gles2); | 29 explicit MockGpuVideoAcceleratorFactories(gpu::gles2::GLES2Interface* gles2); |
| 30 ~MockGpuVideoAcceleratorFactories() override; | 30 ~MockGpuVideoAcceleratorFactories() override; |
| 31 | 31 |
| 32 bool IsGpuVideoAcceleratorEnabled() override; | 32 bool IsGpuVideoAcceleratorEnabled() override; |
| 33 | 33 |
| 34 MOCK_METHOD0(GetChannelToken, base::UnguessableToken()); | 34 MOCK_METHOD0(GetChannelToken, base::UnguessableToken()); |
| 35 MOCK_METHOD0(GetCommandBufferRouteId, int32_t()); |
| 35 | 36 |
| 36 // CreateVideo{Decode,Encode}Accelerator returns scoped_ptr, which the mocking | 37 // CreateVideo{Decode,Encode}Accelerator returns scoped_ptr, which the mocking |
| 37 // framework does not want. Trampoline them. | 38 // framework does not want. Trampoline them. |
| 38 MOCK_METHOD0(DoCreateVideoDecodeAccelerator, VideoDecodeAccelerator*()); | 39 MOCK_METHOD0(DoCreateVideoDecodeAccelerator, VideoDecodeAccelerator*()); |
| 39 MOCK_METHOD0(DoCreateVideoEncodeAccelerator, VideoEncodeAccelerator*()); | 40 MOCK_METHOD0(DoCreateVideoEncodeAccelerator, VideoEncodeAccelerator*()); |
| 40 | 41 |
| 41 MOCK_METHOD5(CreateTextures, | 42 MOCK_METHOD5(CreateTextures, |
| 42 bool(int32_t count, | 43 bool(int32_t count, |
| 43 const gfx::Size& size, | 44 const gfx::Size& size, |
| 44 std::vector<uint32_t>* texture_ids, | 45 std::vector<uint32_t>* texture_ids, |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 OutputFormat video_frame_output_format_ = OutputFormat::I420; | 95 OutputFormat video_frame_output_format_ = OutputFormat::I420; |
| 95 | 96 |
| 96 bool fail_to_allocate_gpu_memory_buffer_ = false; | 97 bool fail_to_allocate_gpu_memory_buffer_ = false; |
| 97 | 98 |
| 98 gpu::gles2::GLES2Interface* gles2_; | 99 gpu::gles2::GLES2Interface* gles2_; |
| 99 }; | 100 }; |
| 100 | 101 |
| 101 } // namespace media | 102 } // namespace media |
| 102 | 103 |
| 103 #endif // MEDIA_RENDERERS_MOCK_GPU_VIDEO_ACCELERATOR_FACTORIES_H_ | 104 #endif // MEDIA_RENDERERS_MOCK_GPU_VIDEO_ACCELERATOR_FACTORIES_H_ |
| OLD | NEW |