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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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(joshualitt) On desktop opengl 4.2+ we can achieve something similar
to this effect | 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 bool fbFetchNeedsCustomOutput() const { return fFBFetchNeedsCustomOutput; } |
| 176 |
175 const char* fbFetchColorName() const { return fFBFetchColorName; } | 177 const char* fbFetchColorName() const { return fFBFetchColorName; } |
176 | 178 |
177 const char* fbFetchExtensionString() const { return fFBFetchExtensionString;
} | 179 const char* fbFetchExtensionString() const { return fFBFetchExtensionString;
} |
178 | 180 |
179 InvalidateFBType invalidateFBType() const { return fInvalidateFBType; } | 181 InvalidateFBType invalidateFBType() const { return fInvalidateFBType; } |
180 | 182 |
181 /// What type of buffer mapping is supported? | 183 /// What type of buffer mapping is supported? |
182 MapBufferType mapBufferType() const { return fMapBufferType; } | 184 MapBufferType mapBufferType() const { return fMapBufferType; } |
183 | 185 |
184 /** | 186 /** |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
365 bool fTextureRedSupport : 1; | 367 bool fTextureRedSupport : 1; |
366 bool fImagingSupport : 1; | 368 bool fImagingSupport : 1; |
367 bool fTwoFormatLimit : 1; | 369 bool fTwoFormatLimit : 1; |
368 bool fFragCoordsConventionSupport : 1; | 370 bool fFragCoordsConventionSupport : 1; |
369 bool fVertexArrayObjectSupport : 1; | 371 bool fVertexArrayObjectSupport : 1; |
370 bool fES2CompatibilitySupport : 1; | 372 bool fES2CompatibilitySupport : 1; |
371 bool fUseNonVBOVertexAndIndexDynamicData : 1; | 373 bool fUseNonVBOVertexAndIndexDynamicData : 1; |
372 bool fIsCoreProfile : 1; | 374 bool fIsCoreProfile : 1; |
373 bool fFullClearIsFree : 1; | 375 bool fFullClearIsFree : 1; |
374 bool fDropsTileOnZeroDivide : 1; | 376 bool fDropsTileOnZeroDivide : 1; |
375 // TODO(joshualitt) encapsulate the FB Fetch logic in a feature object | |
376 bool fFBFetchSupport : 1; | 377 bool fFBFetchSupport : 1; |
| 378 bool fFBFetchNeedsCustomOutput : 1; |
377 | 379 |
378 const char* fFBFetchColorName; | 380 const char* fFBFetchColorName; |
379 const char* fFBFetchExtensionString; | 381 const char* fFBFetchExtensionString; |
380 | 382 |
381 class ReadPixelsSupportedFormats { | 383 class ReadPixelsSupportedFormats { |
382 public: | 384 public: |
383 struct Key { | 385 struct Key { |
384 GrGLenum fFormat; | 386 GrGLenum fFormat; |
385 GrGLenum fType; | 387 GrGLenum fType; |
386 GrGLenum fFboFormat; | 388 GrGLenum fFboFormat; |
(...skipping 28 matching lines...) Expand all Loading... |
415 bool fValue; | 417 bool fValue; |
416 }; | 418 }; |
417 | 419 |
418 mutable SkTHashCache<ReadPixelsSupportedFormats, | 420 mutable SkTHashCache<ReadPixelsSupportedFormats, |
419 ReadPixelsSupportedFormats::Key> fReadPixelsSupportedCa
che; | 421 ReadPixelsSupportedFormats::Key> fReadPixelsSupportedCa
che; |
420 | 422 |
421 typedef GrDrawTargetCaps INHERITED; | 423 typedef GrDrawTargetCaps INHERITED; |
422 }; | 424 }; |
423 | 425 |
424 #endif | 426 #endif |
OLD | NEW |