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 <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
53 // or false on failure. | 53 // or false on failure. |
54 bool CreateTextures(int32 count, | 54 bool CreateTextures(int32 count, |
55 const gfx::Size& size, | 55 const gfx::Size& size, |
56 std::vector<uint32>* texture_ids, | 56 std::vector<uint32>* texture_ids, |
57 std::vector<gpu::Mailbox>* texture_mailboxes, | 57 std::vector<gpu::Mailbox>* texture_mailboxes, |
58 uint32 texture_target) override; | 58 uint32 texture_target) override; |
59 void DeleteTexture(uint32 texture_id) override; | 59 void DeleteTexture(uint32 texture_id) override; |
60 void WaitSyncPoint(uint32 sync_point) override; | 60 void WaitSyncPoint(uint32 sync_point) override; |
61 scoped_ptr<base::SharedMemory> CreateSharedMemory(size_t size) override; | 61 scoped_ptr<base::SharedMemory> CreateSharedMemory(size_t size) override; |
62 scoped_refptr<base::SingleThreadTaskRunner> GetTaskRunner() override; | 62 scoped_refptr<base::SingleThreadTaskRunner> GetTaskRunner() override; |
63 | |
64 std::vector<media::VideoDecodeAccelerator::SupportedProfile> | |
65 GetVideoDecodeAcceleratorSupportedProfiles(bool* support_query_profile) | |
wuchengli
2015/03/18 08:02:38
bool GetVideoDecodeAcceleratorSupportedProfiles(st
henryhsu
2015/03/18 11:06:09
Done.
| |
66 override; | |
63 std::vector<media::VideoEncodeAccelerator::SupportedProfile> | 67 std::vector<media::VideoEncodeAccelerator::SupportedProfile> |
64 GetVideoEncodeAcceleratorSupportedProfiles() override; | 68 GetVideoEncodeAcceleratorSupportedProfiles() override; |
65 | 69 |
66 private: | 70 private: |
67 friend class base::RefCountedThreadSafe<RendererGpuVideoAcceleratorFactories>; | 71 friend class base::RefCountedThreadSafe<RendererGpuVideoAcceleratorFactories>; |
68 RendererGpuVideoAcceleratorFactories( | 72 RendererGpuVideoAcceleratorFactories( |
69 GpuChannelHost* gpu_channel_host, | 73 GpuChannelHost* gpu_channel_host, |
70 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner, | 74 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner, |
71 const scoped_refptr<ContextProviderCommandBuffer>& context_provider); | 75 const scoped_refptr<ContextProviderCommandBuffer>& context_provider); |
72 ~RendererGpuVideoAcceleratorFactories() override; | 76 ~RendererGpuVideoAcceleratorFactories() override; |
73 | 77 |
74 // Helper to bind |context_provider| to the |task_runner_| thread after | 78 // Helper to bind |context_provider| to the |task_runner_| thread after |
(...skipping 12 matching lines...) Expand all Loading... | |
87 | 91 |
88 // For sending requests to allocate shared memory in the Browser process. | 92 // For sending requests to allocate shared memory in the Browser process. |
89 scoped_refptr<ThreadSafeSender> thread_safe_sender_; | 93 scoped_refptr<ThreadSafeSender> thread_safe_sender_; |
90 | 94 |
91 DISALLOW_COPY_AND_ASSIGN(RendererGpuVideoAcceleratorFactories); | 95 DISALLOW_COPY_AND_ASSIGN(RendererGpuVideoAcceleratorFactories); |
92 }; | 96 }; |
93 | 97 |
94 } // namespace content | 98 } // namespace content |
95 | 99 |
96 #endif // CONTENT_RENDERER_MEDIA_RENDERER_GPU_VIDEO_ACCELERATOR_FACTORIES_H_ | 100 #endif // CONTENT_RENDERER_MEDIA_RENDERER_GPU_VIDEO_ACCELERATOR_FACTORIES_H_ |
OLD | NEW |