| 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 |
| 11 | 11 |
| 12 #include "GrCaps.h" | 12 #include "GrCaps.h" |
| 13 #include "glsl/GrGLSL.h" | 13 #include "glsl/GrGLSL.h" |
| 14 #include "GrGLStencilAttachment.h" | 14 #include "GrGLStencilAttachment.h" |
| 15 #include "SkChecksum.h" | 15 #include "SkChecksum.h" |
| 16 #include "SkTHash.h" | 16 #include "SkTHash.h" |
| 17 #include "SkTArray.h" | 17 #include "SkTArray.h" |
| 18 | 18 |
| 19 class GrGLContextInfo; | 19 class GrGLContextInfo; |
| 20 class GrGLSLCaps; | 20 class GrGLSLCaps; |
| 21 | 21 |
| 22 /** | 22 /** |
| 23 * Stores some capabilities of a GL context. Most are determined by the GL | 23 * Stores some capabilities of a GL context. Most are determined by the GL |
| 24 * version and the extensions string. It also tracks formats that have passed | 24 * version and the extensions string. It also tracks formats that have passed |
| 25 * the FBO completeness test. | 25 * the FBO completeness test. |
| 26 */ | 26 */ |
| 27 class GrGLCaps : public GrCaps { | 27 class GrGLCaps : public GrCaps { |
| 28 public: | 28 public: |
| 29 SK_DECLARE_INST_COUNT(GrGLCaps) | 29 |
| 30 | 30 |
| 31 typedef GrGLStencilAttachment::Format StencilFormat; | 31 typedef GrGLStencilAttachment::Format StencilFormat; |
| 32 | 32 |
| 33 /** | 33 /** |
| 34 * The type of MSAA for FBOs supported. Different extensions have different | 34 * The type of MSAA for FBOs supported. Different extensions have different |
| 35 * semantics of how / when a resolve is performed. | 35 * semantics of how / when a resolve is performed. |
| 36 */ | 36 */ |
| 37 enum MSFBOType { | 37 enum MSFBOType { |
| 38 /** | 38 /** |
| 39 * no support for MSAA FBOs | 39 * no support for MSAA FBOs |
| (...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 385 && fType == rhs.fType | 385 && fType == rhs.fType |
| 386 && fFboFormat == rhs.fFboFormat; | 386 && fFboFormat == rhs.fFboFormat; |
| 387 } | 387 } |
| 388 }; | 388 }; |
| 389 mutable SkTHashMap<ReadPixelsSupportedFormat, bool> fReadPixelsSupportedCach
e; | 389 mutable SkTHashMap<ReadPixelsSupportedFormat, bool> fReadPixelsSupportedCach
e; |
| 390 | 390 |
| 391 typedef GrCaps INHERITED; | 391 typedef GrCaps INHERITED; |
| 392 }; | 392 }; |
| 393 | 393 |
| 394 #endif | 394 #endif |
| OLD | NEW |