summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/gpu_channel_host.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/renderer/gpu_channel_host.h')
-rw-r--r--chrome/renderer/gpu_channel_host.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/renderer/gpu_channel_host.h b/chrome/renderer/gpu_channel_host.h
index e35d40d..4df29a4 100644
--- a/chrome/renderer/gpu_channel_host.h
+++ b/chrome/renderer/gpu_channel_host.h
@@ -10,6 +10,7 @@
#include "base/hash_tables.h"
#include "base/scoped_ptr.h"
+#include "chrome/common/gpu_info.h"
#include "chrome/common/message_router.h"
#include "gfx/native_widget_types.h"
#include "gfx/size.h"
@@ -44,6 +45,10 @@ class GpuChannelHost : public IPC::Channel::Listener,
State state() const { return state_; }
+ // The GPU stats reported by the GPU process.
+ void set_gpu_info(const GPUInfo& gpu_info);
+ const GPUInfo& gpu_info() const;
+
// IPC::Channel::Listener implementation:
virtual void OnMessageReceived(const IPC::Message& msg);
virtual void OnChannelConnected(int32 peer_pid);
@@ -67,6 +72,8 @@ class GpuChannelHost : public IPC::Channel::Listener,
private:
State state_;
+ GPUInfo gpu_info_;
+
scoped_ptr<IPC::SyncChannel> channel_;
// Used to implement message routing functionality to CommandBufferProxy