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

Side by Side Diff: gpu/ipc/client/gpu_channel_host.h

Issue 2531963002: gfx: Fix sending native ozone pixmaps from InProcessCommandBuffer. (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 | « gpu/ipc/client/command_buffer_proxy_impl.cc ('k') | gpu/ipc/client/gpu_channel_host.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 (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 GPU_IPC_CLIENT_GPU_CHANNEL_HOST_H_ 5 #ifndef GPU_IPC_CLIENT_GPU_CHANNEL_HOST_H_
6 #define GPU_IPC_CLIENT_GPU_CHANNEL_HOST_H_ 6 #define GPU_IPC_CLIENT_GPU_CHANNEL_HOST_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 GpuChannelHostFactory* factory() const { return factory_; } 132 GpuChannelHostFactory* factory() const { return factory_; }
133 133
134 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager() const { 134 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager() const {
135 return gpu_memory_buffer_manager_; 135 return gpu_memory_buffer_manager_;
136 } 136 }
137 137
138 // Returns a handle to the shared memory that can be sent via IPC to the 138 // Returns a handle to the shared memory that can be sent via IPC to the
139 // GPU process. The caller is responsible for ensuring it is closed. Returns 139 // GPU process. The caller is responsible for ensuring it is closed. Returns
140 // an invalid handle on failure. 140 // an invalid handle on failure.
141 base::SharedMemoryHandle ShareToGpuProcess( 141 base::SharedMemoryHandle ShareToGpuProcess(
142 base::SharedMemoryHandle source_handle); 142 const base::SharedMemoryHandle& source_handle);
143 143
144 // Reserve one unused transfer buffer ID. 144 // Reserve one unused transfer buffer ID.
145 int32_t ReserveTransferBufferId(); 145 int32_t ReserveTransferBufferId();
146 146
147 // Returns a GPU memory buffer handle to the buffer that can be sent via
148 // IPC to the GPU process. The caller is responsible for ensuring it is
149 // closed. Returns an invalid handle on failure.
150 gfx::GpuMemoryBufferHandle ShareGpuMemoryBufferToGpuProcess(
151 const gfx::GpuMemoryBufferHandle& source_handle,
152 bool* requires_sync_point);
153
154 // Reserve one unused image ID. 147 // Reserve one unused image ID.
155 int32_t ReserveImageId(); 148 int32_t ReserveImageId();
156 149
157 // Generate a route ID guaranteed to be unique for this channel. 150 // Generate a route ID guaranteed to be unique for this channel.
158 int32_t GenerateRouteID(); 151 int32_t GenerateRouteID();
159 152
160 // Generate a stream ID guaranteed to be unique for this channel. 153 // Generate a stream ID guaranteed to be unique for this channel.
161 int32_t GenerateStreamID(); 154 int32_t GenerateStreamID();
162 155
163 // Sends a synchronous nop to the server which validate that all previous IPC 156 // Sends a synchronous nop to the server which validate that all previous IPC
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 mutable base::Lock context_lock_; 276 mutable base::Lock context_lock_;
284 std::unique_ptr<IPC::SyncChannel> channel_; 277 std::unique_ptr<IPC::SyncChannel> channel_;
285 base::hash_map<int32_t, StreamFlushInfo> stream_flush_info_; 278 base::hash_map<int32_t, StreamFlushInfo> stream_flush_info_;
286 279
287 DISALLOW_COPY_AND_ASSIGN(GpuChannelHost); 280 DISALLOW_COPY_AND_ASSIGN(GpuChannelHost);
288 }; 281 };
289 282
290 } // namespace gpu 283 } // namespace gpu
291 284
292 #endif // GPU_IPC_CLIENT_GPU_CHANNEL_HOST_H_ 285 #endif // GPU_IPC_CLIENT_GPU_CHANNEL_HOST_H_
OLDNEW
« no previous file with comments | « gpu/ipc/client/command_buffer_proxy_impl.cc ('k') | gpu/ipc/client/gpu_channel_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698