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 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 Loading... |
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_ |
OLD | NEW |