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

Side by Side Diff: blimp/client/support/compositor/blimp_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
« no previous file with comments | « no previous file | blimp/client/support/compositor/blimp_gpu_memory_buffer_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 BLIMP_CLIENT_SUPPORT_COMPOSITOR_BLIMP_GPU_MEMORY_BUFFER_MANAGER_H_ 5 #ifndef BLIMP_CLIENT_SUPPORT_COMPOSITOR_BLIMP_GPU_MEMORY_BUFFER_MANAGER_H_
6 #define BLIMP_CLIENT_SUPPORT_COMPOSITOR_BLIMP_GPU_MEMORY_BUFFER_MANAGER_H_ 6 #define BLIMP_CLIENT_SUPPORT_COMPOSITOR_BLIMP_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 "cc/output/buffer_to_texture_target_map.h" 11 #include "cc/output/buffer_to_texture_target_map.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 blimp { 14 namespace blimp {
15 namespace client { 15 namespace client {
16 16
17 class BlimpGpuMemoryBufferManager : public gpu::GpuMemoryBufferManager { 17 class BlimpGpuMemoryBufferManager : public gpu::GpuMemoryBufferManager {
18 public: 18 public:
19 BlimpGpuMemoryBufferManager(); 19 BlimpGpuMemoryBufferManager();
20 ~BlimpGpuMemoryBufferManager() override; 20 ~BlimpGpuMemoryBufferManager() override;
21 21
22 static cc::BufferToTextureTargetMap GetDefaultBufferToTextureTargetMap(); 22 static cc::BufferToTextureTargetMap GetDefaultBufferToTextureTargetMap();
23 23
24 // Overridden from gpu::GpuMemoryBufferManager: 24 // Overridden from gpu::GpuMemoryBufferManager:
25 std::unique_ptr<gfx::GpuMemoryBuffer> AllocateGpuMemoryBuffer( 25 std::unique_ptr<gfx::GpuMemoryBuffer> CreateGpuMemoryBuffer(
26 const gfx::Size& size, 26 const gfx::Size& size,
27 gfx::BufferFormat format, 27 gfx::BufferFormat format,
28 gfx::BufferUsage usage, 28 gfx::BufferUsage usage,
29 gpu::SurfaceHandle surface_handle) override; 29 gpu::SurfaceHandle surface_handle) override;
30 std::unique_ptr<gfx::GpuMemoryBuffer> CreateGpuMemoryBufferFromHandle( 30 std::unique_ptr<gfx::GpuMemoryBuffer> CreateGpuMemoryBufferFromHandle(
31 const gfx::GpuMemoryBufferHandle& handle, 31 const gfx::GpuMemoryBufferHandle& handle,
32 const gfx::Size& size, 32 const gfx::Size& size,
33 gfx::BufferFormat format) override; 33 gfx::BufferFormat format) override;
34 void SetDestructionSyncToken(gfx::GpuMemoryBuffer* buffer, 34 void SetDestructionSyncToken(gfx::GpuMemoryBuffer* buffer,
35 const gpu::SyncToken& sync_token) override; 35 const gpu::SyncToken& sync_token) override;
36 36
37 private: 37 private:
38 DISALLOW_COPY_AND_ASSIGN(BlimpGpuMemoryBufferManager); 38 DISALLOW_COPY_AND_ASSIGN(BlimpGpuMemoryBufferManager);
39 }; 39 };
40 40
41 } // namespace client 41 } // namespace client
42 } // namespace blimp 42 } // namespace blimp
43 43
44 #endif // BLIMP_CLIENT_SUPPORT_COMPOSITOR_BLIMP_GPU_MEMORY_BUFFER_MANAGER_H_ 44 #endif // BLIMP_CLIENT_SUPPORT_COMPOSITOR_BLIMP_GPU_MEMORY_BUFFER_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | blimp/client/support/compositor/blimp_gpu_memory_buffer_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698