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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 void DeleteTexture(uint32_t texture_id) override; | 72 void DeleteTexture(uint32_t texture_id) override; |
73 void WaitSyncToken(const gpu::SyncToken& sync_token) override; | 73 void WaitSyncToken(const gpu::SyncToken& sync_token) override; |
74 | 74 |
75 std::unique_ptr<gfx::GpuMemoryBuffer> AllocateGpuMemoryBuffer( | 75 std::unique_ptr<gfx::GpuMemoryBuffer> AllocateGpuMemoryBuffer( |
76 const gfx::Size& size, | 76 const gfx::Size& size, |
77 gfx::BufferFormat format, | 77 gfx::BufferFormat format, |
78 gfx::BufferUsage usage) override; | 78 gfx::BufferUsage usage) override; |
79 | 79 |
80 bool ShouldUseGpuMemoryBuffersForVideoFrames() const override; | 80 bool ShouldUseGpuMemoryBuffersForVideoFrames() const override; |
81 unsigned ImageTextureTarget(gfx::BufferFormat format) override; | 81 unsigned ImageTextureTarget(gfx::BufferFormat format) override; |
82 media::VideoPixelFormat VideoFrameOutputFormat() override; | 82 media::VideoPixelFormat VideoFrameOutputFormat( |
| 83 media::VideoPixelFormat) override; |
83 std::unique_ptr<media::GpuVideoAcceleratorFactories::ScopedGLContextLock> | 84 std::unique_ptr<media::GpuVideoAcceleratorFactories::ScopedGLContextLock> |
84 GetGLContextLock() override; | 85 GetGLContextLock() override; |
85 bool CheckContextLost(); | 86 bool CheckContextLost(); |
86 std::unique_ptr<base::SharedMemory> CreateSharedMemory(size_t size) override; | 87 std::unique_ptr<base::SharedMemory> CreateSharedMemory(size_t size) override; |
87 scoped_refptr<base::SingleThreadTaskRunner> GetTaskRunner() override; | 88 scoped_refptr<base::SingleThreadTaskRunner> GetTaskRunner() override; |
88 | 89 |
89 media::VideoDecodeAccelerator::Capabilities | 90 media::VideoDecodeAccelerator::Capabilities |
90 GetVideoDecodeAcceleratorCapabilities() override; | 91 GetVideoDecodeAcceleratorCapabilities() override; |
91 std::vector<media::VideoEncodeAccelerator::SupportedProfile> | 92 std::vector<media::VideoEncodeAccelerator::SupportedProfile> |
92 GetVideoEncodeAcceleratorSupportedProfiles() override; | 93 GetVideoEncodeAcceleratorSupportedProfiles() override; |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 | 129 |
129 // For sending requests to allocate shared memory in the Browser process. | 130 // For sending requests to allocate shared memory in the Browser process. |
130 scoped_refptr<ThreadSafeSender> thread_safe_sender_; | 131 scoped_refptr<ThreadSafeSender> thread_safe_sender_; |
131 | 132 |
132 DISALLOW_COPY_AND_ASSIGN(RendererGpuVideoAcceleratorFactories); | 133 DISALLOW_COPY_AND_ASSIGN(RendererGpuVideoAcceleratorFactories); |
133 }; | 134 }; |
134 | 135 |
135 } // namespace content | 136 } // namespace content |
136 | 137 |
137 #endif // CONTENT_RENDERER_MEDIA_RENDERER_GPU_VIDEO_ACCELERATOR_FACTORIES_H_ | 138 #endif // CONTENT_RENDERER_MEDIA_RENDERER_GPU_VIDEO_ACCELERATOR_FACTORIES_H_ |
OLD | NEW |