| 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 24 matching lines...) Expand all Loading... |
| 35 MOCK_METHOD0(DoCreateVideoDecodeAccelerator, VideoDecodeAccelerator*()); | 35 MOCK_METHOD0(DoCreateVideoDecodeAccelerator, VideoDecodeAccelerator*()); |
| 36 MOCK_METHOD0(DoCreateVideoEncodeAccelerator, VideoEncodeAccelerator*()); | 36 MOCK_METHOD0(DoCreateVideoEncodeAccelerator, VideoEncodeAccelerator*()); |
| 37 | 37 |
| 38 MOCK_METHOD5(CreateTextures, | 38 MOCK_METHOD5(CreateTextures, |
| 39 bool(int32_t count, | 39 bool(int32_t count, |
| 40 const gfx::Size& size, | 40 const gfx::Size& size, |
| 41 std::vector<uint32_t>* texture_ids, | 41 std::vector<uint32_t>* texture_ids, |
| 42 std::vector<gpu::Mailbox>* texture_mailboxes, | 42 std::vector<gpu::Mailbox>* texture_mailboxes, |
| 43 uint32_t texture_target)); | 43 uint32_t texture_target)); |
| 44 MOCK_METHOD1(DeleteTexture, void(uint32_t texture_id)); | 44 MOCK_METHOD1(DeleteTexture, void(uint32_t texture_id)); |
| 45 MOCK_METHOD0(CreateSyncToken, gpu::SyncToken()); |
| 45 MOCK_METHOD1(WaitSyncToken, void(const gpu::SyncToken& sync_token)); | 46 MOCK_METHOD1(WaitSyncToken, void(const gpu::SyncToken& sync_token)); |
| 46 MOCK_METHOD0(GetTaskRunner, scoped_refptr<base::SingleThreadTaskRunner>()); | 47 MOCK_METHOD0(GetTaskRunner, scoped_refptr<base::SingleThreadTaskRunner>()); |
| 47 MOCK_METHOD0(GetVideoDecodeAcceleratorCapabilities, | 48 MOCK_METHOD0(GetVideoDecodeAcceleratorCapabilities, |
| 48 VideoDecodeAccelerator::Capabilities()); | 49 VideoDecodeAccelerator::Capabilities()); |
| 49 MOCK_METHOD0(GetVideoEncodeAcceleratorSupportedProfiles, | 50 MOCK_METHOD0(GetVideoEncodeAcceleratorSupportedProfiles, |
| 50 VideoEncodeAccelerator::SupportedProfiles()); | 51 VideoEncodeAccelerator::SupportedProfiles()); |
| 51 | 52 |
| 52 std::unique_ptr<gfx::GpuMemoryBuffer> AllocateGpuMemoryBuffer( | 53 std::unique_ptr<gfx::GpuMemoryBuffer> AllocateGpuMemoryBuffer( |
| 53 const gfx::Size& size, | 54 const gfx::Size& size, |
| 54 gfx::BufferFormat format, | 55 gfx::BufferFormat format, |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 VideoPixelFormat video_frame_output_format_ = PIXEL_FORMAT_I420; | 92 VideoPixelFormat video_frame_output_format_ = PIXEL_FORMAT_I420; |
| 92 | 93 |
| 93 bool fail_to_allocate_gpu_memory_buffer_ = false; | 94 bool fail_to_allocate_gpu_memory_buffer_ = false; |
| 94 | 95 |
| 95 gpu::gles2::GLES2Interface* gles2_; | 96 gpu::gles2::GLES2Interface* gles2_; |
| 96 }; | 97 }; |
| 97 | 98 |
| 98 } // namespace media | 99 } // namespace media |
| 99 | 100 |
| 100 #endif // MEDIA_RENDERERS_MOCK_GPU_VIDEO_ACCELERATOR_FACTORIES_H_ | 101 #endif // MEDIA_RENDERERS_MOCK_GPU_VIDEO_ACCELERATOR_FACTORIES_H_ |
| OLD | NEW |