OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 | 8 |
9 #ifndef GrGLCaps_DEFINED | 9 #ifndef GrGLCaps_DEFINED |
10 #define GrGLCaps_DEFINED | 10 #define GrGLCaps_DEFINED |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 | 212 |
213 /// Is there support for GL_RED and GL_R8 | 213 /// Is there support for GL_RED and GL_R8 |
214 bool textureRedSupport() const { return fTextureRedSupport; } | 214 bool textureRedSupport() const { return fTextureRedSupport; } |
215 | 215 |
216 /// Is GL_ARB_IMAGING supported | 216 /// Is GL_ARB_IMAGING supported |
217 bool imagingSupport() const { return fImagingSupport; } | 217 bool imagingSupport() const { return fImagingSupport; } |
218 | 218 |
219 /// Is GL_ARB_fragment_coord_conventions supported? | 219 /// Is GL_ARB_fragment_coord_conventions supported? |
220 bool fragCoordConventionsSupport() const { return fFragCoordsConventionSuppo
rt; } | 220 bool fragCoordConventionsSupport() const { return fFragCoordsConventionSuppo
rt; } |
221 | 221 |
222 // Use indices or vertices in CPU arrays rather than VBOs for dynamic conten
t. | 222 /// Is there support for Vertex Array Objects? |
| 223 bool vertexArrayObjectSupport() const { return fVertexArrayObjectSupport; } |
| 224 |
| 225 /// Use indices or vertices in CPU arrays rather than VBOs for dynamic conte
nt. |
223 bool useNonVBOVertexAndIndexDynamicData() const { | 226 bool useNonVBOVertexAndIndexDynamicData() const { |
224 return fUseNonVBOVertexAndIndexDynamicData; | 227 return fUseNonVBOVertexAndIndexDynamicData; |
225 } | 228 } |
226 | 229 |
227 // Does ReadPixels support the provided format/type combo? | 230 /// Does ReadPixels support the provided format/type combo? |
228 bool readPixelsSupported(const GrGLInterface* intf, | 231 bool readPixelsSupported(const GrGLInterface* intf, |
229 GrGLenum format, | 232 GrGLenum format, |
230 GrGLenum type) const; | 233 GrGLenum type) const; |
231 | 234 |
232 bool isCoreProfile() const { return fIsCoreProfile; } | 235 bool isCoreProfile() const { return fIsCoreProfile; } |
233 | 236 |
234 private: | 237 private: |
235 /** | 238 /** |
236 * Maintains a bit per GrPixelConfig. It is used to avoid redundantly | 239 * Maintains a bit per GrPixelConfig. It is used to avoid redundantly |
237 * performing glCheckFrameBufferStatus for the same config. | 240 * performing glCheckFrameBufferStatus for the same config. |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
297 bool fUnpackRowLengthSupport : 1; | 300 bool fUnpackRowLengthSupport : 1; |
298 bool fUnpackFlipYSupport : 1; | 301 bool fUnpackFlipYSupport : 1; |
299 bool fPackRowLengthSupport : 1; | 302 bool fPackRowLengthSupport : 1; |
300 bool fPackFlipYSupport : 1; | 303 bool fPackFlipYSupport : 1; |
301 bool fTextureUsageSupport : 1; | 304 bool fTextureUsageSupport : 1; |
302 bool fTexStorageSupport : 1; | 305 bool fTexStorageSupport : 1; |
303 bool fTextureRedSupport : 1; | 306 bool fTextureRedSupport : 1; |
304 bool fImagingSupport : 1; | 307 bool fImagingSupport : 1; |
305 bool fTwoFormatLimit : 1; | 308 bool fTwoFormatLimit : 1; |
306 bool fFragCoordsConventionSupport : 1; | 309 bool fFragCoordsConventionSupport : 1; |
| 310 bool fVertexArrayObjectSupport : 1; |
307 bool fUseNonVBOVertexAndIndexDynamicData : 1; | 311 bool fUseNonVBOVertexAndIndexDynamicData : 1; |
308 bool fIsCoreProfile : 1; | 312 bool fIsCoreProfile : 1; |
309 }; | 313 }; |
310 | 314 |
311 #endif | 315 #endif |
OLD | NEW |