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 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 main_thread_task_runner, | 49 main_thread_task_runner, |
50 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner, | 50 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner, |
51 const scoped_refptr<ContextProviderCommandBuffer>& context_provider, | 51 const scoped_refptr<ContextProviderCommandBuffer>& context_provider, |
52 bool enable_gpu_memory_buffer_video_frames, | 52 bool enable_gpu_memory_buffer_video_frames, |
53 const cc::BufferToTextureTargetMap& image_texture_targets, | 53 const cc::BufferToTextureTargetMap& image_texture_targets, |
54 bool enable_video_accelerator); | 54 bool enable_video_accelerator); |
55 | 55 |
56 // media::GpuVideoAcceleratorFactories implementation. | 56 // media::GpuVideoAcceleratorFactories implementation. |
57 bool IsGpuVideoAcceleratorEnabled() override; | 57 bool IsGpuVideoAcceleratorEnabled() override; |
58 base::UnguessableToken GetChannelToken() override; | 58 base::UnguessableToken GetChannelToken() override; |
| 59 int32_t GetCommandBufferRouteId() override; |
59 std::unique_ptr<media::VideoDecodeAccelerator> CreateVideoDecodeAccelerator() | 60 std::unique_ptr<media::VideoDecodeAccelerator> CreateVideoDecodeAccelerator() |
60 override; | 61 override; |
61 std::unique_ptr<media::VideoEncodeAccelerator> CreateVideoEncodeAccelerator() | 62 std::unique_ptr<media::VideoEncodeAccelerator> CreateVideoEncodeAccelerator() |
62 override; | 63 override; |
63 // Creates textures and produces them into mailboxes. Returns true on success | 64 // Creates textures and produces them into mailboxes. Returns true on success |
64 // or false on failure. | 65 // or false on failure. |
65 bool CreateTextures(int32_t count, | 66 bool CreateTextures(int32_t count, |
66 const gfx::Size& size, | 67 const gfx::Size& size, |
67 std::vector<uint32_t>* texture_ids, | 68 std::vector<uint32_t>* texture_ids, |
68 std::vector<gpu::Mailbox>* texture_mailboxes, | 69 std::vector<gpu::Mailbox>* texture_mailboxes, |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 | 130 |
130 // For sending requests to allocate shared memory in the Browser process. | 131 // For sending requests to allocate shared memory in the Browser process. |
131 scoped_refptr<ThreadSafeSender> thread_safe_sender_; | 132 scoped_refptr<ThreadSafeSender> thread_safe_sender_; |
132 | 133 |
133 DISALLOW_COPY_AND_ASSIGN(RendererGpuVideoAcceleratorFactories); | 134 DISALLOW_COPY_AND_ASSIGN(RendererGpuVideoAcceleratorFactories); |
134 }; | 135 }; |
135 | 136 |
136 } // namespace content | 137 } // namespace content |
137 | 138 |
138 #endif // CONTENT_RENDERER_MEDIA_RENDERER_GPU_VIDEO_ACCELERATOR_FACTORIES_H_ | 139 #endif // CONTENT_RENDERER_MEDIA_RENDERER_GPU_VIDEO_ACCELERATOR_FACTORIES_H_ |
OLD | NEW |