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

Side by Side Diff: content/renderer/media/renderer_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 | « no previous file | content/renderer/media/renderer_gpu_video_accelerator_factories.cc » ('j') | 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 CONTENT_RENDERER_MEDIA_RENDERER_GPU_VIDEO_ACCELERATOR_FACTORIES_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_RENDERER_GPU_VIDEO_ACCELERATOR_FACTORIES_H_
6 #define CONTENT_RENDERER_MEDIA_RENDERER_GPU_VIDEO_ACCELERATOR_FACTORIES_H_ 6 #define CONTENT_RENDERER_MEDIA_RENDERER_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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 main_thread_task_runner, 52 main_thread_task_runner,
53 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner, 53 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner,
54 const scoped_refptr<ui::ContextProviderCommandBuffer>& context_provider, 54 const scoped_refptr<ui::ContextProviderCommandBuffer>& context_provider,
55 bool enable_gpu_memory_buffer_video_frames, 55 bool enable_gpu_memory_buffer_video_frames,
56 const cc::BufferToTextureTargetMap& image_texture_targets, 56 const cc::BufferToTextureTargetMap& image_texture_targets,
57 bool enable_video_accelerator); 57 bool enable_video_accelerator);
58 58
59 // media::GpuVideoAcceleratorFactories implementation. 59 // media::GpuVideoAcceleratorFactories implementation.
60 bool IsGpuVideoAcceleratorEnabled() override; 60 bool IsGpuVideoAcceleratorEnabled() override;
61 base::UnguessableToken GetChannelToken() override; 61 base::UnguessableToken GetChannelToken() override;
62 int32_t GetCommandBufferRouteId() override;
62 std::unique_ptr<media::VideoDecodeAccelerator> CreateVideoDecodeAccelerator() 63 std::unique_ptr<media::VideoDecodeAccelerator> CreateVideoDecodeAccelerator()
63 override; 64 override;
64 std::unique_ptr<media::VideoEncodeAccelerator> CreateVideoEncodeAccelerator() 65 std::unique_ptr<media::VideoEncodeAccelerator> CreateVideoEncodeAccelerator()
65 override; 66 override;
66 // Creates textures and produces them into mailboxes. Returns true on success 67 // Creates textures and produces them into mailboxes. Returns true on success
67 // or false on failure. 68 // or false on failure.
68 bool CreateTextures(int32_t count, 69 bool CreateTextures(int32_t count,
69 const gfx::Size& size, 70 const gfx::Size& size,
70 std::vector<uint32_t>* texture_ids, 71 std::vector<uint32_t>* texture_ids,
71 std::vector<gpu::Mailbox>* texture_mailboxes, 72 std::vector<gpu::Mailbox>* texture_mailboxes,
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 133
133 // For sending requests to allocate shared memory in the Browser process. 134 // For sending requests to allocate shared memory in the Browser process.
134 scoped_refptr<ThreadSafeSender> thread_safe_sender_; 135 scoped_refptr<ThreadSafeSender> thread_safe_sender_;
135 136
136 DISALLOW_COPY_AND_ASSIGN(RendererGpuVideoAcceleratorFactories); 137 DISALLOW_COPY_AND_ASSIGN(RendererGpuVideoAcceleratorFactories);
137 }; 138 };
138 139
139 } // namespace content 140 } // namespace content
140 141
141 #endif // CONTENT_RENDERER_MEDIA_RENDERER_GPU_VIDEO_ACCELERATOR_FACTORIES_H_ 142 #endif // CONTENT_RENDERER_MEDIA_RENDERER_GPU_VIDEO_ACCELERATOR_FACTORIES_H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/media/renderer_gpu_video_accelerator_factories.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698