| 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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 GpuMemoryManager* GetMemoryManager(); | 138 GpuMemoryManager* GetMemoryManager(); |
| 139 bool MakeCurrent(); | 139 bool MakeCurrent(); |
| 140 void Destroy(); | 140 void Destroy(); |
| 141 | 141 |
| 142 // Cleans up and sends reply if OnInitialize failed. | 142 // Cleans up and sends reply if OnInitialize failed. |
| 143 void OnInitializeFailed(IPC::Message* reply_message); | 143 void OnInitializeFailed(IPC::Message* reply_message); |
| 144 | 144 |
| 145 // Message handlers: | 145 // Message handlers: |
| 146 void OnInitialize(base::SharedMemoryHandle shared_state_shm, | 146 void OnInitialize(base::SharedMemoryHandle shared_state_shm, |
| 147 IPC::Message* reply_message); | 147 IPC::Message* reply_message); |
| 148 void OnSetGetBuffer(int32 shm_id, IPC::Message* reply_message); | 148 void OnSetGetBuffer(int32 shm_id); |
| 149 void OnSetParent(int32 parent_route_id, | 149 void OnSetParent(int32 parent_route_id, |
| 150 uint32 parent_texture_id, | 150 uint32 parent_texture_id, |
| 151 IPC::Message* reply_message); | 151 IPC::Message* reply_message); |
| 152 void OnGetState(IPC::Message* reply_message); | 152 void OnGetState(IPC::Message* reply_message); |
| 153 void OnGetStateFast(IPC::Message* reply_message); | 153 void OnGetStateFast(gpu::CommandBuffer::State* state); |
| 154 void OnAsyncFlush(int32 put_offset, uint32 flush_count); | 154 void OnAsyncFlush(int32 put_offset, uint32 flush_count); |
| 155 void OnEcho(const IPC::Message& message); | 155 void OnEcho(const IPC::Message& message); |
| 156 void OnRescheduled(); | 156 void OnRescheduled(); |
| 157 void OnRegisterTransferBuffer(int32 id, | 157 void OnRegisterTransferBuffer(int32 id, |
| 158 base::SharedMemoryHandle transfer_buffer, | 158 base::SharedMemoryHandle transfer_buffer, |
| 159 uint32 size); | 159 uint32 size); |
| 160 void OnDestroyTransferBuffer(int32 id); | 160 void OnDestroyTransferBuffer(int32 id); |
| 161 void OnGetTransferBuffer(int32 id, IPC::Message* reply_message); | 161 void OnGetTransferBuffer(int32 id, IPC::Message* reply_message); |
| 162 | 162 |
| 163 void OnCreateVideoDecoder( | 163 void OnCreateVideoDecoder( |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 size_t active_url_hash_; | 252 size_t active_url_hash_; |
| 253 | 253 |
| 254 size_t total_gpu_memory_; | 254 size_t total_gpu_memory_; |
| 255 | 255 |
| 256 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); | 256 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); |
| 257 }; | 257 }; |
| 258 | 258 |
| 259 } // namespace content | 259 } // namespace content |
| 260 | 260 |
| 261 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ | 261 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ |
| OLD | NEW |