Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(558)

Side by Side Diff: content/renderer/media/renderer_gpu_video_accelerator_factories.h

Issue 2526683002: gpu: Rename AllocateGpuMemoryBuffer to CreateGpuMemoryBuffer. (Closed)
Patch Set: . Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 // or false on failure. 64 // or false on failure.
65 bool CreateTextures(int32_t count, 65 bool CreateTextures(int32_t count,
66 const gfx::Size& size, 66 const gfx::Size& size,
67 std::vector<uint32_t>* texture_ids, 67 std::vector<uint32_t>* texture_ids,
68 std::vector<gpu::Mailbox>* texture_mailboxes, 68 std::vector<gpu::Mailbox>* texture_mailboxes,
69 uint32_t texture_target) override; 69 uint32_t texture_target) override;
70 void DeleteTexture(uint32_t texture_id) override; 70 void DeleteTexture(uint32_t texture_id) override;
71 gpu::SyncToken CreateSyncToken() override; 71 gpu::SyncToken CreateSyncToken() override;
72 void WaitSyncToken(const gpu::SyncToken& sync_token) override; 72 void WaitSyncToken(const gpu::SyncToken& sync_token) override;
73 73
74 std::unique_ptr<gfx::GpuMemoryBuffer> AllocateGpuMemoryBuffer( 74 std::unique_ptr<gfx::GpuMemoryBuffer> CreateGpuMemoryBuffer(
75 const gfx::Size& size, 75 const gfx::Size& size,
76 gfx::BufferFormat format, 76 gfx::BufferFormat format,
77 gfx::BufferUsage usage) override; 77 gfx::BufferUsage usage) override;
78 78
79 bool ShouldUseGpuMemoryBuffersForVideoFrames() const override; 79 bool ShouldUseGpuMemoryBuffersForVideoFrames() const override;
80 unsigned ImageTextureTarget(gfx::BufferFormat format) override; 80 unsigned ImageTextureTarget(gfx::BufferFormat format) override;
81 OutputFormat VideoFrameOutputFormat() override; 81 OutputFormat VideoFrameOutputFormat() override;
82 std::unique_ptr<media::GpuVideoAcceleratorFactories::ScopedGLContextLock> 82 std::unique_ptr<media::GpuVideoAcceleratorFactories::ScopedGLContextLock>
83 GetGLContextLock() override; 83 GetGLContextLock() override;
84 bool CheckContextLost(); 84 bool CheckContextLost();
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 129
130 // For sending requests to allocate shared memory in the Browser process. 130 // For sending requests to allocate shared memory in the Browser process.
131 scoped_refptr<ThreadSafeSender> thread_safe_sender_; 131 scoped_refptr<ThreadSafeSender> thread_safe_sender_;
132 132
133 DISALLOW_COPY_AND_ASSIGN(RendererGpuVideoAcceleratorFactories); 133 DISALLOW_COPY_AND_ASSIGN(RendererGpuVideoAcceleratorFactories);
134 }; 134 };
135 135
136 } // namespace content 136 } // namespace content
137 137
138 #endif // CONTENT_RENDERER_MEDIA_RENDERER_GPU_VIDEO_ACCELERATOR_FACTORIES_H_ 138 #endif // CONTENT_RENDERER_MEDIA_RENDERER_GPU_VIDEO_ACCELERATOR_FACTORIES_H_
OLDNEW
« no previous file with comments | « content/child/child_gpu_memory_buffer_manager.cc ('k') | content/renderer/media/renderer_gpu_video_accelerator_factories.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698