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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 // Makes this command buffer wait on a sync point. This command buffer will be | 103 // Makes this command buffer wait on a sync point. This command buffer will be |
104 // unscheduled until the command buffer that inserted that sync point reaches | 104 // unscheduled until the command buffer that inserted that sync point reaches |
105 // it, or gets destroyed. | 105 // it, or gets destroyed. |
106 void WaitSyncPoint(uint32); | 106 void WaitSyncPoint(uint32); |
107 | 107 |
108 // Makes this command buffer invoke a task when a sync point is reached, or | 108 // Makes this command buffer invoke a task when a sync point is reached, or |
109 // the command buffer that inserted that sync point is destroyed. | 109 // the command buffer that inserted that sync point is destroyed. |
110 bool SignalSyncPoint(uint32 sync_point, | 110 bool SignalSyncPoint(uint32 sync_point, |
111 const base::Closure& callback); | 111 const base::Closure& callback); |
112 | 112 |
| 113 // Generates n unique mailbox names that can be used with |
| 114 // GL_texture_mailbox_CHROMIUM. Unlike genMailboxCHROMIUM, this IPC is |
| 115 // handled only on the GPU process' IO thread, and so is not effectively |
| 116 // a finish. |
| 117 bool GenerateMailboxNames(unsigned num, std::vector<std::string>* names); |
| 118 |
113 // Set a task that will be invoked the next time the window becomes invalid | 119 // Set a task that will be invoked the next time the window becomes invalid |
114 // and needs to be repainted. Takes ownership of task. | 120 // and needs to be repainted. Takes ownership of task. |
115 void SetNotifyRepaintTask(const base::Closure& callback); | 121 void SetNotifyRepaintTask(const base::Closure& callback); |
116 | 122 |
117 // Sends an IPC message with the new state of surface visibility. | 123 // Sends an IPC message with the new state of surface visibility. |
118 bool SetSurfaceVisible(bool visible); | 124 bool SetSurfaceVisible(bool visible); |
119 | 125 |
120 void SetOnConsoleMessageCallback( | 126 void SetOnConsoleMessageCallback( |
121 const GpuConsoleMessageCallback& callback); | 127 const GpuConsoleMessageCallback& callback); |
122 | 128 |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 int32 state_buffer_; | 198 int32 state_buffer_; |
193 | 199 |
194 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxyImpl); | 200 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxyImpl); |
195 }; | 201 }; |
196 | 202 |
197 } // namespace content | 203 } // namespace content |
198 | 204 |
199 #endif // ENABLE_GPU | 205 #endif // ENABLE_GPU |
200 | 206 |
201 #endif // CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ | 207 #endif // CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ |
OLD | NEW |