| 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 virtual std::unique_ptr<VideoEncodeAccelerator> | 73 virtual std::unique_ptr<VideoEncodeAccelerator> |
| 74 CreateVideoEncodeAccelerator() = 0; | 74 CreateVideoEncodeAccelerator() = 0; |
| 75 | 75 |
| 76 // Allocate & delete native textures. | 76 // Allocate & delete native textures. |
| 77 virtual bool CreateTextures(int32_t count, | 77 virtual bool CreateTextures(int32_t count, |
| 78 const gfx::Size& size, | 78 const gfx::Size& size, |
| 79 std::vector<uint32_t>* texture_ids, | 79 std::vector<uint32_t>* texture_ids, |
| 80 std::vector<gpu::Mailbox>* texture_mailboxes, | 80 std::vector<gpu::Mailbox>* texture_mailboxes, |
| 81 uint32_t texture_target) = 0; | 81 uint32_t texture_target) = 0; |
| 82 virtual void DeleteTexture(uint32_t texture_id) = 0; | 82 virtual void DeleteTexture(uint32_t texture_id) = 0; |
| 83 virtual gpu::SyncToken CreateSyncToken() = 0; |
| 83 | 84 |
| 84 virtual void WaitSyncToken(const gpu::SyncToken& sync_token) = 0; | 85 virtual void WaitSyncToken(const gpu::SyncToken& sync_token) = 0; |
| 85 | 86 |
| 86 virtual std::unique_ptr<gfx::GpuMemoryBuffer> AllocateGpuMemoryBuffer( | 87 virtual std::unique_ptr<gfx::GpuMemoryBuffer> AllocateGpuMemoryBuffer( |
| 87 const gfx::Size& size, | 88 const gfx::Size& size, |
| 88 gfx::BufferFormat format, | 89 gfx::BufferFormat format, |
| 89 gfx::BufferUsage usage) = 0; | 90 gfx::BufferUsage usage) = 0; |
| 90 | 91 |
| 91 virtual bool ShouldUseGpuMemoryBuffersForVideoFrames() const = 0; | 92 virtual bool ShouldUseGpuMemoryBuffersForVideoFrames() const = 0; |
| 92 virtual unsigned ImageTextureTarget(gfx::BufferFormat format) = 0; | 93 virtual unsigned ImageTextureTarget(gfx::BufferFormat format) = 0; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 113 GetVideoEncodeAcceleratorSupportedProfiles() = 0; | 114 GetVideoEncodeAcceleratorSupportedProfiles() = 0; |
| 114 | 115 |
| 115 protected: | 116 protected: |
| 116 friend class base::RefCounted<GpuVideoAcceleratorFactories>; | 117 friend class base::RefCounted<GpuVideoAcceleratorFactories>; |
| 117 virtual ~GpuVideoAcceleratorFactories() {} | 118 virtual ~GpuVideoAcceleratorFactories() {} |
| 118 }; | 119 }; |
| 119 | 120 |
| 120 } // namespace media | 121 } // namespace media |
| 121 | 122 |
| 122 #endif // MEDIA_RENDERERS_GPU_VIDEO_ACCELERATOR_FACTORIES_H_ | 123 #endif // MEDIA_RENDERERS_GPU_VIDEO_ACCELERATOR_FACTORIES_H_ |
| OLD | NEW |