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 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 fDiscardRenderTargetSupport = true; | 228 fDiscardRenderTargetSupport = true; |
229 fInvalidateFBType = kDiscard_InvalidateFBType; | 229 fInvalidateFBType = kDiscard_InvalidateFBType; |
230 } | 230 } |
231 | 231 |
232 if (kARM_GrGLVendor == ctxInfo.vendor() || kImagination_GrGLVendor == ctxInf
o.vendor()) { | 232 if (kARM_GrGLVendor == ctxInfo.vendor() || kImagination_GrGLVendor == ctxInf
o.vendor()) { |
233 fFullClearIsFree = true; | 233 fFullClearIsFree = true; |
234 } | 234 } |
235 | 235 |
236 if (kGL_GrGLStandard == standard) { | 236 if (kGL_GrGLStandard == standard) { |
237 fVertexArrayObjectSupport = version >= GR_GL_VER(3, 0) || | 237 fVertexArrayObjectSupport = version >= GR_GL_VER(3, 0) || |
238 ctxInfo.hasExtension("GL_ARB_vertex_array_ob
ject"); | 238 ctxInfo.hasExtension("GL_ARB_vertex_array_ob
ject") || |
| 239 ctxInfo.hasExtension("GL_APPLE_vertex_array_
object"); |
239 } else { | 240 } else { |
240 fVertexArrayObjectSupport = version >= GR_GL_VER(3, 0) || | 241 fVertexArrayObjectSupport = version >= GR_GL_VER(3, 0) || |
241 ctxInfo.hasExtension("GL_OES_vertex_array_ob
ject"); | 242 ctxInfo.hasExtension("GL_OES_vertex_array_ob
ject"); |
242 } | 243 } |
243 | 244 |
244 if (kGLES_GrGLStandard == standard) { | 245 if (kGLES_GrGLStandard == standard) { |
245 if (ctxInfo.hasExtension("GL_EXT_shader_framebuffer_fetch")) { | 246 if (ctxInfo.hasExtension("GL_EXT_shader_framebuffer_fetch")) { |
246 fFBFetchSupport = true; | 247 fFBFetchSupport = true; |
247 fFBFetchColorName = "gl_LastFragData[0]"; | 248 fFBFetchColorName = "gl_LastFragData[0]"; |
248 fFBFetchExtensionString = "GL_EXT_shader_framebuffer_fetch"; | 249 fFBFetchExtensionString = "GL_EXT_shader_framebuffer_fetch"; |
(...skipping 622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
871 r.appendf("Two Format Limit: %s\n", (fTwoFormatLimit ? "YES": "NO")); | 872 r.appendf("Two Format Limit: %s\n", (fTwoFormatLimit ? "YES": "NO")); |
872 r.appendf("Fragment coord conventions support: %s\n", | 873 r.appendf("Fragment coord conventions support: %s\n", |
873 (fFragCoordsConventionSupport ? "YES": "NO")); | 874 (fFragCoordsConventionSupport ? "YES": "NO")); |
874 r.appendf("Vertex array object support: %s\n", (fVertexArrayObjectSupport ?
"YES": "NO")); | 875 r.appendf("Vertex array object support: %s\n", (fVertexArrayObjectSupport ?
"YES": "NO")); |
875 r.appendf("Use non-VBO for dynamic data: %s\n", | 876 r.appendf("Use non-VBO for dynamic data: %s\n", |
876 (fUseNonVBOVertexAndIndexDynamicData ? "YES" : "NO")); | 877 (fUseNonVBOVertexAndIndexDynamicData ? "YES" : "NO")); |
877 r.appendf("Full screen clear is free: %s\n", (fFullClearIsFree ? "YES" : "NO
")); | 878 r.appendf("Full screen clear is free: %s\n", (fFullClearIsFree ? "YES" : "NO
")); |
878 r.appendf("Drops tile on zero divide: %s\n", (fDropsTileOnZeroDivide ? "YES"
: "NO")); | 879 r.appendf("Drops tile on zero divide: %s\n", (fDropsTileOnZeroDivide ? "YES"
: "NO")); |
879 return r; | 880 return r; |
880 } | 881 } |
OLD | NEW |