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

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

Issue 1937173002: Revert of Pepper takes ownership of a mailbox before passing it to the texture layer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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/common/gpu_messages.h ('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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 153
154 // Cleans up and sends reply if OnInitialize failed. 154 // Cleans up and sends reply if OnInitialize failed.
155 void OnInitializeFailed(IPC::Message* reply_message); 155 void OnInitializeFailed(IPC::Message* reply_message);
156 156
157 scoped_refptr<gfx::GLSurface> CreateSurface(); 157 scoped_refptr<gfx::GLSurface> CreateSurface();
158 158
159 // Message handlers: 159 // Message handlers:
160 void OnInitialize(base::SharedMemoryHandle shared_state_shm, 160 void OnInitialize(base::SharedMemoryHandle shared_state_shm,
161 IPC::Message* reply_message); 161 IPC::Message* reply_message);
162 void OnSetGetBuffer(int32_t shm_id, IPC::Message* reply_message); 162 void OnSetGetBuffer(int32_t shm_id, IPC::Message* reply_message);
163 void OnTakeFrontBuffer(const Mailbox& mailbox); 163 void OnProduceFrontBuffer(const Mailbox& mailbox);
164 void OnReturnFrontBuffer(const Mailbox& mailbox,
165 const SyncToken& sync_token,
166 bool is_lost);
167 void OnGetState(IPC::Message* reply_message); 164 void OnGetState(IPC::Message* reply_message);
168 void OnWaitForTokenInRange(int32_t start, 165 void OnWaitForTokenInRange(int32_t start,
169 int32_t end, 166 int32_t end,
170 IPC::Message* reply_message); 167 IPC::Message* reply_message);
171 void OnWaitForGetOffsetInRange(int32_t start, 168 void OnWaitForGetOffsetInRange(int32_t start,
172 int32_t end, 169 int32_t end,
173 IPC::Message* reply_message); 170 IPC::Message* reply_message);
174 void OnAsyncFlush(int32_t put_offset, 171 void OnAsyncFlush(int32_t put_offset,
175 uint32_t flush_count, 172 uint32_t flush_count,
176 const std::vector<ui::LatencyInfo>& latency_info); 173 const std::vector<ui::LatencyInfo>& latency_info);
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 273
277 std::unique_ptr<WaitForCommandState> wait_for_token_; 274 std::unique_ptr<WaitForCommandState> wait_for_token_;
278 std::unique_ptr<WaitForCommandState> wait_for_get_offset_; 275 std::unique_ptr<WaitForCommandState> wait_for_get_offset_;
279 276
280 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); 277 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub);
281 }; 278 };
282 279
283 } // namespace gpu 280 } // namespace gpu
284 281
285 #endif // GPU_IPC_SERVICE_GPU_COMMAND_BUFFER_STUB_H_ 282 #endif // GPU_IPC_SERVICE_GPU_COMMAND_BUFFER_STUB_H_
OLDNEW
« no previous file with comments | « gpu/ipc/common/gpu_messages.h ('k') | gpu/ipc/service/gpu_command_buffer_stub.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698