Chromium Code Reviews| Index: chrome/common/gpu_param_traits.h | 
| =================================================================== | 
| --- chrome/common/gpu_param_traits.h (revision 68066) | 
| +++ chrome/common/gpu_param_traits.h (working copy) | 
| @@ -11,6 +11,7 @@ | 
| #include "chrome/common/common_param_traits.h" | 
| #include "chrome/common/dx_diag_node.h" | 
| #include "chrome/common/gpu_create_command_buffer_config.h" | 
| +#include "chrome/common/gpu_feature_flags.h" | 
| 
 
brettw
2010/12/03 00:11:38
Can this be forward declared instead of introducin
 
Zhenyao Mo
2010/12/03 18:29:57
Can't do it here.
On 2010/12/03 00:11:38, brettw
 
 | 
| #include "chrome/common/gpu_info.h" | 
| #include "gfx/native_widget_types.h" | 
| #include "gfx/rect.h" | 
| @@ -64,6 +65,14 @@ | 
| #endif | 
| template <> | 
| +struct ParamTraits<GpuFeatureFlags> { | 
| + typedef GpuFeatureFlags 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<GPUInfo> { | 
| typedef GPUInfo param_type; | 
| static void Write(Message* m, const param_type& p); |