| 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 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 | 241 |
| 242 /// What type of buffer mapping is supported? | 242 /// What type of buffer mapping is supported? |
| 243 MapBufferType mapBufferType() const { return fMapBufferType; } | 243 MapBufferType mapBufferType() const { return fMapBufferType; } |
| 244 | 244 |
| 245 /// What type of transfer buffer is supported? | 245 /// What type of transfer buffer is supported? |
| 246 TransferBufferType transferBufferType() const { return fTransferBufferType;
} | 246 TransferBufferType transferBufferType() const { return fTransferBufferType;
} |
| 247 | 247 |
| 248 /// The maximum number of fragment uniform vectors (GLES has min. 16). | 248 /// The maximum number of fragment uniform vectors (GLES has min. 16). |
| 249 int maxFragmentUniformVectors() const { return fMaxFragmentUniformVectors; } | 249 int maxFragmentUniformVectors() const { return fMaxFragmentUniformVectors; } |
| 250 | 250 |
| 251 /// maximum number of attribute values per vertex | |
| 252 int maxVertexAttributes() const { return fMaxVertexAttributes; } | |
| 253 | |
| 254 /** | 251 /** |
| 255 * Depending on the ES extensions present the BGRA external format may | 252 * Depending on the ES extensions present the BGRA external format may |
| 256 * correspond to either a BGRA or RGBA internalFormat. On desktop GL it is | 253 * correspond to either a BGRA or RGBA internalFormat. On desktop GL it is |
| 257 * RGBA. | 254 * RGBA. |
| 258 */ | 255 */ |
| 259 bool bgraIsInternalFormat() const; | 256 bool bgraIsInternalFormat() const; |
| 260 | 257 |
| 261 /// Is there support for GL_UNPACK_ROW_LENGTH | 258 /// Is there support for GL_UNPACK_ROW_LENGTH |
| 262 bool unpackRowLengthSupport() const { return fUnpackRowLengthSupport; } | 259 bool unpackRowLengthSupport() const { return fUnpackRowLengthSupport; } |
| 263 | 260 |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 374 | 371 |
| 375 void initShaderPrecisionTable(const GrGLContextInfo& ctxInfo, | 372 void initShaderPrecisionTable(const GrGLContextInfo& ctxInfo, |
| 376 const GrGLInterface* intf, | 373 const GrGLInterface* intf, |
| 377 GrGLSLCaps* glslCaps); | 374 GrGLSLCaps* glslCaps); |
| 378 | 375 |
| 379 GrGLStandard fStandard; | 376 GrGLStandard fStandard; |
| 380 | 377 |
| 381 SkTArray<StencilFormat, true> fStencilFormats; | 378 SkTArray<StencilFormat, true> fStencilFormats; |
| 382 | 379 |
| 383 int fMaxFragmentUniformVectors; | 380 int fMaxFragmentUniformVectors; |
| 384 int fMaxVertexAttributes; | |
| 385 | 381 |
| 386 MSFBOType fMSFBOType; | 382 MSFBOType fMSFBOType; |
| 387 InvalidateFBType fInvalidateFBType; | 383 InvalidateFBType fInvalidateFBType; |
| 388 MapBufferType fMapBufferType; | 384 MapBufferType fMapBufferType; |
| 389 TransferBufferType fTransferBufferType; | 385 TransferBufferType fTransferBufferType; |
| 390 | 386 |
| 391 bool fUnpackRowLengthSupport : 1; | 387 bool fUnpackRowLengthSupport : 1; |
| 392 bool fUnpackFlipYSupport : 1; | 388 bool fUnpackFlipYSupport : 1; |
| 393 bool fPackRowLengthSupport : 1; | 389 bool fPackRowLengthSupport : 1; |
| 394 bool fPackFlipYSupport : 1; | 390 bool fPackFlipYSupport : 1; |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 485 | 481 |
| 486 GrSwizzle fSwizzle; | 482 GrSwizzle fSwizzle; |
| 487 }; | 483 }; |
| 488 | 484 |
| 489 ConfigInfo fConfigTable[kGrPixelConfigCnt]; | 485 ConfigInfo fConfigTable[kGrPixelConfigCnt]; |
| 490 | 486 |
| 491 typedef GrCaps INHERITED; | 487 typedef GrCaps INHERITED; |
| 492 }; | 488 }; |
| 493 | 489 |
| 494 #endif | 490 #endif |
| OLD | NEW |