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

Side by Side Diff: chrome/common/gpu_param_traits.h

Issue 5612002: Blacklist bad GPU drivers: currenly we disable all gpu related features if th... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_COMMON_GPU_PARAM_TRAITS_H_ 5 #ifndef CHROME_COMMON_GPU_PARAM_TRAITS_H_
6 #define CHROME_COMMON_GPU_PARAM_TRAITS_H_ 6 #define CHROME_COMMON_GPU_PARAM_TRAITS_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/process.h" 10 #include "base/process.h"
11 #include "chrome/common/common_param_traits.h" 11 #include "chrome/common/common_param_traits.h"
12 #include "chrome/common/dx_diag_node.h" 12 #include "chrome/common/dx_diag_node.h"
13 #include "chrome/common/gpu_create_command_buffer_config.h" 13 #include "chrome/common/gpu_create_command_buffer_config.h"
14 #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
14 #include "chrome/common/gpu_info.h" 15 #include "chrome/common/gpu_info.h"
15 #include "gfx/native_widget_types.h" 16 #include "gfx/native_widget_types.h"
16 #include "gfx/rect.h" 17 #include "gfx/rect.h"
17 #include "gfx/size.h" 18 #include "gfx/size.h"
18 #include "gpu/command_buffer/common/command_buffer.h" 19 #include "gpu/command_buffer/common/command_buffer.h"
19 20
20 #if defined(OS_MACOSX) 21 #if defined(OS_MACOSX)
21 // Parameters for the GpuHostMsg_AcceleratedSurfaceSetIOSurface 22 // Parameters for the GpuHostMsg_AcceleratedSurfaceSetIOSurface
22 // message, which has too many parameters to be sent with the 23 // message, which has too many parameters to be sent with the
23 // predefined IPC macros. 24 // predefined IPC macros.
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 template <> 58 template <>
58 struct ParamTraits<GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params> { 59 struct ParamTraits<GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params> {
59 typedef GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params param_type; 60 typedef GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params param_type;
60 static void Write(Message* m, const param_type& p); 61 static void Write(Message* m, const param_type& p);
61 static bool Read(const Message* m, void** iter, param_type* p); 62 static bool Read(const Message* m, void** iter, param_type* p);
62 static void Log(const param_type& p, std::string* l); 63 static void Log(const param_type& p, std::string* l);
63 }; 64 };
64 #endif 65 #endif
65 66
66 template <> 67 template <>
68 struct ParamTraits<GpuFeatureFlags> {
69 typedef GpuFeatureFlags param_type;
70 static void Write(Message* m, const param_type& p);
71 static bool Read(const Message* m, void** iter, param_type* p);
72 static void Log(const param_type& p, std::string* l);
73 };
74
75 template <>
67 struct ParamTraits<GPUInfo> { 76 struct ParamTraits<GPUInfo> {
68 typedef GPUInfo param_type; 77 typedef GPUInfo param_type;
69 static void Write(Message* m, const param_type& p); 78 static void Write(Message* m, const param_type& p);
70 static bool Read(const Message* m, void** iter, param_type* p); 79 static bool Read(const Message* m, void** iter, param_type* p);
71 static void Log(const param_type& p, std::string* l); 80 static void Log(const param_type& p, std::string* l);
72 }; 81 };
73 82
74 template <> 83 template <>
75 struct ParamTraits<DxDiagNode> { 84 struct ParamTraits<DxDiagNode> {
76 typedef DxDiagNode param_type; 85 typedef DxDiagNode param_type;
(...skipping 14 matching lines...) Expand all
91 struct ParamTraits<GPUCreateCommandBufferConfig> { 100 struct ParamTraits<GPUCreateCommandBufferConfig> {
92 typedef GPUCreateCommandBufferConfig param_type; 101 typedef GPUCreateCommandBufferConfig param_type;
93 static void Write(Message* m, const param_type& p); 102 static void Write(Message* m, const param_type& p);
94 static bool Read(const Message* m, void** iter, param_type* p); 103 static bool Read(const Message* m, void** iter, param_type* p);
95 static void Log(const param_type& p, std::string* l); 104 static void Log(const param_type& p, std::string* l);
96 }; 105 };
97 106
98 } // namespace IPC 107 } // namespace IPC
99 108
100 #endif // CHROME_COMMON_GPU_PARAM_TRAITS_H_ 109 #endif // CHROME_COMMON_GPU_PARAM_TRAITS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698