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

Side by Side Diff: content/browser/gpu/browser_gpu_memory_buffer_manager.h

Issue 2915553002: Add BrowserGpuMemoryBufferManager::BufferInfo::shared_memory_guid (Closed)
Patch Set: impl Created 3 years, 6 months 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 | content/browser/gpu/browser_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 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 gfx::BufferUsage usage, 75 gfx::BufferUsage usage,
76 int gpu_host_id); 76 int gpu_host_id);
77 BufferInfo(const BufferInfo& other); 77 BufferInfo(const BufferInfo& other);
78 ~BufferInfo(); 78 ~BufferInfo();
79 79
80 gfx::Size size; 80 gfx::Size size;
81 gfx::GpuMemoryBufferType type = gfx::EMPTY_BUFFER; 81 gfx::GpuMemoryBufferType type = gfx::EMPTY_BUFFER;
82 gfx::BufferFormat format = gfx::BufferFormat::RGBA_8888; 82 gfx::BufferFormat format = gfx::BufferFormat::RGBA_8888;
83 gfx::BufferUsage usage = gfx::BufferUsage::GPU_READ; 83 gfx::BufferUsage usage = gfx::BufferUsage::GPU_READ;
84 int gpu_host_id = 0; 84 int gpu_host_id = 0;
85 base::UnguessableToken shared_memory_guid;
85 }; 86 };
86 87
87 struct CreateGpuMemoryBufferRequest; 88 struct CreateGpuMemoryBufferRequest;
88 89
89 std::unique_ptr<gfx::GpuMemoryBuffer> AllocateGpuMemoryBufferForSurface( 90 std::unique_ptr<gfx::GpuMemoryBuffer> AllocateGpuMemoryBufferForSurface(
90 const gfx::Size& size, 91 const gfx::Size& size,
91 gfx::BufferFormat format, 92 gfx::BufferFormat format,
92 gfx::BufferUsage usage, 93 gfx::BufferUsage usage,
93 gpu::SurfaceHandle surface_handle); 94 gpu::SurfaceHandle surface_handle);
94 95
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 using BufferMap = base::hash_map<gfx::GpuMemoryBufferId, BufferInfo>; 129 using BufferMap = base::hash_map<gfx::GpuMemoryBufferId, BufferInfo>;
129 using ClientMap = base::hash_map<int, BufferMap>; 130 using ClientMap = base::hash_map<int, BufferMap>;
130 ClientMap clients_; 131 ClientMap clients_;
131 132
132 DISALLOW_COPY_AND_ASSIGN(BrowserGpuMemoryBufferManager); 133 DISALLOW_COPY_AND_ASSIGN(BrowserGpuMemoryBufferManager);
133 }; 134 };
134 135
135 } // namespace content 136 } // namespace content
136 137
137 #endif // CONTENT_BROWSER_GPU_BROWSER_GPU_MEMORY_BUFFER_MANAGER_H_ 138 #endif // CONTENT_BROWSER_GPU_BROWSER_GPU_MEMORY_BUFFER_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/gpu/browser_gpu_memory_buffer_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698