| 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 scoped_ptr<media::VideoEncodeAccelerator> CreateVideoEncodeAccelerator() | 59 scoped_ptr<media::VideoEncodeAccelerator> CreateVideoEncodeAccelerator() |
| 60 override; | 60 override; |
| 61 // Creates textures and produces them into mailboxes. Returns true on success | 61 // Creates textures and produces them into mailboxes. Returns true on success |
| 62 // or false on failure. | 62 // or false on failure. |
| 63 bool CreateTextures(int32 count, | 63 bool CreateTextures(int32 count, |
| 64 const gfx::Size& size, | 64 const gfx::Size& size, |
| 65 std::vector<uint32>* texture_ids, | 65 std::vector<uint32>* texture_ids, |
| 66 std::vector<gpu::Mailbox>* texture_mailboxes, | 66 std::vector<gpu::Mailbox>* texture_mailboxes, |
| 67 uint32 texture_target) override; | 67 uint32 texture_target) override; |
| 68 void DeleteTexture(uint32 texture_id) override; | 68 void DeleteTexture(uint32 texture_id) override; |
| 69 void WaitSyncPoint(uint32 sync_point) override; | 69 void WaitSyncToken(const gpu::SyncToken& sync_token) override; |
| 70 | 70 |
| 71 scoped_ptr<gfx::GpuMemoryBuffer> AllocateGpuMemoryBuffer( | 71 scoped_ptr<gfx::GpuMemoryBuffer> AllocateGpuMemoryBuffer( |
| 72 const gfx::Size& size, | 72 const gfx::Size& size, |
| 73 gfx::BufferFormat format, | 73 gfx::BufferFormat format, |
| 74 gfx::BufferUsage usage) override; | 74 gfx::BufferUsage usage) override; |
| 75 | 75 |
| 76 bool ShouldUseGpuMemoryBuffersForVideoFrames() const override; | 76 bool ShouldUseGpuMemoryBuffersForVideoFrames() const override; |
| 77 unsigned ImageTextureTarget() override; | 77 unsigned ImageTextureTarget() override; |
| 78 media::VideoPixelFormat VideoFrameOutputFormat() override; | 78 media::VideoPixelFormat VideoFrameOutputFormat() override; |
| 79 scoped_ptr<media::GpuVideoAcceleratorFactories::ScopedGLContextLock> | 79 scoped_ptr<media::GpuVideoAcceleratorFactories::ScopedGLContextLock> |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 | 124 |
| 125 // For sending requests to allocate shared memory in the Browser process. | 125 // For sending requests to allocate shared memory in the Browser process. |
| 126 scoped_refptr<ThreadSafeSender> thread_safe_sender_; | 126 scoped_refptr<ThreadSafeSender> thread_safe_sender_; |
| 127 | 127 |
| 128 DISALLOW_COPY_AND_ASSIGN(RendererGpuVideoAcceleratorFactories); | 128 DISALLOW_COPY_AND_ASSIGN(RendererGpuVideoAcceleratorFactories); |
| 129 }; | 129 }; |
| 130 | 130 |
| 131 } // namespace content | 131 } // namespace content |
| 132 | 132 |
| 133 #endif // CONTENT_RENDERER_MEDIA_RENDERER_GPU_VIDEO_ACCELERATOR_FACTORIES_H_ | 133 #endif // CONTENT_RENDERER_MEDIA_RENDERER_GPU_VIDEO_ACCELERATOR_FACTORIES_H_ |
| OLD | NEW |