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 <string> | 8 #include <string> |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 bool IsES3Capable() const; | 151 bool IsES3Capable() const; |
152 void EnableES3Validators(); | 152 void EnableES3Validators(); |
153 | 153 |
154 bool IsES3Enabled() const { | 154 bool IsES3Enabled() const { |
155 return unsafe_es3_apis_enabled_; | 155 return unsafe_es3_apis_enabled_; |
156 } | 156 } |
157 | 157 |
158 bool disable_shader_translator() const { return disable_shader_translator_; } | 158 bool disable_shader_translator() const { return disable_shader_translator_; } |
159 | 159 |
160 bool IsWebGLContext() const; | 160 bool IsWebGLContext() const; |
| 161 bool IsPepperContext() const; |
161 | 162 |
162 void EnableCHROMIUMColorBufferFloatRGBA(); | 163 void EnableCHROMIUMColorBufferFloatRGBA(); |
163 void EnableCHROMIUMColorBufferFloatRGB(); | 164 void EnableCHROMIUMColorBufferFloatRGB(); |
164 void EnableEXTColorBufferFloat(); | 165 void EnableEXTColorBufferFloat(); |
165 void EnableOESTextureFloatLinear(); | 166 void EnableOESTextureFloatLinear(); |
166 void EnableOESTextureHalfFloatLinear(); | 167 void EnableOESTextureHalfFloatLinear(); |
167 | 168 |
168 private: | 169 private: |
169 friend class base::RefCounted<FeatureInfo>; | 170 friend class base::RefCounted<FeatureInfo>; |
170 friend class BufferManagerClientSideArraysTest; | 171 friend class BufferManagerClientSideArraysTest; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 bool disable_shader_translator_; | 205 bool disable_shader_translator_; |
205 scoped_ptr<gfx::GLVersionInfo> gl_version_info_; | 206 scoped_ptr<gfx::GLVersionInfo> gl_version_info_; |
206 | 207 |
207 DISALLOW_COPY_AND_ASSIGN(FeatureInfo); | 208 DISALLOW_COPY_AND_ASSIGN(FeatureInfo); |
208 }; | 209 }; |
209 | 210 |
210 } // namespace gles2 | 211 } // namespace gles2 |
211 } // namespace gpu | 212 } // namespace gpu |
212 | 213 |
213 #endif // GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_ | 214 #endif // GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_ |
OLD | NEW |