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

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

Issue 1912833002: 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, 8 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
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 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 157
158 // Cleans up and sends reply if OnInitialize failed. 158 // Cleans up and sends reply if OnInitialize failed.
159 void OnInitializeFailed(IPC::Message* reply_message); 159 void OnInitializeFailed(IPC::Message* reply_message);
160 160
161 scoped_refptr<gfx::GLSurface> CreateSurface(); 161 scoped_refptr<gfx::GLSurface> CreateSurface();
162 162
163 // Message handlers: 163 // Message handlers:
164 void OnInitialize(base::SharedMemoryHandle shared_state_shm, 164 void OnInitialize(base::SharedMemoryHandle shared_state_shm,
165 IPC::Message* reply_message); 165 IPC::Message* reply_message);
166 void OnSetGetBuffer(int32_t shm_id, IPC::Message* reply_message); 166 void OnSetGetBuffer(int32_t shm_id, IPC::Message* reply_message);
167 void OnProduceFrontBuffer(const Mailbox& mailbox); 167 void OnTakeFrontBuffer(const Mailbox& mailbox);
168 void OnReturnFrontBuffer(const Mailbox& mailbox,
169 const SyncToken& sync_token,
170 bool is_lost);
168 void OnGetState(IPC::Message* reply_message); 171 void OnGetState(IPC::Message* reply_message);
169 void OnWaitForTokenInRange(int32_t start, 172 void OnWaitForTokenInRange(int32_t start,
170 int32_t end, 173 int32_t end,
171 IPC::Message* reply_message); 174 IPC::Message* reply_message);
172 void OnWaitForGetOffsetInRange(int32_t start, 175 void OnWaitForGetOffsetInRange(int32_t start,
173 int32_t end, 176 int32_t end,
174 IPC::Message* reply_message); 177 IPC::Message* reply_message);
175 void OnAsyncFlush(int32_t put_offset, 178 void OnAsyncFlush(int32_t put_offset,
176 uint32_t flush_count, 179 uint32_t flush_count,
177 const std::vector<ui::LatencyInfo>& latency_info); 180 const std::vector<ui::LatencyInfo>& latency_info);
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 280
278 std::unique_ptr<WaitForCommandState> wait_for_token_; 281 std::unique_ptr<WaitForCommandState> wait_for_token_;
279 std::unique_ptr<WaitForCommandState> wait_for_get_offset_; 282 std::unique_ptr<WaitForCommandState> wait_for_get_offset_;
280 283
281 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); 284 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub);
282 }; 285 };
283 286
284 } // namespace gpu 287 } // namespace gpu
285 288
286 #endif // GPU_IPC_SERVICE_GPU_COMMAND_BUFFER_STUB_H_ 289 #endif // GPU_IPC_SERVICE_GPU_COMMAND_BUFFER_STUB_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698