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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 MOCK_METHOD0(GetVideoEncodeAcceleratorSupportedProfiles, | 50 MOCK_METHOD0(GetVideoEncodeAcceleratorSupportedProfiles, |
51 VideoEncodeAccelerator::SupportedProfiles()); | 51 VideoEncodeAccelerator::SupportedProfiles()); |
52 | 52 |
53 std::unique_ptr<gfx::GpuMemoryBuffer> AllocateGpuMemoryBuffer( | 53 std::unique_ptr<gfx::GpuMemoryBuffer> AllocateGpuMemoryBuffer( |
54 const gfx::Size& size, | 54 const gfx::Size& size, |
55 gfx::BufferFormat format, | 55 gfx::BufferFormat format, |
56 gfx::BufferUsage usage) override; | 56 gfx::BufferUsage usage) override; |
57 | 57 |
58 bool ShouldUseGpuMemoryBuffersForVideoFrames() const override; | 58 bool ShouldUseGpuMemoryBuffersForVideoFrames() const override; |
59 unsigned ImageTextureTarget(gfx::BufferFormat format) override; | 59 unsigned ImageTextureTarget(gfx::BufferFormat format) override; |
60 OutputFormat VideoFrameOutputFormat() override { | 60 OutputFormat VideoFrameOutputFormat(VideoPixelFormat) override { |
61 return video_frame_output_format_; | 61 return video_frame_output_format_; |
62 }; | 62 }; |
63 | 63 |
64 std::unique_ptr<GpuVideoAcceleratorFactories::ScopedGLContextLock> | 64 std::unique_ptr<GpuVideoAcceleratorFactories::ScopedGLContextLock> |
65 GetGLContextLock() override; | 65 GetGLContextLock() override; |
66 | 66 |
67 void SetVideoFrameOutputFormat(const OutputFormat video_frame_output_format) { | 67 void SetVideoFrameOutputFormat(const OutputFormat video_frame_output_format) { |
68 video_frame_output_format_ = video_frame_output_format; | 68 video_frame_output_format_ = video_frame_output_format; |
69 }; | 69 }; |
70 | 70 |
(...skipping 20 matching lines...) Expand all Loading... |
91 OutputFormat video_frame_output_format_ = OutputFormat::I420; | 91 OutputFormat video_frame_output_format_ = OutputFormat::I420; |
92 | 92 |
93 bool fail_to_allocate_gpu_memory_buffer_ = false; | 93 bool fail_to_allocate_gpu_memory_buffer_ = false; |
94 | 94 |
95 gpu::gles2::GLES2Interface* gles2_; | 95 gpu::gles2::GLES2Interface* gles2_; |
96 }; | 96 }; |
97 | 97 |
98 } // namespace media | 98 } // namespace media |
99 | 99 |
100 #endif // MEDIA_RENDERERS_MOCK_GPU_VIDEO_ACCELERATOR_FACTORIES_H_ | 100 #endif // MEDIA_RENDERERS_MOCK_GPU_VIDEO_ACCELERATOR_FACTORIES_H_ |
OLD | NEW |