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