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

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

Issue 6713005: Move a bunch of gpu/worker/plugin renderer code to content. I temporarily disabled the sad plugi... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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 | « content/renderer/command_buffer_proxy.h ('k') | content/renderer/ggl.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) 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 "content/renderer/command_buffer_proxy.h"
6
5 #include "base/logging.h" 7 #include "base/logging.h"
6 #include "base/process_util.h" 8 #include "base/process_util.h"
7 #include "base/shared_memory.h" 9 #include "base/shared_memory.h"
8 #include "base/task.h" 10 #include "base/task.h"
9 #include "chrome/common/render_messages.h" 11 #include "chrome/common/render_messages.h"
10 #include "chrome/renderer/command_buffer_proxy.h"
11 #include "chrome/renderer/plugin_channel_host.h"
12 #include "chrome/renderer/render_thread.h" 12 #include "chrome/renderer/render_thread.h"
13 #include "content/common/gpu_messages.h" 13 #include "content/common/gpu_messages.h"
14 #include "content/common/plugin_messages.h" 14 #include "content/common/plugin_messages.h"
15 #include "content/renderer/plugin_channel_host.h"
15 #include "gpu/command_buffer/common/cmd_buffer_common.h" 16 #include "gpu/command_buffer/common/cmd_buffer_common.h"
16 #include "ui/gfx/size.h" 17 #include "ui/gfx/size.h"
17 18
18 using gpu::Buffer; 19 using gpu::Buffer;
19 20
20 CommandBufferProxy::CommandBufferProxy( 21 CommandBufferProxy::CommandBufferProxy(
21 IPC::Channel::Sender* channel, 22 IPC::Channel::Sender* channel,
22 int route_id) 23 int route_id)
23 : num_entries_(0), 24 : num_entries_(0),
24 channel_(channel), 25 channel_(channel),
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 pending_async_flush_tasks_.pop(); 400 pending_async_flush_tasks_.pop();
400 401
401 if (task.get()) { 402 if (task.get()) {
402 // Although we need need to update last_state_ while potentially waiting 403 // Although we need need to update last_state_ while potentially waiting
403 // for a synchronous flush to complete, we do not need to invoke the 404 // for a synchronous flush to complete, we do not need to invoke the
404 // callback synchonously. Also, post it as a non nestable task so it is 405 // callback synchonously. Also, post it as a non nestable task so it is
405 // always invoked by the outermost message loop. 406 // always invoked by the outermost message loop.
406 MessageLoop::current()->PostNonNestableTask(FROM_HERE, task.release()); 407 MessageLoop::current()->PostNonNestableTask(FROM_HERE, task.release());
407 } 408 }
408 } 409 }
OLDNEW
« no previous file with comments | « content/renderer/command_buffer_proxy.h ('k') | content/renderer/ggl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698