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

Side by Side Diff: gpu/command_buffer/service/feature_info.h

Issue 571073003: Make the GPU feature info code more compact. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 months 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
« no previous file with comments | « no previous file | gpu/command_buffer/service/feature_info.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | gpu/command_buffer/service/feature_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698