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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 bool CreateTextures(int32 count, | 61 bool CreateTextures(int32 count, |
62 const gfx::Size& size, | 62 const gfx::Size& size, |
63 std::vector<uint32>* texture_ids, | 63 std::vector<uint32>* texture_ids, |
64 std::vector<gpu::Mailbox>* texture_mailboxes, | 64 std::vector<gpu::Mailbox>* texture_mailboxes, |
65 uint32 texture_target) override; | 65 uint32 texture_target) override; |
66 void DeleteTexture(uint32 texture_id) override; | 66 void DeleteTexture(uint32 texture_id) override; |
67 void WaitSyncPoint(uint32 sync_point) override; | 67 void WaitSyncPoint(uint32 sync_point) override; |
68 | 68 |
69 scoped_ptr<gfx::GpuMemoryBuffer> AllocateGpuMemoryBuffer( | 69 scoped_ptr<gfx::GpuMemoryBuffer> AllocateGpuMemoryBuffer( |
70 const gfx::Size& size, | 70 const gfx::Size& size, |
71 gfx::GpuMemoryBuffer::Format format, | 71 gfx::BufferFormat format, |
72 gfx::GpuMemoryBuffer::Usage usage) override; | 72 gfx::BufferUsage usage) override; |
73 | 73 |
74 bool IsTextureRGSupported() override; | 74 bool IsTextureRGSupported() override; |
75 unsigned ImageTextureTarget() override; | 75 unsigned ImageTextureTarget() override; |
76 gpu::gles2::GLES2Interface* GetGLES2Interface() override; | 76 gpu::gles2::GLES2Interface* GetGLES2Interface() override; |
77 scoped_ptr<base::SharedMemory> CreateSharedMemory(size_t size) override; | 77 scoped_ptr<base::SharedMemory> CreateSharedMemory(size_t size) override; |
78 scoped_refptr<base::SingleThreadTaskRunner> GetTaskRunner() override; | 78 scoped_refptr<base::SingleThreadTaskRunner> GetTaskRunner() override; |
79 | 79 |
80 std::vector<media::VideoDecodeAccelerator::SupportedProfile> | 80 std::vector<media::VideoDecodeAccelerator::SupportedProfile> |
81 GetVideoDecodeAcceleratorSupportedProfiles() override; | 81 GetVideoDecodeAcceleratorSupportedProfiles() override; |
82 std::vector<media::VideoEncodeAccelerator::SupportedProfile> | 82 std::vector<media::VideoEncodeAccelerator::SupportedProfile> |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 | 115 |
116 // For sending requests to allocate shared memory in the Browser process. | 116 // For sending requests to allocate shared memory in the Browser process. |
117 scoped_refptr<ThreadSafeSender> thread_safe_sender_; | 117 scoped_refptr<ThreadSafeSender> thread_safe_sender_; |
118 | 118 |
119 DISALLOW_COPY_AND_ASSIGN(RendererGpuVideoAcceleratorFactories); | 119 DISALLOW_COPY_AND_ASSIGN(RendererGpuVideoAcceleratorFactories); |
120 }; | 120 }; |
121 | 121 |
122 } // namespace content | 122 } // namespace content |
123 | 123 |
124 #endif // CONTENT_RENDERER_MEDIA_RENDERER_GPU_VIDEO_ACCELERATOR_FACTORIES_H_ | 124 #endif // CONTENT_RENDERER_MEDIA_RENDERER_GPU_VIDEO_ACCELERATOR_FACTORIES_H_ |
OLD | NEW |