OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_ | 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_ |
6 #define GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_ | 6 #define GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include "base/containers/hash_tables.h" | 10 #include "base/containers/hash_tables.h" |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 #define GPU_OP(type, name) bool name; | 87 #define GPU_OP(type, name) bool name; |
88 GPU_DRIVER_BUG_WORKAROUNDS(GPU_OP) | 88 GPU_DRIVER_BUG_WORKAROUNDS(GPU_OP) |
89 #undef GPU_OP | 89 #undef GPU_OP |
90 | 90 |
91 // Note: 0 here means use driver limit. | 91 // Note: 0 here means use driver limit. |
92 GLint max_texture_size; | 92 GLint max_texture_size; |
93 GLint max_cube_map_texture_size; | 93 GLint max_cube_map_texture_size; |
94 GLint max_fragment_uniform_vectors; | 94 GLint max_fragment_uniform_vectors; |
95 GLint max_varying_vectors; | 95 GLint max_varying_vectors; |
96 GLint max_vertex_uniform_vectors; | 96 GLint max_vertex_uniform_vectors; |
| 97 GLint max_copy_texture_chromium_size; |
97 }; | 98 }; |
98 | 99 |
99 // Constructor with workarounds taken from the current process's CommandLine | 100 // Constructor with workarounds taken from the current process's CommandLine |
100 FeatureInfo(); | 101 FeatureInfo(); |
101 | 102 |
102 // Constructor with workarounds taken from |command_line| | 103 // Constructor with workarounds taken from |command_line| |
103 FeatureInfo(const base::CommandLine& command_line); | 104 FeatureInfo(const base::CommandLine& command_line); |
104 | 105 |
105 // Initializes the feature information. Needs a current GL context. | 106 // Initializes the feature information. Needs a current GL context. |
106 bool Initialize(); | 107 bool Initialize(); |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 | 165 |
165 scoped_ptr<gfx::GLVersionInfo> gl_version_info_; | 166 scoped_ptr<gfx::GLVersionInfo> gl_version_info_; |
166 | 167 |
167 DISALLOW_COPY_AND_ASSIGN(FeatureInfo); | 168 DISALLOW_COPY_AND_ASSIGN(FeatureInfo); |
168 }; | 169 }; |
169 | 170 |
170 } // namespace gles2 | 171 } // namespace gles2 |
171 } // namespace gpu | 172 } // namespace gpu |
172 | 173 |
173 #endif // GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_ | 174 #endif // GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_ |
OLD | NEW |