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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 void OnProduceFrontBuffer(const gpu::Mailbox& mailbox); | 159 void OnProduceFrontBuffer(const gpu::Mailbox& mailbox); |
160 void OnGetState(IPC::Message* reply_message); | 160 void OnGetState(IPC::Message* reply_message); |
161 void OnWaitForTokenInRange(int32 start, | 161 void OnWaitForTokenInRange(int32 start, |
162 int32 end, | 162 int32 end, |
163 IPC::Message* reply_message); | 163 IPC::Message* reply_message); |
164 void OnWaitForGetOffsetInRange(int32 start, | 164 void OnWaitForGetOffsetInRange(int32 start, |
165 int32 end, | 165 int32 end, |
166 IPC::Message* reply_message); | 166 IPC::Message* reply_message); |
167 void OnAsyncFlush(int32 put_offset, uint32 flush_count, | 167 void OnAsyncFlush(int32 put_offset, uint32 flush_count, |
168 const std::vector<ui::LatencyInfo>& latency_info); | 168 const std::vector<ui::LatencyInfo>& latency_info); |
169 void OnEcho(const IPC::Message& message); | |
170 void OnRescheduled(); | 169 void OnRescheduled(); |
171 void OnRegisterTransferBuffer(int32 id, | 170 void OnRegisterTransferBuffer(int32 id, |
172 base::SharedMemoryHandle transfer_buffer, | 171 base::SharedMemoryHandle transfer_buffer, |
173 uint32 size); | 172 uint32 size); |
174 void OnDestroyTransferBuffer(int32 id); | 173 void OnDestroyTransferBuffer(int32 id); |
175 void OnGetTransferBuffer(int32 id, IPC::Message* reply_message); | 174 void OnGetTransferBuffer(int32 id, IPC::Message* reply_message); |
176 | 175 |
177 void OnCreateVideoDecoder(media::VideoCodecProfile profile, | 176 void OnCreateVideoDecoder(media::VideoCodecProfile profile, |
178 int32 route_id, | 177 int32 route_id, |
179 IPC::Message* reply_message); | 178 IPC::Message* reply_message); |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
277 size_t total_gpu_memory_; | 276 size_t total_gpu_memory_; |
278 scoped_ptr<WaitForCommandState> wait_for_token_; | 277 scoped_ptr<WaitForCommandState> wait_for_token_; |
279 scoped_ptr<WaitForCommandState> wait_for_get_offset_; | 278 scoped_ptr<WaitForCommandState> wait_for_get_offset_; |
280 | 279 |
281 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); | 280 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); |
282 }; | 281 }; |
283 | 282 |
284 } // namespace content | 283 } // namespace content |
285 | 284 |
286 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ | 285 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ |
OLD | NEW |