| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 VideoDecodeAccelerator::Capabilities()); | 47 VideoDecodeAccelerator::Capabilities()); |
| 48 MOCK_METHOD0(GetVideoEncodeAcceleratorSupportedProfiles, | 48 MOCK_METHOD0(GetVideoEncodeAcceleratorSupportedProfiles, |
| 49 VideoEncodeAccelerator::SupportedProfiles()); | 49 VideoEncodeAccelerator::SupportedProfiles()); |
| 50 | 50 |
| 51 scoped_ptr<gfx::GpuMemoryBuffer> AllocateGpuMemoryBuffer( | 51 scoped_ptr<gfx::GpuMemoryBuffer> AllocateGpuMemoryBuffer( |
| 52 const gfx::Size& size, | 52 const gfx::Size& size, |
| 53 gfx::BufferFormat format, | 53 gfx::BufferFormat format, |
| 54 gfx::BufferUsage usage) override; | 54 gfx::BufferUsage usage) override; |
| 55 | 55 |
| 56 bool ShouldUseGpuMemoryBuffersForVideoFrames() const override; | 56 bool ShouldUseGpuMemoryBuffersForVideoFrames() const override; |
| 57 unsigned ImageTextureTarget() override; | 57 std::vector<unsigned> ImageTextureTargets() override; |
| 58 VideoPixelFormat VideoFrameOutputFormat() override { | 58 VideoPixelFormat VideoFrameOutputFormat() override { |
| 59 return video_frame_output_format_; | 59 return video_frame_output_format_; |
| 60 }; | 60 }; |
| 61 | 61 |
| 62 scoped_ptr<GpuVideoAcceleratorFactories::ScopedGLContextLock> | 62 scoped_ptr<GpuVideoAcceleratorFactories::ScopedGLContextLock> |
| 63 GetGLContextLock() override; | 63 GetGLContextLock() override; |
| 64 | 64 |
| 65 void SetVideoFrameOutputFormat( | 65 void SetVideoFrameOutputFormat( |
| 66 const VideoPixelFormat video_frame_output_format) { | 66 const VideoPixelFormat video_frame_output_format) { |
| 67 video_frame_output_format_ = video_frame_output_format; | 67 video_frame_output_format_ = video_frame_output_format; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 86 VideoPixelFormat video_frame_output_format_ = PIXEL_FORMAT_I420; | 86 VideoPixelFormat video_frame_output_format_ = PIXEL_FORMAT_I420; |
| 87 | 87 |
| 88 bool fail_to_allocate_gpu_memory_buffer_ = false; | 88 bool fail_to_allocate_gpu_memory_buffer_ = false; |
| 89 | 89 |
| 90 gpu::gles2::GLES2Interface* gles2_; | 90 gpu::gles2::GLES2Interface* gles2_; |
| 91 }; | 91 }; |
| 92 | 92 |
| 93 } // namespace media | 93 } // namespace media |
| 94 | 94 |
| 95 #endif // MEDIA_RENDERERS_MOCK_GPU_VIDEO_ACCELERATOR_FACTORIES_H_ | 95 #endif // MEDIA_RENDERERS_MOCK_GPU_VIDEO_ACCELERATOR_FACTORIES_H_ |
| OLD | NEW |