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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 | 119 |
120 private: | 120 private: |
121 friend class base::RefCounted<FeatureInfo>; | 121 friend class base::RefCounted<FeatureInfo>; |
122 friend class BufferManagerClientSideArraysTest; | 122 friend class BufferManagerClientSideArraysTest; |
123 | 123 |
124 typedef base::hash_map<GLenum, ValueValidator<GLenum> > ValidatorMap; | 124 typedef base::hash_map<GLenum, ValueValidator<GLenum> > ValidatorMap; |
125 ValidatorMap texture_format_validators_; | 125 ValidatorMap texture_format_validators_; |
126 | 126 |
127 ~FeatureInfo(); | 127 ~FeatureInfo(); |
128 | 128 |
129 void AddExtensionString(const std::string& str); | 129 void AddExtensionString(const char* s); |
130 void InitializeBasicState(const base::CommandLine& command_line); | 130 void InitializeBasicState(const base::CommandLine& command_line); |
131 void InitializeFeatures(); | 131 void InitializeFeatures(); |
132 | 132 |
133 Validators validators_; | 133 Validators validators_; |
134 | 134 |
135 DisallowedFeatures disallowed_features_; | 135 DisallowedFeatures disallowed_features_; |
136 | 136 |
137 // The extensions string returned by glGetString(GL_EXTENSIONS); | 137 // The extensions string returned by glGetString(GL_EXTENSIONS); |
138 std::string extensions_; | 138 std::string extensions_; |
139 | 139 |
140 // Flags for some features | 140 // Flags for some features |
141 FeatureFlags feature_flags_; | 141 FeatureFlags feature_flags_; |
142 | 142 |
143 // Flags for Workarounds. | 143 // Flags for Workarounds. |
144 Workarounds workarounds_; | 144 Workarounds workarounds_; |
145 | 145 |
146 DISALLOW_COPY_AND_ASSIGN(FeatureInfo); | 146 DISALLOW_COPY_AND_ASSIGN(FeatureInfo); |
147 }; | 147 }; |
148 | 148 |
149 } // namespace gles2 | 149 } // namespace gles2 |
150 } // namespace gpu | 150 } // namespace gpu |
151 | 151 |
152 #endif // GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_ | 152 #endif // GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_ |
OLD | NEW |