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

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

Issue 2656183002: Change effect of flag kDisableAcceleratedVideoDecode to only affect decode
Patch Set: Created 3 years, 11 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 11 matching lines...) Expand all
22 class SharedMemory; 22 class SharedMemory;
23 } 23 }
24 24
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 IsGpuVideoDecodeAcceleratorEnabled() override;
33 33
34 MOCK_METHOD0(GetChannelToken, base::UnguessableToken()); 34 MOCK_METHOD0(GetChannelToken, base::UnguessableToken());
35 MOCK_METHOD0(GetCommandBufferRouteId, int32_t()); 35 MOCK_METHOD0(GetCommandBufferRouteId, int32_t());
36 36
37 // CreateVideo{Decode,Encode}Accelerator returns scoped_ptr, which the mocking 37 // CreateVideo{Decode,Encode}Accelerator returns scoped_ptr, which the mocking
38 // framework does not want. Trampoline them. 38 // framework does not want. Trampoline them.
39 MOCK_METHOD0(DoCreateVideoDecodeAccelerator, VideoDecodeAccelerator*()); 39 MOCK_METHOD0(DoCreateVideoDecodeAccelerator, VideoDecodeAccelerator*());
40 MOCK_METHOD0(DoCreateVideoEncodeAccelerator, VideoEncodeAccelerator*()); 40 MOCK_METHOD0(DoCreateVideoEncodeAccelerator, VideoEncodeAccelerator*());
41 41
42 MOCK_METHOD5(CreateTextures, 42 MOCK_METHOD5(CreateTextures,
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 OutputFormat video_frame_output_format_ = OutputFormat::I420; 95 OutputFormat video_frame_output_format_ = OutputFormat::I420;
96 96
97 bool fail_to_allocate_gpu_memory_buffer_ = false; 97 bool fail_to_allocate_gpu_memory_buffer_ = false;
98 98
99 gpu::gles2::GLES2Interface* gles2_; 99 gpu::gles2::GLES2Interface* gles2_;
100 }; 100 };
101 101
102 } // namespace media 102 } // namespace media
103 103
104 #endif // MEDIA_RENDERERS_MOCK_GPU_VIDEO_ACCELERATOR_FACTORIES_H_ 104 #endif // MEDIA_RENDERERS_MOCK_GPU_VIDEO_ACCELERATOR_FACTORIES_H_
OLDNEW
« no previous file with comments | « media/renderers/gpu_video_accelerator_factories.h ('k') | media/renderers/mock_gpu_video_accelerator_factories.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698