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 MEDIA_RENDERERS_GPU_VIDEO_ACCELERATOR_FACTORIES_H_ | 5 #ifndef MEDIA_RENDERERS_GPU_VIDEO_ACCELERATOR_FACTORIES_H_ |
6 #define MEDIA_RENDERERS_GPU_VIDEO_ACCELERATOR_FACTORIES_H_ | 6 #define MEDIA_RENDERERS_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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 virtual bool CreateTextures(int32_t count, | 90 virtual bool CreateTextures(int32_t count, |
91 const gfx::Size& size, | 91 const gfx::Size& size, |
92 std::vector<uint32_t>* texture_ids, | 92 std::vector<uint32_t>* texture_ids, |
93 std::vector<gpu::Mailbox>* texture_mailboxes, | 93 std::vector<gpu::Mailbox>* texture_mailboxes, |
94 uint32_t texture_target) = 0; | 94 uint32_t texture_target) = 0; |
95 virtual void DeleteTexture(uint32_t texture_id) = 0; | 95 virtual void DeleteTexture(uint32_t texture_id) = 0; |
96 virtual gpu::SyncToken CreateSyncToken() = 0; | 96 virtual gpu::SyncToken CreateSyncToken() = 0; |
97 | 97 |
98 virtual void WaitSyncToken(const gpu::SyncToken& sync_token) = 0; | 98 virtual void WaitSyncToken(const gpu::SyncToken& sync_token) = 0; |
99 | 99 |
100 virtual std::unique_ptr<gfx::GpuMemoryBuffer> AllocateGpuMemoryBuffer( | 100 virtual std::unique_ptr<gfx::GpuMemoryBuffer> CreateGpuMemoryBuffer( |
101 const gfx::Size& size, | 101 const gfx::Size& size, |
102 gfx::BufferFormat format, | 102 gfx::BufferFormat format, |
103 gfx::BufferUsage usage) = 0; | 103 gfx::BufferUsage usage) = 0; |
104 | 104 |
105 virtual bool ShouldUseGpuMemoryBuffersForVideoFrames() const = 0; | 105 virtual bool ShouldUseGpuMemoryBuffersForVideoFrames() const = 0; |
106 virtual unsigned ImageTextureTarget(gfx::BufferFormat format) = 0; | 106 virtual unsigned ImageTextureTarget(gfx::BufferFormat format) = 0; |
107 // Pixel format of the hardware video frames created when GpuMemoryBuffers | 107 // Pixel format of the hardware video frames created when GpuMemoryBuffers |
108 // video frames are enabled. | 108 // video frames are enabled. |
109 virtual OutputFormat VideoFrameOutputFormat() = 0; | 109 virtual OutputFormat VideoFrameOutputFormat() = 0; |
110 | 110 |
(...skipping 16 matching lines...) Expand all Loading... |
127 GetVideoEncodeAcceleratorSupportedProfiles() = 0; | 127 GetVideoEncodeAcceleratorSupportedProfiles() = 0; |
128 | 128 |
129 protected: | 129 protected: |
130 friend class base::RefCounted<GpuVideoAcceleratorFactories>; | 130 friend class base::RefCounted<GpuVideoAcceleratorFactories>; |
131 virtual ~GpuVideoAcceleratorFactories() {} | 131 virtual ~GpuVideoAcceleratorFactories() {} |
132 }; | 132 }; |
133 | 133 |
134 } // namespace media | 134 } // namespace media |
135 | 135 |
136 #endif // MEDIA_RENDERERS_GPU_VIDEO_ACCELERATOR_FACTORIES_H_ | 136 #endif // MEDIA_RENDERERS_GPU_VIDEO_ACCELERATOR_FACTORIES_H_ |
OLD | NEW |