Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(397)

Side by Side Diff: media/renderers/mock_gpu_video_accelerator_factories.h

Issue 2121043002: 16 bpp video stream capture, render and WebGL usage - Realsense R200 & SR300 support. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Tests: cc, skcanvas_video_renderer, wrtcrecorder... Fake capture supports Y16. Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 MOCK_METHOD0(GetVideoEncodeAcceleratorSupportedProfiles, 49 MOCK_METHOD0(GetVideoEncodeAcceleratorSupportedProfiles,
50 VideoEncodeAccelerator::SupportedProfiles()); 50 VideoEncodeAccelerator::SupportedProfiles());
51 51
52 std::unique_ptr<gfx::GpuMemoryBuffer> AllocateGpuMemoryBuffer( 52 std::unique_ptr<gfx::GpuMemoryBuffer> AllocateGpuMemoryBuffer(
53 const gfx::Size& size, 53 const gfx::Size& size,
54 gfx::BufferFormat format, 54 gfx::BufferFormat format,
55 gfx::BufferUsage usage) override; 55 gfx::BufferUsage usage) override;
56 56
57 bool ShouldUseGpuMemoryBuffersForVideoFrames() const override; 57 bool ShouldUseGpuMemoryBuffersForVideoFrames() const override;
58 unsigned ImageTextureTarget(gfx::BufferFormat format) override; 58 unsigned ImageTextureTarget(gfx::BufferFormat format) override;
59 VideoPixelFormat VideoFrameOutputFormat() override { 59 VideoPixelFormat VideoFrameOutputFormat(VideoPixelFormat) override {
60 return video_frame_output_format_; 60 return video_frame_output_format_;
61 }; 61 };
62 62
63 std::unique_ptr<GpuVideoAcceleratorFactories::ScopedGLContextLock> 63 std::unique_ptr<GpuVideoAcceleratorFactories::ScopedGLContextLock>
64 GetGLContextLock() override; 64 GetGLContextLock() override;
65 65
66 void SetVideoFrameOutputFormat( 66 void SetVideoFrameOutputFormat(
67 const VideoPixelFormat video_frame_output_format) { 67 const VideoPixelFormat video_frame_output_format) {
68 video_frame_output_format_ = video_frame_output_format; 68 video_frame_output_format_ = video_frame_output_format;
69 }; 69 };
(...skipping 21 matching lines...) Expand all
91 VideoPixelFormat video_frame_output_format_ = PIXEL_FORMAT_I420; 91 VideoPixelFormat video_frame_output_format_ = PIXEL_FORMAT_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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698