summaryrefslogtreecommitdiffstats
path: root/chrome/gpu
diff options
context:
space:
mode:
authorrlp@chromium.org <rlp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-14 18:21:44 +0000
committerrlp@chromium.org <rlp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-14 18:21:44 +0000
commita1009b357fbb819c1bb5f364826ae0786bbfed41 (patch)
tree23b96f427f7a0da4d6b2f6e9bb9a36dd348adf66 /chrome/gpu
parent19fbc16c5c296ed9ef03719d01c7fd39aac1a833 (diff)
downloadchromium_src-a1009b357fbb819c1bb5f364826ae0786bbfed41.zip
chromium_src-a1009b357fbb819c1bb5f364826ae0786bbfed41.tar.gz
chromium_src-a1009b357fbb819c1bb5f364826ae0786bbfed41.tar.bz2
Collecting gpu information when the gpu process creates a channel. Adding the gpu_info into the messages sent between gpu process and browser and sending over the browser. Will do something with it in the browser in another CR.
BUG=38736 TEST=none Review URL: http://codereview.chromium.org/2857035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52356 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/gpu')
-rw-r--r--chrome/gpu/gpu_thread.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/chrome/gpu/gpu_thread.cc b/chrome/gpu/gpu_thread.cc
index d73fc92..d076ba2 100644
--- a/chrome/gpu/gpu_thread.cc
+++ b/chrome/gpu/gpu_thread.cc
@@ -9,7 +9,9 @@
#include "base/command_line.h"
#include "chrome/common/child_process.h"
+#include "chrome/common/gpu_info.h"
#include "chrome/common/gpu_messages.h"
+#include "chrome/gpu/gpu_info_collector.h"
#if defined(OS_WIN)
#include "chrome/gpu/gpu_view_win.h"
@@ -111,7 +113,10 @@ void GpuThread::OnEstablishChannel(int renderer_id) {
#endif
}
- Send(new GpuHostMsg_ChannelEstablished(channel_handle));
+ GPUInfo gpu_info;
+ gpu_info_collector::CollectGraphicsInfo(gpu_info);
+
+ Send(new GpuHostMsg_ChannelEstablished(channel_handle, gpu_info));
}
void GpuThread::OnSynchronize() {