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_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ | 5 #ifndef CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ |
6 #define CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ | 6 #define CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ |
7 | 7 |
8 #if defined(ENABLE_GPU) | 8 #if defined(ENABLE_GPU) |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 bool Send(IPC::Message* msg); | 147 bool Send(IPC::Message* msg); |
148 | 148 |
149 // Message handlers: | 149 // Message handlers: |
150 void OnUpdateState(const gpu::CommandBuffer::State& state); | 150 void OnUpdateState(const gpu::CommandBuffer::State& state); |
151 void OnNotifyRepaint(); | 151 void OnNotifyRepaint(); |
152 void OnDestroyed(gpu::error::ContextLostReason reason); | 152 void OnDestroyed(gpu::error::ContextLostReason reason); |
153 void OnEchoAck(); | 153 void OnEchoAck(); |
154 void OnConsoleMessage(const GPUCommandBufferConsoleMessage& message); | 154 void OnConsoleMessage(const GPUCommandBufferConsoleMessage& message); |
155 void OnSetMemoryAllocation(const GpuMemoryAllocationForRenderer& allocation); | 155 void OnSetMemoryAllocation(const GpuMemoryAllocationForRenderer& allocation); |
156 void OnSignalSyncPointAck(uint32 id); | 156 void OnSignalSyncPointAck(uint32 id); |
| 157 void OnGenerateMailboxNamesReply(const std::vector<std::string>& names); |
157 | 158 |
158 // Try to read an updated copy of the state from shared memory. | 159 // Try to read an updated copy of the state from shared memory. |
159 void TryUpdateState(); | 160 void TryUpdateState(); |
160 | 161 |
161 // Local cache of id to transfer buffer mapping. | 162 // Local cache of id to transfer buffer mapping. |
162 TransferBufferMap transfer_buffers_; | 163 TransferBufferMap transfer_buffers_; |
163 | 164 |
164 // Zero or more (unowned!) video decoder hosts using this proxy, keyed by | 165 // Zero or more (unowned!) video decoder hosts using this proxy, keyed by |
165 // their decoder_route_id. | 166 // their decoder_route_id. |
166 Decoders video_decoder_hosts_; | 167 Decoders video_decoder_hosts_; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 int32 state_buffer_; | 199 int32 state_buffer_; |
199 | 200 |
200 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxyImpl); | 201 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxyImpl); |
201 }; | 202 }; |
202 | 203 |
203 } // namespace content | 204 } // namespace content |
204 | 205 |
205 #endif // ENABLE_GPU | 206 #endif // ENABLE_GPU |
206 | 207 |
207 #endif // CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ | 208 #endif // CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ |
OLD | NEW |