| 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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 * then implicitly resolved when read. | 161 * then implicitly resolved when read. |
| 162 */ | 162 */ |
| 163 bool usesImplicitMSAAResolve() const { | 163 bool usesImplicitMSAAResolve() const { |
| 164 return kES_IMG_MsToTexture_MSFBOType == fMSFBOType || | 164 return kES_IMG_MsToTexture_MSFBOType == fMSFBOType || |
| 165 kES_EXT_MsToTexture_MSFBOType == fMSFBOType; | 165 kES_EXT_MsToTexture_MSFBOType == fMSFBOType; |
| 166 } | 166 } |
| 167 | 167 |
| 168 /** | 168 /** |
| 169 * Some helper functions for encapsulating various extensions to read FB Buf
fer on openglES | 169 * Some helper functions for encapsulating various extensions to read FB Buf
fer on openglES |
| 170 * | 170 * |
| 171 * TODO On desktop opengl 4.2+ we can achieve something similar to this effe
ct | 171 * TODO(joshualitt) On desktop opengl 4.2+ we can achieve something similar
to this effect |
| 172 */ | 172 */ |
| 173 bool fbFetchSupport() const { return fFBFetchSupport; } | 173 bool fbFetchSupport() const { return fFBFetchSupport; } |
| 174 | 174 |
| 175 const char* fbFetchColorName() const { return fFBFetchColorName; } | 175 const char* fbFetchColorName() const { return fFBFetchColorName; } |
| 176 | 176 |
| 177 const char* fbFetchExtensionString() const { return fFBFetchExtensionString;
} | 177 const char* fbFetchExtensionString() const { return fFBFetchExtensionString;
} |
| 178 | 178 |
| 179 InvalidateFBType invalidateFBType() const { return fInvalidateFBType; } | 179 InvalidateFBType invalidateFBType() const { return fInvalidateFBType; } |
| 180 | 180 |
| 181 /// What type of buffer mapping is supported? | 181 /// What type of buffer mapping is supported? |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 360 bool fTexStorageSupport : 1; | 360 bool fTexStorageSupport : 1; |
| 361 bool fTextureRedSupport : 1; | 361 bool fTextureRedSupport : 1; |
| 362 bool fImagingSupport : 1; | 362 bool fImagingSupport : 1; |
| 363 bool fTwoFormatLimit : 1; | 363 bool fTwoFormatLimit : 1; |
| 364 bool fFragCoordsConventionSupport : 1; | 364 bool fFragCoordsConventionSupport : 1; |
| 365 bool fVertexArrayObjectSupport : 1; | 365 bool fVertexArrayObjectSupport : 1; |
| 366 bool fUseNonVBOVertexAndIndexDynamicData : 1; | 366 bool fUseNonVBOVertexAndIndexDynamicData : 1; |
| 367 bool fIsCoreProfile : 1; | 367 bool fIsCoreProfile : 1; |
| 368 bool fFullClearIsFree : 1; | 368 bool fFullClearIsFree : 1; |
| 369 bool fDropsTileOnZeroDivide : 1; | 369 bool fDropsTileOnZeroDivide : 1; |
| 370 // TODO(joshualitt) encapsulate the FB Fetch logic in a feature object |
| 370 bool fFBFetchSupport : 1; | 371 bool fFBFetchSupport : 1; |
| 371 | 372 |
| 372 const char* fFBFetchColorName; | 373 const char* fFBFetchColorName; |
| 373 const char* fFBFetchExtensionString; | 374 const char* fFBFetchExtensionString; |
| 374 | 375 |
| 375 class ReadPixelsSupportedFormats { | 376 class ReadPixelsSupportedFormats { |
| 376 public: | 377 public: |
| 377 struct Key { | 378 struct Key { |
| 378 GrGLenum fFormat; | 379 GrGLenum fFormat; |
| 379 GrGLenum fType; | 380 GrGLenum fType; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 409 bool fValue; | 410 bool fValue; |
| 410 }; | 411 }; |
| 411 | 412 |
| 412 mutable SkTHashCache<ReadPixelsSupportedFormats, | 413 mutable SkTHashCache<ReadPixelsSupportedFormats, |
| 413 ReadPixelsSupportedFormats::Key> fReadPixelsSupportedCa
che; | 414 ReadPixelsSupportedFormats::Key> fReadPixelsSupportedCa
che; |
| 414 | 415 |
| 415 typedef GrDrawTargetCaps INHERITED; | 416 typedef GrDrawTargetCaps INHERITED; |
| 416 }; | 417 }; |
| 417 | 418 |
| 418 #endif | 419 #endif |
| OLD | NEW |