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

Side by Side Diff: content/common/gpu/client/gpu_channel_host.h

Issue 654223006: Cleanup GpuMemoryBuffer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: style nits Created 6 years, 1 month 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_COMMON_GPU_CLIENT_GPU_CHANNEL_HOST_H_ 5 #ifndef CONTENT_COMMON_GPU_CLIENT_GPU_CHANNEL_HOST_H_
6 #define CONTENT_COMMON_GPU_CLIENT_GPU_CHANNEL_HOST_H_ 6 #define CONTENT_COMMON_GPU_CLIENT_GPU_CHANNEL_HOST_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 base::SharedMemoryHandle ShareToGpuProcess( 146 base::SharedMemoryHandle ShareToGpuProcess(
147 base::SharedMemoryHandle source_handle); 147 base::SharedMemoryHandle source_handle);
148 148
149 // Reserve one unused transfer buffer ID. 149 // Reserve one unused transfer buffer ID.
150 int32 ReserveTransferBufferId(); 150 int32 ReserveTransferBufferId();
151 151
152 // Returns a GPU memory buffer handle to the buffer that can be sent via 152 // Returns a GPU memory buffer handle to the buffer that can be sent via
153 // IPC to the GPU process. The caller is responsible for ensuring it is 153 // IPC to the GPU process. The caller is responsible for ensuring it is
154 // closed. Returns an invalid handle on failure. 154 // closed. Returns an invalid handle on failure.
155 gfx::GpuMemoryBufferHandle ShareGpuMemoryBufferToGpuProcess( 155 gfx::GpuMemoryBufferHandle ShareGpuMemoryBufferToGpuProcess(
156 gfx::GpuMemoryBufferHandle source_handle); 156 gfx::GpuMemoryBufferHandle source_handle,
157 bool* requires_sync_point);
157 158
158 // Reserve one unused image ID. 159 // Reserve one unused image ID.
159 int32 ReserveImageId(); 160 int32 ReserveImageId();
160 161
161 // Generate a route ID guaranteed to be unique for this channel. 162 // Generate a route ID guaranteed to be unique for this channel.
162 int32 GenerateRouteID(); 163 int32 GenerateRouteID();
163 164
164 private: 165 private:
165 friend class base::RefCountedThreadSafe<GpuChannelHost>; 166 friend class base::RefCountedThreadSafe<GpuChannelHost>;
166 GpuChannelHost(GpuChannelHostFactory* factory, 167 GpuChannelHost(GpuChannelHostFactory* factory,
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 // Used to look up a proxy from its routing id. 242 // Used to look up a proxy from its routing id.
242 typedef base::hash_map<int, CommandBufferProxyImpl*> ProxyMap; 243 typedef base::hash_map<int, CommandBufferProxyImpl*> ProxyMap;
243 ProxyMap proxies_; 244 ProxyMap proxies_;
244 245
245 DISALLOW_COPY_AND_ASSIGN(GpuChannelHost); 246 DISALLOW_COPY_AND_ASSIGN(GpuChannelHost);
246 }; 247 };
247 248
248 } // namespace content 249 } // namespace content
249 250
250 #endif // CONTENT_COMMON_GPU_CLIENT_GPU_CHANNEL_HOST_H_ 251 #endif // CONTENT_COMMON_GPU_CLIENT_GPU_CHANNEL_HOST_H_
OLDNEW
« no previous file with comments | « content/common/gpu/client/command_buffer_proxy_impl.cc ('k') | content/common/gpu/client/gpu_channel_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698