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

Side by Side Diff: content/browser/gpu/browser_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_BROWSER_GPU_BROWSER_GPU_MEMORY_BUFFER_MANAGER_H_ 5 #ifndef CONTENT_BROWSER_GPU_BROWSER_GPU_MEMORY_BUFFER_MANAGER_H_
6 #define CONTENT_BROWSER_GPU_BROWSER_GPU_MEMORY_BUFFER_MANAGER_H_ 6 #define CONTENT_BROWSER_GPU_BROWSER_GPU_MEMORY_BUFFER_MANAGER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 ~BrowserGpuMemoryBufferManager() override; 57 ~BrowserGpuMemoryBufferManager() override;
58 58
59 static BrowserGpuMemoryBufferManager* current(); 59 static BrowserGpuMemoryBufferManager* current();
60 60
61 static bool IsNativeGpuMemoryBuffersEnabled(); 61 static bool IsNativeGpuMemoryBuffersEnabled();
62 62
63 static uint32_t GetImageTextureTarget(gfx::BufferFormat format, 63 static uint32_t GetImageTextureTarget(gfx::BufferFormat format,
64 gfx::BufferUsage usage); 64 gfx::BufferUsage usage);
65 65
66 // Overridden from gpu::GpuMemoryBufferManager: 66 // Overridden from gpu::GpuMemoryBufferManager:
67 std::unique_ptr<gfx::GpuMemoryBuffer> AllocateGpuMemoryBuffer( 67 std::unique_ptr<gfx::GpuMemoryBuffer> CreateGpuMemoryBuffer(
68 const gfx::Size& size, 68 const gfx::Size& size,
69 gfx::BufferFormat format, 69 gfx::BufferFormat format,
70 gfx::BufferUsage usage, 70 gfx::BufferUsage usage,
71 gpu::SurfaceHandle surface_handle) override; 71 gpu::SurfaceHandle surface_handle) override;
72 std::unique_ptr<gfx::GpuMemoryBuffer> CreateGpuMemoryBufferFromHandle( 72 std::unique_ptr<gfx::GpuMemoryBuffer> CreateGpuMemoryBufferFromHandle(
73 const gfx::GpuMemoryBufferHandle& handle, 73 const gfx::GpuMemoryBufferHandle& handle,
74 const gfx::Size& size, 74 const gfx::Size& size,
75 gfx::BufferFormat format) override; 75 gfx::BufferFormat format) override;
76 void SetDestructionSyncToken(gfx::GpuMemoryBuffer* buffer, 76 void SetDestructionSyncToken(gfx::GpuMemoryBuffer* buffer,
77 const gpu::SyncToken& sync_token) override; 77 const gpu::SyncToken& sync_token) override;
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 using BufferMap = base::hash_map<gfx::GpuMemoryBufferId, BufferInfo>; 173 using BufferMap = base::hash_map<gfx::GpuMemoryBufferId, BufferInfo>;
174 using ClientMap = base::hash_map<int, BufferMap>; 174 using ClientMap = base::hash_map<int, BufferMap>;
175 ClientMap clients_; 175 ClientMap clients_;
176 176
177 DISALLOW_COPY_AND_ASSIGN(BrowserGpuMemoryBufferManager); 177 DISALLOW_COPY_AND_ASSIGN(BrowserGpuMemoryBufferManager);
178 }; 178 };
179 179
180 } // namespace content 180 } // namespace content
181 181
182 #endif // CONTENT_BROWSER_GPU_BROWSER_GPU_MEMORY_BUFFER_MANAGER_H_ 182 #endif // CONTENT_BROWSER_GPU_BROWSER_GPU_MEMORY_BUFFER_MANAGER_H_
OLDNEW
« no previous file with comments | « components/exo/test/exo_test_helper.cc ('k') | content/browser/gpu/browser_gpu_memory_buffer_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698