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

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

Issue 2526953003: Add MediaGpuChannelManager::LookupChannel(). (Closed)
Patch Set: Implement MockGpuVideoAcceleratorFactories::GetCommandBufferRouteId(). 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
« no previous file with comments | « media/renderers/gpu_video_accelerator_factories.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 14 matching lines...) Expand all
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 IsGpuVideoAcceleratorEnabled() override;
33 33
34 MOCK_METHOD0(GetChannelToken, base::UnguessableToken()); 34 MOCK_METHOD0(GetChannelToken, base::UnguessableToken());
35 MOCK_METHOD0(GetCommandBufferRouteId, int32_t());
35 36
36 // CreateVideo{Decode,Encode}Accelerator returns scoped_ptr, which the mocking 37 // CreateVideo{Decode,Encode}Accelerator returns scoped_ptr, which the mocking
37 // framework does not want. Trampoline them. 38 // framework does not want. Trampoline them.
38 MOCK_METHOD0(DoCreateVideoDecodeAccelerator, VideoDecodeAccelerator*()); 39 MOCK_METHOD0(DoCreateVideoDecodeAccelerator, VideoDecodeAccelerator*());
39 MOCK_METHOD0(DoCreateVideoEncodeAccelerator, VideoEncodeAccelerator*()); 40 MOCK_METHOD0(DoCreateVideoEncodeAccelerator, VideoEncodeAccelerator*());
40 41
41 MOCK_METHOD5(CreateTextures, 42 MOCK_METHOD5(CreateTextures,
42 bool(int32_t count, 43 bool(int32_t count,
43 const gfx::Size& size, 44 const gfx::Size& size,
44 std::vector<uint32_t>* texture_ids, 45 std::vector<uint32_t>* texture_ids,
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 OutputFormat video_frame_output_format_ = OutputFormat::I420; 95 OutputFormat video_frame_output_format_ = OutputFormat::I420;
95 96
96 bool fail_to_allocate_gpu_memory_buffer_ = false; 97 bool fail_to_allocate_gpu_memory_buffer_ = false;
97 98
98 gpu::gles2::GLES2Interface* gles2_; 99 gpu::gles2::GLES2Interface* gles2_;
99 }; 100 };
100 101
101 } // namespace media 102 } // namespace media
102 103
103 #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') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698