Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(413)

Side by Side Diff: content/common/gpu/client/command_buffer_proxy_impl.h

Issue 11362053: IPC to generate mailbox names on the GPU process IO thread. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | content/common/gpu/client/command_buffer_proxy_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | content/common/gpu/client/command_buffer_proxy_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698