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

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

Issue 6713084: Move the rest of the renderer->browser messages that belong in content. Also do a bunch of cleanup: (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
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" 5 #include "content/renderer/command_buffer_proxy.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/process_util.h" 8 #include "base/process_util.h"
9 #include "base/shared_memory.h" 9 #include "base/shared_memory.h"
10 #include "base/task.h" 10 #include "base/task.h"
11 #include "chrome/common/render_messages.h"
12 #include "chrome/renderer/render_thread.h" 11 #include "chrome/renderer/render_thread.h"
13 #include "content/common/gpu_messages.h" 12 #include "content/common/gpu_messages.h"
14 #include "content/common/plugin_messages.h" 13 #include "content/common/plugin_messages.h"
14 #include "content/common/view_messages.h"
15 #include "content/renderer/plugin_channel_host.h" 15 #include "content/renderer/plugin_channel_host.h"
16 #include "gpu/command_buffer/common/cmd_buffer_common.h" 16 #include "gpu/command_buffer/common/cmd_buffer_common.h"
17 #include "ui/gfx/size.h" 17 #include "ui/gfx/size.h"
18 18
19 using gpu::Buffer; 19 using gpu::Buffer;
20 20
21 CommandBufferProxy::CommandBufferProxy( 21 CommandBufferProxy::CommandBufferProxy(
22 IPC::Channel::Sender* channel, 22 IPC::Channel::Sender* channel,
23 int route_id) 23 int route_id)
24 : num_entries_(0), 24 : num_entries_(0),
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 pending_async_flush_tasks_.pop(); 400 pending_async_flush_tasks_.pop();
401 401
402 if (task.get()) { 402 if (task.get()) {
403 // Although we need need to update last_state_ while potentially waiting 403 // Although we need need to update last_state_ while potentially waiting
404 // 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
405 // 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
406 // always invoked by the outermost message loop. 406 // always invoked by the outermost message loop.
407 MessageLoop::current()->PostNonNestableTask(FROM_HERE, task.release()); 407 MessageLoop::current()->PostNonNestableTask(FROM_HERE, task.release());
408 } 408 }
409 } 409 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698