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

Side by Side Diff: gpu/ipc/service/gpu_command_buffer_stub.h

Issue 2012303002: [Merge to 2743] Revert "[Reland 2] Pepper takes ownership of a mailbox before passing it to the tex… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2743
Patch Set: Created 4 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 | « gpu/ipc/service/gpu_channel.cc ('k') | gpu/ipc/service/gpu_command_buffer_stub.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_SERVICE_GPU_COMMAND_BUFFER_STUB_H_ 5 #ifndef GPU_IPC_SERVICE_GPU_COMMAND_BUFFER_STUB_H_
6 #define GPU_IPC_SERVICE_GPU_COMMAND_BUFFER_STUB_H_ 6 #define GPU_IPC_SERVICE_GPU_COMMAND_BUFFER_STUB_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 std::unique_ptr<base::SharedMemory> shared_state_shm); 141 std::unique_ptr<base::SharedMemory> shared_state_shm);
142 142
143 GpuMemoryManager* GetMemoryManager() const; 143 GpuMemoryManager* GetMemoryManager() const;
144 144
145 void Destroy(); 145 void Destroy();
146 146
147 bool MakeCurrent(); 147 bool MakeCurrent();
148 148
149 // Message handlers: 149 // Message handlers:
150 void OnSetGetBuffer(int32_t shm_id, IPC::Message* reply_message); 150 void OnSetGetBuffer(int32_t shm_id, IPC::Message* reply_message);
151 void OnTakeFrontBuffer(const Mailbox& mailbox); 151 void OnProduceFrontBuffer(const Mailbox& mailbox);
152 void OnReturnFrontBuffer(const Mailbox& mailbox, bool is_lost);
153 void OnGetState(IPC::Message* reply_message); 152 void OnGetState(IPC::Message* reply_message);
154 void OnWaitForTokenInRange(int32_t start, 153 void OnWaitForTokenInRange(int32_t start,
155 int32_t end, 154 int32_t end,
156 IPC::Message* reply_message); 155 IPC::Message* reply_message);
157 void OnWaitForGetOffsetInRange(int32_t start, 156 void OnWaitForGetOffsetInRange(int32_t start,
158 int32_t end, 157 int32_t end,
159 IPC::Message* reply_message); 158 IPC::Message* reply_message);
160 void OnAsyncFlush(int32_t put_offset, 159 void OnAsyncFlush(int32_t put_offset,
161 uint32_t flush_count, 160 uint32_t flush_count,
162 const std::vector<ui::LatencyInfo>& latency_info); 161 const std::vector<ui::LatencyInfo>& latency_info);
163 void OnRegisterTransferBuffer(int32_t id, 162 void OnRegisterTransferBuffer(int32_t id,
164 base::SharedMemoryHandle transfer_buffer, 163 base::SharedMemoryHandle transfer_buffer,
165 uint32_t size); 164 uint32_t size);
166 void OnDestroyTransferBuffer(int32_t id); 165 void OnDestroyTransferBuffer(int32_t id);
167 void OnGetTransferBuffer(int32_t id, IPC::Message* reply_message); 166 void OnGetTransferBuffer(int32_t id, IPC::Message* reply_message);
168 167
169 void OnEnsureBackbuffer(); 168 void OnEnsureBackbuffer();
170 169
171 void OnWaitSyncToken(const SyncToken& sync_token);
172 void OnSignalSyncToken(const SyncToken& sync_token, uint32_t id); 170 void OnSignalSyncToken(const SyncToken& sync_token, uint32_t id);
173 void OnSignalAck(uint32_t id); 171 void OnSignalAck(uint32_t id);
174 void OnSignalQuery(uint32_t query, uint32_t id); 172 void OnSignalQuery(uint32_t query, uint32_t id);
175 173
176 void OnFenceSyncRelease(uint64_t release); 174 void OnFenceSyncRelease(uint64_t release);
177 bool OnWaitFenceSync(CommandBufferNamespace namespace_id, 175 bool OnWaitFenceSync(CommandBufferNamespace namespace_id,
178 CommandBufferId command_buffer_id, 176 CommandBufferId command_buffer_id,
179 uint64_t release); 177 uint64_t release);
180 void OnWaitFenceSyncCompleted(CommandBufferNamespace namespace_id, 178 void OnWaitFenceSyncCompleted(CommandBufferNamespace namespace_id,
181 CommandBufferId command_buffer_id, 179 CommandBufferId command_buffer_id,
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 245
248 std::unique_ptr<WaitForCommandState> wait_for_token_; 246 std::unique_ptr<WaitForCommandState> wait_for_token_;
249 std::unique_ptr<WaitForCommandState> wait_for_get_offset_; 247 std::unique_ptr<WaitForCommandState> wait_for_get_offset_;
250 248
251 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); 249 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub);
252 }; 250 };
253 251
254 } // namespace gpu 252 } // namespace gpu
255 253
256 #endif // GPU_IPC_SERVICE_GPU_COMMAND_BUFFER_STUB_H_ 254 #endif // GPU_IPC_SERVICE_GPU_COMMAND_BUFFER_STUB_H_
OLDNEW
« no previous file with comments | « gpu/ipc/service/gpu_channel.cc ('k') | gpu/ipc/service/gpu_command_buffer_stub.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698