diff options
author | apatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-08 01:30:46 +0000 |
---|---|---|
committer | apatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-08 01:30:46 +0000 |
commit | 5c6ddd0fb21889b6aaa65e075f5ad574a04d9aab (patch) | |
tree | c2148a29cfe6360cfd174e55077815f3a99aff0e /chrome/common/gpu_param_traits.h | |
parent | c4bd23d31da3e295baa43c048590d72f9c019d9a (diff) | |
download | chromium_src-5c6ddd0fb21889b6aaa65e075f5ad574a04d9aab.zip chromium_src-5c6ddd0fb21889b6aaa65e075f5ad574a04d9aab.tar.gz chromium_src-5c6ddd0fb21889b6aaa65e075f5ad574a04d9aab.tar.bz2 |
Added DirectX Diagnostics information to about:gpu on Windows.
This includes the name of the GPU hardware and the driver version and release date and some other information that might potentially also be valuable in the GPU stats.
TEST=try
BUG=none
Review URL: http://codereview.chromium.org/3547020
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61904 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/gpu_param_traits.h')
-rw-r--r-- | chrome/common/gpu_param_traits.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/chrome/common/gpu_param_traits.h b/chrome/common/gpu_param_traits.h index d8ca851..f2c4e02 100644 --- a/chrome/common/gpu_param_traits.h +++ b/chrome/common/gpu_param_traits.h @@ -9,6 +9,7 @@ #include "base/basictypes.h" #include "base/process.h" #include "chrome/common/common_param_traits.h" +#include "chrome/common/dx_diag_node.h" #include "chrome/common/gpu_info.h" #include "chrome/common/gpu_native_window_handle.h" #include "gfx/native_widget_types.h" @@ -52,6 +53,14 @@ struct ParamTraits<GPUInfo> { }; template <> +struct ParamTraits<DxDiagNode> { + typedef DxDiagNode param_type; + static void Write(Message* m, const param_type& p); + static bool Read(const Message* m, void** iter, param_type* p); + static void Log(const param_type& p, std::string* l); +}; + +template <> struct ParamTraits<gpu::CommandBuffer::State> { typedef gpu::CommandBuffer::State param_type; static void Write(Message* m, const param_type& p); |