| 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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 | 116 |
| 117 const FeatureFlags& feature_flags() const { | 117 const FeatureFlags& feature_flags() const { |
| 118 return feature_flags_; | 118 return feature_flags_; |
| 119 } | 119 } |
| 120 | 120 |
| 121 const Workarounds& workarounds() const { | 121 const Workarounds& workarounds() const { |
| 122 return workarounds_; | 122 return workarounds_; |
| 123 } | 123 } |
| 124 | 124 |
| 125 const gfx::GLVersionInfo& gl_version_info() const { | 125 const gfx::GLVersionInfo& gl_version_info() const { |
| 126 CHECK(gl_version_info_.get()); | 126 DCHECK(gl_version_info_.get()); |
| 127 return *(gl_version_info_.get()); | 127 return *(gl_version_info_.get()); |
| 128 } | 128 } |
| 129 | 129 |
| 130 private: | 130 private: |
| 131 friend class base::RefCounted<FeatureInfo>; | 131 friend class base::RefCounted<FeatureInfo>; |
| 132 friend class BufferManagerClientSideArraysTest; | 132 friend class BufferManagerClientSideArraysTest; |
| 133 | 133 |
| 134 typedef base::hash_map<GLenum, ValueValidator<GLenum> > ValidatorMap; | 134 typedef base::hash_map<GLenum, ValueValidator<GLenum> > ValidatorMap; |
| 135 ValidatorMap texture_format_validators_; | 135 ValidatorMap texture_format_validators_; |
| 136 | 136 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 155 | 155 |
| 156 scoped_ptr<gfx::GLVersionInfo> gl_version_info_; | 156 scoped_ptr<gfx::GLVersionInfo> gl_version_info_; |
| 157 | 157 |
| 158 DISALLOW_COPY_AND_ASSIGN(FeatureInfo); | 158 DISALLOW_COPY_AND_ASSIGN(FeatureInfo); |
| 159 }; | 159 }; |
| 160 | 160 |
| 161 } // namespace gles2 | 161 } // namespace gles2 |
| 162 } // namespace gpu | 162 } // namespace gpu |
| 163 | 163 |
| 164 #endif // GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_ | 164 #endif // GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_ |
| OLD | NEW |