OLD | NEW |
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 Loading... |
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 OnProduceFrontBuffer(const Mailbox& mailbox); | 163 void OnTakeFrontBuffer(const Mailbox& mailbox); |
| 164 void OnReturnFrontBuffer(const Mailbox& mailbox, |
| 165 const SyncToken& sync_token, |
| 166 bool is_lost); |
164 void OnGetState(IPC::Message* reply_message); | 167 void OnGetState(IPC::Message* reply_message); |
165 void OnWaitForTokenInRange(int32_t start, | 168 void OnWaitForTokenInRange(int32_t start, |
166 int32_t end, | 169 int32_t end, |
167 IPC::Message* reply_message); | 170 IPC::Message* reply_message); |
168 void OnWaitForGetOffsetInRange(int32_t start, | 171 void OnWaitForGetOffsetInRange(int32_t start, |
169 int32_t end, | 172 int32_t end, |
170 IPC::Message* reply_message); | 173 IPC::Message* reply_message); |
171 void OnAsyncFlush(int32_t put_offset, | 174 void OnAsyncFlush(int32_t put_offset, |
172 uint32_t flush_count, | 175 uint32_t flush_count, |
173 const std::vector<ui::LatencyInfo>& latency_info); | 176 const std::vector<ui::LatencyInfo>& latency_info); |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
273 | 276 |
274 std::unique_ptr<WaitForCommandState> wait_for_token_; | 277 std::unique_ptr<WaitForCommandState> wait_for_token_; |
275 std::unique_ptr<WaitForCommandState> wait_for_get_offset_; | 278 std::unique_ptr<WaitForCommandState> wait_for_get_offset_; |
276 | 279 |
277 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); | 280 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); |
278 }; | 281 }; |
279 | 282 |
280 } // namespace gpu | 283 } // namespace gpu |
281 | 284 |
282 #endif // GPU_IPC_SERVICE_GPU_COMMAND_BUFFER_STUB_H_ | 285 #endif // GPU_IPC_SERVICE_GPU_COMMAND_BUFFER_STUB_H_ |
OLD | NEW |