| 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 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 IPC::Message* reply_message); | 157 IPC::Message* reply_message); |
| 158 void OnSetGetBuffer(int32 shm_id, IPC::Message* reply_message); | 158 void OnSetGetBuffer(int32 shm_id, IPC::Message* reply_message); |
| 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 void OnEcho(const IPC::Message& message); | 169 void OnEcho(const IPC::Message& message); |
| 169 void OnRescheduled(); | 170 void OnRescheduled(); |
| 170 void OnRegisterTransferBuffer(int32 id, | 171 void OnRegisterTransferBuffer(int32 id, |
| 171 base::SharedMemoryHandle transfer_buffer, | 172 base::SharedMemoryHandle transfer_buffer, |
| 172 uint32 size); | 173 uint32 size); |
| 173 void OnDestroyTransferBuffer(int32 id); | 174 void OnDestroyTransferBuffer(int32 id); |
| 174 void OnGetTransferBuffer(int32 id, IPC::Message* reply_message); | 175 void OnGetTransferBuffer(int32 id, IPC::Message* reply_message); |
| 175 | 176 |
| 176 void OnCreateVideoDecoder(media::VideoCodecProfile profile, | 177 void OnCreateVideoDecoder(media::VideoCodecProfile profile, |
| 177 int32 route_id, | 178 int32 route_id, |
| (...skipping 20 matching lines...) Expand all Loading... |
| 198 | 199 |
| 199 void OnRegisterGpuMemoryBuffer(int32 id, | 200 void OnRegisterGpuMemoryBuffer(int32 id, |
| 200 gfx::GpuMemoryBufferHandle handle, | 201 gfx::GpuMemoryBufferHandle handle, |
| 201 uint32 width, | 202 uint32 width, |
| 202 uint32 height, | 203 uint32 height, |
| 203 uint32 internalformat); | 204 uint32 internalformat); |
| 204 void OnUnregisterGpuMemoryBuffer(int32 id); | 205 void OnUnregisterGpuMemoryBuffer(int32 id); |
| 205 | 206 |
| 206 void OnCommandProcessed(); | 207 void OnCommandProcessed(); |
| 207 void OnParseError(); | 208 void OnParseError(); |
| 208 void OnSetLatencyInfo(const std::vector<ui::LatencyInfo>& latency_info); | |
| 209 void OnCreateStreamTexture( | 209 void OnCreateStreamTexture( |
| 210 uint32 texture_id, int32 stream_id, bool* succeeded); | 210 uint32 texture_id, int32 stream_id, bool* succeeded); |
| 211 | 211 |
| 212 void ReportState(); | 212 void ReportState(); |
| 213 | 213 |
| 214 // Wrapper for GpuScheduler::PutChanged that sets the crash report URL. | 214 // Wrapper for GpuScheduler::PutChanged that sets the crash report URL. |
| 215 void PutChanged(); | 215 void PutChanged(); |
| 216 | 216 |
| 217 // Poll the command buffer to execute work. | 217 // Poll the command buffer to execute work. |
| 218 void PollWork(); | 218 void PollWork(); |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 277 size_t total_gpu_memory_; | 277 size_t total_gpu_memory_; |
| 278 scoped_ptr<WaitForCommandState> wait_for_token_; | 278 scoped_ptr<WaitForCommandState> wait_for_token_; |
| 279 scoped_ptr<WaitForCommandState> wait_for_get_offset_; | 279 scoped_ptr<WaitForCommandState> wait_for_get_offset_; |
| 280 | 280 |
| 281 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); | 281 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); |
| 282 }; | 282 }; |
| 283 | 283 |
| 284 } // namespace content | 284 } // namespace content |
| 285 | 285 |
| 286 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ | 286 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ |
| OLD | NEW |