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

Side by Side Diff: chrome/renderer/command_buffer_proxy.cc

Issue 1136006: Calling OpenGL from the renderer process. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 9 months 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 | « chrome/renderer/command_buffer_proxy.h ('k') | chrome/renderer/ggl/ggl.h » ('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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 #include "base/logging.h" 5 #include "base/logging.h"
6 #include "base/process_util.h" 6 #include "base/process_util.h"
7 #include "chrome/common/gpu_messages.h" 7 #include "chrome/common/gpu_messages.h"
8 #include "chrome/common/plugin_messages.h" 8 #include "chrome/common/plugin_messages.h"
9 #include "chrome/renderer/command_buffer_proxy.h" 9 #include "chrome/renderer/command_buffer_proxy.h"
10 #include "chrome/renderer/plugin_channel_host.h" 10 #include "chrome/renderer/plugin_channel_host.h"
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 MessageLoop::current()->PostNonNestableTask( 176 MessageLoop::current()->PostNonNestableTask(
177 FROM_HERE, notify_repaint_task_.release()); 177 FROM_HERE, notify_repaint_task_.release());
178 } 178 }
179 179
180 void CommandBufferProxy::SetParseError( 180 void CommandBufferProxy::SetParseError(
181 gpu::error::Error error) { 181 gpu::error::Error error) {
182 // Not implemented in proxy. 182 // Not implemented in proxy.
183 NOTREACHED(); 183 NOTREACHED();
184 } 184 }
185 185
186 void CommandBufferProxy::ResizeOffscreenFrameBuffer(const gfx::Size& size) {
187 Send(new GpuCommandBufferMsg_ResizeOffscreenFrameBuffer(route_id_, size));
188 }
189
186 #if defined(OS_MACOSX) 190 #if defined(OS_MACOSX)
187 void CommandBufferProxy::SetWindowSize(int32 width, int32 height) { 191 void CommandBufferProxy::SetWindowSize(int32 width, int32 height) {
188 Send(new GpuCommandBufferMsg_SetWindowSize(route_id_, width, height)); 192 Send(new GpuCommandBufferMsg_SetWindowSize(route_id_, width, height));
189 } 193 }
190 #endif 194 #endif
191 195
192 void CommandBufferProxy::AsyncGetState(Task* completion_task) { 196 void CommandBufferProxy::AsyncGetState(Task* completion_task) {
193 IPC::Message* message = new GpuCommandBufferMsg_AsyncGetState(route_id_); 197 IPC::Message* message = new GpuCommandBufferMsg_AsyncGetState(route_id_);
194 198
195 // Do not let a synchronous flush hold up this message. If this handler is 199 // Do not let a synchronous flush hold up this message. If this handler is
(...skipping 25 matching lines...) Expand all
221 pending_async_flush_tasks_.pop(); 225 pending_async_flush_tasks_.pop();
222 226
223 if (task.get()) { 227 if (task.get()) {
224 // Although we need need to update last_state_ while potentially waiting 228 // Although we need need to update last_state_ while potentially waiting
225 // for a synchronous flush to complete, we do not need to invoke the 229 // for a synchronous flush to complete, we do not need to invoke the
226 // callback synchonously. Also, post it as a non nestable task so it is 230 // callback synchonously. Also, post it as a non nestable task so it is
227 // always invoked by the outermost message loop. 231 // always invoked by the outermost message loop.
228 MessageLoop::current()->PostNonNestableTask(FROM_HERE, task.release()); 232 MessageLoop::current()->PostNonNestableTask(FROM_HERE, task.release());
229 } 233 }
230 } 234 }
OLDNEW
« no previous file with comments | « chrome/renderer/command_buffer_proxy.h ('k') | chrome/renderer/ggl/ggl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698