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

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

Issue 349983002: Revert of Add functions to support NV_path_rendering in OpenGL ES (Closed) Base URL: https://skia.googlesource.com/skia.git@desktop-es
Patch Set: Created 6 years, 6 months 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') | src/gpu/gl/GrGLDefines.h » ('j') | 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 #include "GrGLContext.h" 10 #include "GrGLContext.h"
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 305
306 fHWAALineSupport = (kGL_GrGLStandard == standard); 306 fHWAALineSupport = (kGL_GrGLStandard == standard);
307 307
308 GR_GL_GetIntegerv(gli, GR_GL_MAX_TEXTURE_SIZE, &fMaxTextureSize); 308 GR_GL_GetIntegerv(gli, GR_GL_MAX_TEXTURE_SIZE, &fMaxTextureSize);
309 GR_GL_GetIntegerv(gli, GR_GL_MAX_RENDERBUFFER_SIZE, &fMaxRenderTargetSize); 309 GR_GL_GetIntegerv(gli, GR_GL_MAX_RENDERBUFFER_SIZE, &fMaxRenderTargetSize);
310 // Our render targets are always created with textures as the color 310 // Our render targets are always created with textures as the color
311 // attachment, hence this min: 311 // attachment, hence this min:
312 fMaxRenderTargetSize = SkTMin(fMaxTextureSize, fMaxRenderTargetSize); 312 fMaxRenderTargetSize = SkTMin(fMaxTextureSize, fMaxRenderTargetSize);
313 313
314 fPathRenderingSupport = ctxInfo.hasExtension("GL_NV_path_rendering") && 314 fPathRenderingSupport = ctxInfo.hasExtension("GL_NV_path_rendering") &&
315 ctxInfo.hasExtension("GL_EXT_direct_state_access") && 315 ctxInfo.hasExtension("GL_EXT_direct_state_access");
316 (kGL_GrGLStandard == standard &&
317 (ctxInfo.version() >= GR_GL_VER(4,3) ||
318 ctxInfo.hasExtension("GL_ARB_program_interface_query")));
319 // Note: path rendering is not yet implemented for GLES.
320 // Once it is, this will contain also:
321 // || (kGLES_GrGLStandard == standard && ctxInfo.version() >= GR_GL_VER(3,1) )
322 316
323 fGpuTracingSupport = ctxInfo.hasExtension("GL_EXT_debug_marker"); 317 fGpuTracingSupport = ctxInfo.hasExtension("GL_EXT_debug_marker");
324 318
325 fDstReadInShaderSupport = kNone_FBFetchType != fFBFetchType; 319 fDstReadInShaderSupport = kNone_FBFetchType != fFBFetchType;
326 320
327 // Disable scratch texture reuse on Mali and Adreno devices 321 // Disable scratch texture reuse on Mali and Adreno devices
328 fReuseScratchTextures = kARM_GrGLVendor != ctxInfo.vendor() && 322 fReuseScratchTextures = kARM_GrGLVendor != ctxInfo.vendor() &&
329 kQualcomm_GrGLVendor != ctxInfo.vendor(); 323 kQualcomm_GrGLVendor != ctxInfo.vendor();
330 324
331 // Enable supported shader-related caps 325 // Enable supported shader-related caps
(...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after
789 r.appendf("Two Format Limit: %s\n", (fTwoFormatLimit ? "YES": "NO")); 783 r.appendf("Two Format Limit: %s\n", (fTwoFormatLimit ? "YES": "NO"));
790 r.appendf("Fragment coord conventions support: %s\n", 784 r.appendf("Fragment coord conventions support: %s\n",
791 (fFragCoordsConventionSupport ? "YES": "NO")); 785 (fFragCoordsConventionSupport ? "YES": "NO"));
792 r.appendf("Vertex array object support: %s\n", (fVertexArrayObjectSupport ? "YES": "NO")); 786 r.appendf("Vertex array object support: %s\n", (fVertexArrayObjectSupport ? "YES": "NO"));
793 r.appendf("Use non-VBO for dynamic data: %s\n", 787 r.appendf("Use non-VBO for dynamic data: %s\n",
794 (fUseNonVBOVertexAndIndexDynamicData ? "YES" : "NO")); 788 (fUseNonVBOVertexAndIndexDynamicData ? "YES" : "NO"));
795 r.appendf("Full screen clear is free: %s\n", (fFullClearIsFree ? "YES" : "NO ")); 789 r.appendf("Full screen clear is free: %s\n", (fFullClearIsFree ? "YES" : "NO "));
796 r.appendf("Drops tile on zero divide: %s\n", (fDropsTileOnZeroDivide ? "YES" : "NO")); 790 r.appendf("Drops tile on zero divide: %s\n", (fDropsTileOnZeroDivide ? "YES" : "NO"));
797 return r; 791 return r;
798 } 792 }
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLAssembleInterface.cpp ('k') | src/gpu/gl/GrGLDefines.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698