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

Unified Diff: chrome/renderer/gpu_channel_host.cc

Issue 6673003: Move GPU messages to content. I've also switched the IPC structs to use the ... (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/renderer/gpu_channel_host.h ('k') | chrome/renderer/gpu_video_decoder_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/gpu_channel_host.cc
===================================================================
--- chrome/renderer/gpu_channel_host.cc (revision 77652)
+++ chrome/renderer/gpu_channel_host.cc (working copy)
@@ -4,12 +4,11 @@
#include "chrome/renderer/gpu_channel_host.h"
-#include "chrome/common/gpu_create_command_buffer_config.h"
-#include "chrome/common/gpu_messages.h"
#include "chrome/renderer/command_buffer_proxy.h"
#include "chrome/renderer/gpu_video_service_host.h"
#include "chrome/renderer/render_thread.h"
#include "content/common/child_process.h"
+#include "content/common/gpu_messages.h"
GpuChannelHost::GpuChannelHost() : state_(kUnconnected) {
}
@@ -105,7 +104,9 @@
if (!channel_.get())
return NULL;
- GPUCreateCommandBufferConfig init_params(allowed_extensions, attribs);
+ GPUCreateCommandBufferConfig init_params;
+ init_params.allowed_extensions = allowed_extensions;
+ init_params.attribs = attribs;
int32 route_id;
if (!RenderThread::current()->Send(
new GpuHostMsg_CreateViewCommandBuffer(
@@ -136,7 +137,9 @@
if (!channel_.get())
return NULL;
- GPUCreateCommandBufferConfig init_params(allowed_extensions, attribs);
+ GPUCreateCommandBufferConfig init_params;
+ init_params.allowed_extensions = allowed_extensions;
+ init_params.attribs = attribs;
int32 parent_route_id = parent ? parent->route_id() : 0;
int32 route_id;
if (!Send(new GpuChannelMsg_CreateOffscreenCommandBuffer(parent_route_id,
« no previous file with comments | « chrome/renderer/gpu_channel_host.h ('k') | chrome/renderer/gpu_video_decoder_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698