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 CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ | 5 #ifndef CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ |
6 #define CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ | 6 #define CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 | 163 |
164 void Destroy(); | 164 void Destroy(); |
165 | 165 |
166 bool MakeCurrent(); | 166 bool MakeCurrent(); |
167 | 167 |
168 // Cleans up and sends reply if OnInitialize failed. | 168 // Cleans up and sends reply if OnInitialize failed. |
169 void OnInitializeFailed(IPC::Message* reply_message); | 169 void OnInitializeFailed(IPC::Message* reply_message); |
170 | 170 |
171 // Message handlers: | 171 // Message handlers: |
172 void OnInitialize(base::SharedMemoryHandle shared_state_shm, | 172 void OnInitialize(base::SharedMemoryHandle shared_state_shm, |
| 173 uint64_t command_buffer_id, |
173 IPC::Message* reply_message); | 174 IPC::Message* reply_message); |
174 void OnSetGetBuffer(int32 shm_id, IPC::Message* reply_message); | 175 void OnSetGetBuffer(int32 shm_id, IPC::Message* reply_message); |
175 void OnProduceFrontBuffer(const gpu::Mailbox& mailbox); | 176 void OnProduceFrontBuffer(const gpu::Mailbox& mailbox); |
176 void OnGetState(IPC::Message* reply_message); | 177 void OnGetState(IPC::Message* reply_message); |
177 void OnWaitForTokenInRange(int32 start, | 178 void OnWaitForTokenInRange(int32 start, |
178 int32 end, | 179 int32 end, |
179 IPC::Message* reply_message); | 180 IPC::Message* reply_message); |
180 void OnWaitForGetOffsetInRange(int32 start, | 181 void OnWaitForGetOffsetInRange(int32 start, |
181 int32 end, | 182 int32 end, |
182 IPC::Message* reply_message); | 183 IPC::Message* reply_message); |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
298 size_t total_gpu_memory_; | 299 size_t total_gpu_memory_; |
299 scoped_ptr<WaitForCommandState> wait_for_token_; | 300 scoped_ptr<WaitForCommandState> wait_for_token_; |
300 scoped_ptr<WaitForCommandState> wait_for_get_offset_; | 301 scoped_ptr<WaitForCommandState> wait_for_get_offset_; |
301 | 302 |
302 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); | 303 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); |
303 }; | 304 }; |
304 | 305 |
305 } // namespace content | 306 } // namespace content |
306 | 307 |
307 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ | 308 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ |
OLD | NEW |