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

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

Issue 7979031: Code cleanup: rename DisallowedExtensions to DisallowedFeature. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 <string> 8 #include <string>
9 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" 9 #include "gpu/command_buffer/service/gles2_cmd_decoder.h"
10 #include "gpu/command_buffer/service/gles2_cmd_validation.h" 10 #include "gpu/command_buffer/service/gles2_cmd_validation.h"
(...skipping 23 matching lines...) Expand all
34 bool enable_texture_half_float_linear; 34 bool enable_texture_half_float_linear;
35 bool chromium_webglsl; 35 bool chromium_webglsl;
36 }; 36 };
37 37
38 FeatureInfo(); 38 FeatureInfo();
39 ~FeatureInfo(); 39 ~FeatureInfo();
40 40
41 // If allowed features = NULL or "*", all features are allowed. Otherwise 41 // If allowed features = NULL or "*", all features are allowed. Otherwise
42 // only features that match the strings in allowed_features are allowed. 42 // only features that match the strings in allowed_features are allowed.
43 bool Initialize(const char* allowed_features); 43 bool Initialize(const char* allowed_features);
44 bool Initialize(const DisallowedExtensions& disallowed_extensions, 44 bool Initialize(const DisallowedFeatures& disallowed_features,
45 const char* allowed_features); 45 const char* allowed_features);
46 46
47 // Turns on certain features if they can be turned on. NULL turns on 47 // Turns on certain features if they can be turned on. NULL turns on
48 // all available features. 48 // all available features.
49 void AddFeatures(const char* desired_features); 49 void AddFeatures(const char* desired_features);
50 50
51 const Validators* validators() const { 51 const Validators* validators() const {
52 return &validators_; 52 return &validators_;
53 } 53 }
54 54
55 const std::string& extensions() const { 55 const std::string& extensions() const {
56 return extensions_; 56 return extensions_;
57 } 57 }
58 58
59 const FeatureFlags& feature_flags() const { 59 const FeatureFlags& feature_flags() const {
60 return feature_flags_; 60 return feature_flags_;
61 } 61 }
62 62
63 private: 63 private:
64 void AddExtensionString(const std::string& str); 64 void AddExtensionString(const std::string& str);
65 65
66 Validators validators_; 66 Validators validators_;
67 67
68 DisallowedExtensions disallowed_extensions_; 68 DisallowedFeatures disallowed_features_;
69 69
70 // The extensions string returned by glGetString(GL_EXTENSIONS); 70 // The extensions string returned by glGetString(GL_EXTENSIONS);
71 std::string extensions_; 71 std::string extensions_;
72 72
73 // Flags for some features 73 // Flags for some features
74 FeatureFlags feature_flags_; 74 FeatureFlags feature_flags_;
75 75
76 DISALLOW_COPY_AND_ASSIGN(FeatureInfo); 76 DISALLOW_COPY_AND_ASSIGN(FeatureInfo);
77 }; 77 };
78 78
79 } // namespace gles2 79 } // namespace gles2
80 } // namespace gpu 80 } // namespace gpu
81 81
82 #endif // GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_ 82 #endif // GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_
83 83
84 84
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/context_group_unittest.cc ('k') | gpu/command_buffer/service/feature_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698