Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(85)

Side by Side Diff: src/gpu/gl/GrGLCaps.cpp

Issue 734633005: Revert of Revert of Add gpu support for Apple specific 'Vertex Arrays' functions (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/gpu/gl/GrGLAssembleInterface.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLAssembleInterface.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698