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

Side by Side Diff: content/child/child_gpu_memory_buffer_manager.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_CHILD_CHILD_GPU_MEMORY_BUFFER_MANAGER_H_ 5 #ifndef CONTENT_CHILD_CHILD_GPU_MEMORY_BUFFER_MANAGER_H_
6 #define CONTENT_CHILD_CHILD_GPU_MEMORY_BUFFER_MANAGER_H_ 6 #define CONTENT_CHILD_CHILD_GPU_MEMORY_BUFFER_MANAGER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "content/child/thread_safe_sender.h" 11 #include "content/child/thread_safe_sender.h"
12 #include "gpu/command_buffer/client/gpu_memory_buffer_manager.h" 12 #include "gpu/command_buffer/client/gpu_memory_buffer_manager.h"
13 13
14 namespace content { 14 namespace content {
15 15
16 class ChildGpuMemoryBufferManager : public gpu::GpuMemoryBufferManager { 16 class ChildGpuMemoryBufferManager : public gpu::GpuMemoryBufferManager {
17 public: 17 public:
18 explicit ChildGpuMemoryBufferManager(ThreadSafeSender* sender); 18 explicit ChildGpuMemoryBufferManager(ThreadSafeSender* sender);
19 ~ChildGpuMemoryBufferManager() override; 19 ~ChildGpuMemoryBufferManager() override;
20 20
21 // Overridden from gpu::GpuMemoryBufferManager: 21 // Overridden from gpu::GpuMemoryBufferManager:
22 std::unique_ptr<gfx::GpuMemoryBuffer> AllocateGpuMemoryBuffer( 22 std::unique_ptr<gfx::GpuMemoryBuffer> CreateGpuMemoryBuffer(
23 const gfx::Size& size, 23 const gfx::Size& size,
24 gfx::BufferFormat format, 24 gfx::BufferFormat format,
25 gfx::BufferUsage usage, 25 gfx::BufferUsage usage,
26 gpu::SurfaceHandle surface_handle) override; 26 gpu::SurfaceHandle surface_handle) override;
27 std::unique_ptr<gfx::GpuMemoryBuffer> CreateGpuMemoryBufferFromHandle( 27 std::unique_ptr<gfx::GpuMemoryBuffer> CreateGpuMemoryBufferFromHandle(
28 const gfx::GpuMemoryBufferHandle& handle, 28 const gfx::GpuMemoryBufferHandle& handle,
29 const gfx::Size& size, 29 const gfx::Size& size,
30 gfx::BufferFormat format) override; 30 gfx::BufferFormat format) override;
31 void SetDestructionSyncToken(gfx::GpuMemoryBuffer* buffer, 31 void SetDestructionSyncToken(gfx::GpuMemoryBuffer* buffer,
32 const gpu::SyncToken& sync_token) override; 32 const gpu::SyncToken& sync_token) override;
33 33
34 private: 34 private:
35 scoped_refptr<ThreadSafeSender> sender_; 35 scoped_refptr<ThreadSafeSender> sender_;
36 36
37 DISALLOW_COPY_AND_ASSIGN(ChildGpuMemoryBufferManager); 37 DISALLOW_COPY_AND_ASSIGN(ChildGpuMemoryBufferManager);
38 }; 38 };
39 39
40 } // namespace content 40 } // namespace content
41 41
42 #endif // CONTENT_CHILD_CHILD_GPU_MEMORY_BUFFER_MANAGER_H_ 42 #endif // CONTENT_CHILD_CHILD_GPU_MEMORY_BUFFER_MANAGER_H_
OLDNEW
« no previous file with comments | « content/browser/gpu/browser_gpu_memory_buffer_manager.cc ('k') | content/child/child_gpu_memory_buffer_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698