| 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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 | 123 |
| 124 const Workarounds& workarounds() const { | 124 const Workarounds& workarounds() const { |
| 125 return workarounds_; | 125 return workarounds_; |
| 126 } | 126 } |
| 127 | 127 |
| 128 const gfx::GLVersionInfo& gl_version_info() const { | 128 const gfx::GLVersionInfo& gl_version_info() const { |
| 129 DCHECK(gl_version_info_.get()); | 129 DCHECK(gl_version_info_.get()); |
| 130 return *(gl_version_info_.get()); | 130 return *(gl_version_info_.get()); |
| 131 } | 131 } |
| 132 | 132 |
| 133 bool IsES3Capable() const; |
| 134 void EnableES3Validators(); |
| 135 |
| 133 private: | 136 private: |
| 134 friend class base::RefCounted<FeatureInfo>; | 137 friend class base::RefCounted<FeatureInfo>; |
| 135 friend class BufferManagerClientSideArraysTest; | 138 friend class BufferManagerClientSideArraysTest; |
| 136 | 139 |
| 137 typedef base::hash_map<GLenum, ValueValidator<GLenum> > ValidatorMap; | 140 typedef base::hash_map<GLenum, ValueValidator<GLenum> > ValidatorMap; |
| 138 ValidatorMap texture_format_validators_; | 141 ValidatorMap texture_format_validators_; |
| 139 | 142 |
| 140 ~FeatureInfo(); | 143 ~FeatureInfo(); |
| 141 | 144 |
| 142 void AddExtensionString(const char* s); | 145 void AddExtensionString(const char* s); |
| (...skipping 15 matching lines...) Expand all Loading... |
| 158 | 161 |
| 159 scoped_ptr<gfx::GLVersionInfo> gl_version_info_; | 162 scoped_ptr<gfx::GLVersionInfo> gl_version_info_; |
| 160 | 163 |
| 161 DISALLOW_COPY_AND_ASSIGN(FeatureInfo); | 164 DISALLOW_COPY_AND_ASSIGN(FeatureInfo); |
| 162 }; | 165 }; |
| 163 | 166 |
| 164 } // namespace gles2 | 167 } // namespace gles2 |
| 165 } // namespace gpu | 168 } // namespace gpu |
| 166 | 169 |
| 167 #endif // GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_ | 170 #endif // GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_ |
| OLD | NEW |