| 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 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 279 * we found LATC under. The default is LATC. | 279 * we found LATC under. The default is LATC. |
| 280 */ | 280 */ |
| 281 enum LATCAlias { | 281 enum LATCAlias { |
| 282 kLATC_LATCAlias, | 282 kLATC_LATCAlias, |
| 283 kRGTC_LATCAlias, | 283 kRGTC_LATCAlias, |
| 284 k3DC_LATCAlias | 284 k3DC_LATCAlias |
| 285 }; | 285 }; |
| 286 | 286 |
| 287 LATCAlias latcAlias() const { return fLATCAlias; } | 287 LATCAlias latcAlias() const { return fLATCAlias; } |
| 288 | 288 |
| 289 /** |
| 290 * Which type of path rendering is supported, if any |
| 291 * TODO delete this when we only support normal non-legacy nvpr |
| 292 */ |
| 293 enum NvprSupport { |
| 294 kNone_NvprSupport, |
| 295 kLegacy_NvprSupport, |
| 296 kNormal_NvprSupport, |
| 297 }; |
| 298 |
| 299 NvprSupport nvprSupport() const { return fNvprSupport; } |
| 300 |
| 289 private: | 301 private: |
| 290 /** | 302 /** |
| 291 * Maintains a bit per GrPixelConfig. It is used to avoid redundantly | 303 * Maintains a bit per GrPixelConfig. It is used to avoid redundantly |
| 292 * performing glCheckFrameBufferStatus for the same config. | 304 * performing glCheckFrameBufferStatus for the same config. |
| 293 */ | 305 */ |
| 294 struct VerifiedColorConfigs { | 306 struct VerifiedColorConfigs { |
| 295 VerifiedColorConfigs() { | 307 VerifiedColorConfigs() { |
| 296 this->reset(); | 308 this->reset(); |
| 297 } | 309 } |
| 298 | 310 |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 347 | 359 |
| 348 int fMaxFragmentUniformVectors; | 360 int fMaxFragmentUniformVectors; |
| 349 int fMaxVertexAttributes; | 361 int fMaxVertexAttributes; |
| 350 int fMaxFragmentTextureUnits; | 362 int fMaxFragmentTextureUnits; |
| 351 int fMaxFixedFunctionTextureCoords; | 363 int fMaxFixedFunctionTextureCoords; |
| 352 | 364 |
| 353 MSFBOType fMSFBOType; | 365 MSFBOType fMSFBOType; |
| 354 InvalidateFBType fInvalidateFBType; | 366 InvalidateFBType fInvalidateFBType; |
| 355 MapBufferType fMapBufferType; | 367 MapBufferType fMapBufferType; |
| 356 LATCAlias fLATCAlias; | 368 LATCAlias fLATCAlias; |
| 369 NvprSupport fNvprSupport; |
| 357 | 370 |
| 358 bool fRGBA8RenderbufferSupport : 1; | 371 bool fRGBA8RenderbufferSupport : 1; |
| 359 bool fBGRAIsInternalFormat : 1; | 372 bool fBGRAIsInternalFormat : 1; |
| 360 bool fTextureSwizzleSupport : 1; | 373 bool fTextureSwizzleSupport : 1; |
| 361 bool fUnpackRowLengthSupport : 1; | 374 bool fUnpackRowLengthSupport : 1; |
| 362 bool fUnpackFlipYSupport : 1; | 375 bool fUnpackFlipYSupport : 1; |
| 363 bool fPackRowLengthSupport : 1; | 376 bool fPackRowLengthSupport : 1; |
| 364 bool fPackFlipYSupport : 1; | 377 bool fPackFlipYSupport : 1; |
| 365 bool fTextureUsageSupport : 1; | 378 bool fTextureUsageSupport : 1; |
| 366 bool fTexStorageSupport : 1; | 379 bool fTexStorageSupport : 1; |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 417 bool fValue; | 430 bool fValue; |
| 418 }; | 431 }; |
| 419 | 432 |
| 420 mutable SkTHashCache<ReadPixelsSupportedFormats, | 433 mutable SkTHashCache<ReadPixelsSupportedFormats, |
| 421 ReadPixelsSupportedFormats::Key> fReadPixelsSupportedCa
che; | 434 ReadPixelsSupportedFormats::Key> fReadPixelsSupportedCa
che; |
| 422 | 435 |
| 423 typedef GrDrawTargetCaps INHERITED; | 436 typedef GrDrawTargetCaps INHERITED; |
| 424 }; | 437 }; |
| 425 | 438 |
| 426 #endif | 439 #endif |
| OLD | NEW |