| 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 #include "GrGLCaps.h" | 9 #include "GrGLCaps.h" |
| 10 | 10 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 fUnpackFlipYSupport = false; | 30 fUnpackFlipYSupport = false; |
| 31 fPackRowLengthSupport = false; | 31 fPackRowLengthSupport = false; |
| 32 fPackFlipYSupport = false; | 32 fPackFlipYSupport = false; |
| 33 fTextureUsageSupport = false; | 33 fTextureUsageSupport = false; |
| 34 fTextureRedSupport = false; | 34 fTextureRedSupport = false; |
| 35 fImagingSupport = false; | 35 fImagingSupport = false; |
| 36 fVertexArrayObjectSupport = false; | 36 fVertexArrayObjectSupport = false; |
| 37 fDirectStateAccessSupport = false; | 37 fDirectStateAccessSupport = false; |
| 38 fDebugSupport = false; | 38 fDebugSupport = false; |
| 39 fES2CompatibilitySupport = false; | 39 fES2CompatibilitySupport = false; |
| 40 fMultisampleDisableSupport = false; | |
| 41 fDrawIndirectSupport = false; | 40 fDrawIndirectSupport = false; |
| 42 fMultiDrawIndirectSupport = false; | 41 fMultiDrawIndirectSupport = false; |
| 43 fBaseInstanceSupport = false; | 42 fBaseInstanceSupport = false; |
| 44 fUseNonVBOVertexAndIndexDynamicData = false; | 43 fUseNonVBOVertexAndIndexDynamicData = false; |
| 45 fIsCoreProfile = false; | 44 fIsCoreProfile = false; |
| 46 fBindFragDataLocationSupport = false; | 45 fBindFragDataLocationSupport = false; |
| 47 fRectangleTextureSupport = false; | 46 fRectangleTextureSupport = false; |
| 48 fTextureSwizzleSupport = false; | 47 fTextureSwizzleSupport = false; |
| 49 fRGBA8888PixelsOpsAreSlow = false; | 48 fRGBA8888PixelsOpsAreSlow = false; |
| 50 fPartialFBOReadIsSlow = false; | 49 fPartialFBOReadIsSlow = false; |
| (...skipping 1049 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1100 r.appendf("Unpack Flip Y support: %s\n", (fUnpackFlipYSupport ? "YES": "NO")
); | 1099 r.appendf("Unpack Flip Y support: %s\n", (fUnpackFlipYSupport ? "YES": "NO")
); |
| 1101 r.appendf("Pack Row length support: %s\n", (fPackRowLengthSupport ? "YES": "
NO")); | 1100 r.appendf("Pack Row length support: %s\n", (fPackRowLengthSupport ? "YES": "
NO")); |
| 1102 r.appendf("Pack Flip Y support: %s\n", (fPackFlipYSupport ? "YES": "NO")); | 1101 r.appendf("Pack Flip Y support: %s\n", (fPackFlipYSupport ? "YES": "NO")); |
| 1103 | 1102 |
| 1104 r.appendf("Texture Usage support: %s\n", (fTextureUsageSupport ? "YES": "NO"
)); | 1103 r.appendf("Texture Usage support: %s\n", (fTextureUsageSupport ? "YES": "NO"
)); |
| 1105 r.appendf("GL_R support: %s\n", (fTextureRedSupport ? "YES": "NO")); | 1104 r.appendf("GL_R support: %s\n", (fTextureRedSupport ? "YES": "NO")); |
| 1106 r.appendf("GL_ARB_imaging support: %s\n", (fImagingSupport ? "YES": "NO")); | 1105 r.appendf("GL_ARB_imaging support: %s\n", (fImagingSupport ? "YES": "NO")); |
| 1107 r.appendf("Vertex array object support: %s\n", (fVertexArrayObjectSupport ?
"YES": "NO")); | 1106 r.appendf("Vertex array object support: %s\n", (fVertexArrayObjectSupport ?
"YES": "NO")); |
| 1108 r.appendf("Direct state access support: %s\n", (fDirectStateAccessSupport ?
"YES": "NO")); | 1107 r.appendf("Direct state access support: %s\n", (fDirectStateAccessSupport ?
"YES": "NO")); |
| 1109 r.appendf("Debug support: %s\n", (fDebugSupport ? "YES": "NO")); | 1108 r.appendf("Debug support: %s\n", (fDebugSupport ? "YES": "NO")); |
| 1110 r.appendf("Multisample disable support: %s\n", (fMultisampleDisableSupport ?
"YES" : "NO")); | |
| 1111 r.appendf("Draw indirect support: %s\n", (fDrawIndirectSupport ? "YES" : "NO
")); | 1109 r.appendf("Draw indirect support: %s\n", (fDrawIndirectSupport ? "YES" : "NO
")); |
| 1112 r.appendf("Multi draw indirect support: %s\n", (fMultiDrawIndirectSupport ?
"YES" : "NO")); | 1110 r.appendf("Multi draw indirect support: %s\n", (fMultiDrawIndirectSupport ?
"YES" : "NO")); |
| 1113 r.appendf("Base instance support: %s\n", (fBaseInstanceSupport ? "YES" : "NO
")); | 1111 r.appendf("Base instance support: %s\n", (fBaseInstanceSupport ? "YES" : "NO
")); |
| 1114 r.appendf("Use non-VBO for dynamic data: %s\n", | 1112 r.appendf("Use non-VBO for dynamic data: %s\n", |
| 1115 (fUseNonVBOVertexAndIndexDynamicData ? "YES" : "NO")); | 1113 (fUseNonVBOVertexAndIndexDynamicData ? "YES" : "NO")); |
| 1116 r.appendf("RGBA 8888 pixel ops are slow: %s\n", (fRGBA8888PixelsOpsAreSlow ?
"YES" : "NO")); | 1114 r.appendf("RGBA 8888 pixel ops are slow: %s\n", (fRGBA8888PixelsOpsAreSlow ?
"YES" : "NO")); |
| 1117 r.appendf("Partial FBO read is slow: %s\n", (fPartialFBOReadIsSlow ? "YES" :
"NO")); | 1115 r.appendf("Partial FBO read is slow: %s\n", (fPartialFBOReadIsSlow ? "YES" :
"NO")); |
| 1118 r.appendf("Bind uniform location support: %s\n", (fBindUniformLocationSuppor
t ? "YES" : "NO")); | 1116 r.appendf("Bind uniform location support: %s\n", (fBindUniformLocationSuppor
t ? "YES" : "NO")); |
| 1119 r.appendf("Rectangle texture support: %s\n", (fRectangleTextureSupport? "YES
" : "NO")); | 1117 r.appendf("Rectangle texture support: %s\n", (fRectangleTextureSupport? "YES
" : "NO")); |
| 1120 r.appendf("Texture swizzle support: %s\n", (fTextureSwizzleSupport ? "YES" :
"NO")); | 1118 r.appendf("Texture swizzle support: %s\n", (fTextureSwizzleSupport ? "YES" :
"NO")); |
| (...skipping 804 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1925 for (int j = 0; j < kExternalFormatUsageCnt; ++j) { | 1923 for (int j = 0; j < kExternalFormatUsageCnt; ++j) { |
| 1926 SkASSERT(defaultEntry.fFormats.fExternalFormat[j] != | 1924 SkASSERT(defaultEntry.fFormats.fExternalFormat[j] != |
| 1927 fConfigTable[i].fFormats.fExternalFormat[j]); | 1925 fConfigTable[i].fFormats.fExternalFormat[j]); |
| 1928 } | 1926 } |
| 1929 SkASSERT(defaultEntry.fFormats.fExternalType != fConfigTable[i].fFormats
.fExternalType); | 1927 SkASSERT(defaultEntry.fFormats.fExternalType != fConfigTable[i].fFormats
.fExternalType); |
| 1930 } | 1928 } |
| 1931 #endif | 1929 #endif |
| 1932 } | 1930 } |
| 1933 | 1931 |
| 1934 void GrGLCaps::onApplyOptionsOverrides(const GrContextOptions& options) {} | 1932 void GrGLCaps::onApplyOptionsOverrides(const GrContextOptions& options) {} |
| OLD | NEW |