| 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 bool is_lost); | |
| 166 void OnGetState(IPC::Message* reply_message); | 164 void OnGetState(IPC::Message* reply_message); |
| 167 void OnWaitForTokenInRange(int32_t start, | 165 void OnWaitForTokenInRange(int32_t start, |
| 168 int32_t end, | 166 int32_t end, |
| 169 IPC::Message* reply_message); | 167 IPC::Message* reply_message); |
| 170 void OnWaitForGetOffsetInRange(int32_t start, | 168 void OnWaitForGetOffsetInRange(int32_t start, |
| 171 int32_t end, | 169 int32_t end, |
| 172 IPC::Message* reply_message); | 170 IPC::Message* reply_message); |
| 173 void OnAsyncFlush(int32_t put_offset, | 171 void OnAsyncFlush(int32_t put_offset, |
| 174 uint32_t flush_count, | 172 uint32_t flush_count, |
| 175 const std::vector<ui::LatencyInfo>& latency_info); | 173 const std::vector<ui::LatencyInfo>& latency_info); |
| 176 void OnRegisterTransferBuffer(int32_t id, | 174 void OnRegisterTransferBuffer(int32_t id, |
| 177 base::SharedMemoryHandle transfer_buffer, | 175 base::SharedMemoryHandle transfer_buffer, |
| 178 uint32_t size); | 176 uint32_t size); |
| 179 void OnDestroyTransferBuffer(int32_t id); | 177 void OnDestroyTransferBuffer(int32_t id); |
| 180 void OnGetTransferBuffer(int32_t id, IPC::Message* reply_message); | 178 void OnGetTransferBuffer(int32_t id, IPC::Message* reply_message); |
| 181 | 179 |
| 182 void OnEnsureBackbuffer(); | 180 void OnEnsureBackbuffer(); |
| 183 | 181 |
| 184 void OnWaitSyncToken(const SyncToken& sync_token); | |
| 185 void OnSignalSyncToken(const SyncToken& sync_token, uint32_t id); | 182 void OnSignalSyncToken(const SyncToken& sync_token, uint32_t id); |
| 186 void OnSignalAck(uint32_t id); | 183 void OnSignalAck(uint32_t id); |
| 187 void OnSignalQuery(uint32_t query, uint32_t id); | 184 void OnSignalQuery(uint32_t query, uint32_t id); |
| 188 | 185 |
| 189 void OnFenceSyncRelease(uint64_t release); | 186 void OnFenceSyncRelease(uint64_t release); |
| 190 bool OnWaitFenceSync(CommandBufferNamespace namespace_id, | 187 bool OnWaitFenceSync(CommandBufferNamespace namespace_id, |
| 191 CommandBufferId command_buffer_id, | 188 CommandBufferId command_buffer_id, |
| 192 uint64_t release); | 189 uint64_t release); |
| 193 void OnWaitFenceSyncCompleted(CommandBufferNamespace namespace_id, | 190 void OnWaitFenceSyncCompleted(CommandBufferNamespace namespace_id, |
| 194 CommandBufferId command_buffer_id, | 191 CommandBufferId command_buffer_id, |
| (...skipping 81 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 |