| 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 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 gfx::GpuMemoryBufferHandle handle, | 212 gfx::GpuMemoryBufferHandle handle, |
| 213 gfx::Size size, | 213 gfx::Size size, |
| 214 gfx::GpuMemoryBuffer::Format format, | 214 gfx::GpuMemoryBuffer::Format format, |
| 215 uint32 internalformat); | 215 uint32 internalformat); |
| 216 void OnDestroyImage(int32 id); | 216 void OnDestroyImage(int32 id); |
| 217 | 217 |
| 218 void OnCommandProcessed(); | 218 void OnCommandProcessed(); |
| 219 void OnParseError(); | 219 void OnParseError(); |
| 220 void OnCreateStreamTexture( | 220 void OnCreateStreamTexture( |
| 221 uint32 texture_id, int32 stream_id, bool* succeeded); | 221 uint32 texture_id, int32 stream_id, bool* succeeded); |
| 222 void OnCreateStreamTextureImage(int32 image_id, |
| 223 int32 stream_id, |
| 224 bool* succeeded); |
| 222 | 225 |
| 223 void ReportState(); | 226 void ReportState(); |
| 224 | 227 |
| 225 // Wrapper for GpuScheduler::PutChanged that sets the crash report URL. | 228 // Wrapper for GpuScheduler::PutChanged that sets the crash report URL. |
| 226 void PutChanged(); | 229 void PutChanged(); |
| 227 | 230 |
| 228 // Poll the command buffer to execute work. | 231 // Poll the command buffer to execute work. |
| 229 void PollWork(); | 232 void PollWork(); |
| 230 | 233 |
| 231 // Whether this command buffer needs to be polled again in the future. | 234 // Whether this command buffer needs to be polled again in the future. |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 288 size_t total_gpu_memory_; | 291 size_t total_gpu_memory_; |
| 289 scoped_ptr<WaitForCommandState> wait_for_token_; | 292 scoped_ptr<WaitForCommandState> wait_for_token_; |
| 290 scoped_ptr<WaitForCommandState> wait_for_get_offset_; | 293 scoped_ptr<WaitForCommandState> wait_for_get_offset_; |
| 291 | 294 |
| 292 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); | 295 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); |
| 293 }; | 296 }; |
| 294 | 297 |
| 295 } // namespace content | 298 } // namespace content |
| 296 | 299 |
| 297 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ | 300 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ |
| OLD | NEW |