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

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

Issue 367643004: Implement NVPR on GLES (Closed) Base URL: https://skia.googlesource.com/skia.git@02-path-program-fragment
Patch Set: Created 6 years, 5 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
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 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 && 316 ((kGL_GrGLStandard == standard &&
317 (ctxInfo.version() >= GR_GL_VER(4,3) || 317 (ctxInfo.version() >= GR_GL_VER(4,3) ||
318 ctxInfo.hasExtension("GL_ARB_program_interface_query"))); 318 ctxInfo.hasExtension("GL_ARB_program_interface_query"))) ||
319 // Note: path rendering is not yet implemented for GLES. 319 (kGLES_GrGLStandard == standard &&
320 // Once it is, this will contain also: 320 ctxInfo.version() >= GR_GL_VER(3,1)));
321 // || (kGLES_GrGLStandard == standard && ctxInfo.version() >= GR_GL_VER(3,1) )
322 321
323 fGpuTracingSupport = ctxInfo.hasExtension("GL_EXT_debug_marker"); 322 fGpuTracingSupport = ctxInfo.hasExtension("GL_EXT_debug_marker");
324 323
325 fDstReadInShaderSupport = kNone_FBFetchType != fFBFetchType; 324 fDstReadInShaderSupport = kNone_FBFetchType != fFBFetchType;
326 325
327 // Disable scratch texture reuse on Mali and Adreno devices 326 // Disable scratch texture reuse on Mali and Adreno devices
328 fReuseScratchTextures = kARM_GrGLVendor != ctxInfo.vendor() && 327 fReuseScratchTextures = kARM_GrGLVendor != ctxInfo.vendor() &&
329 kQualcomm_GrGLVendor != ctxInfo.vendor(); 328 kQualcomm_GrGLVendor != ctxInfo.vendor();
330 329
331 // Enable supported shader-related caps 330 // 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")); 788 r.appendf("Two Format Limit: %s\n", (fTwoFormatLimit ? "YES": "NO"));
790 r.appendf("Fragment coord conventions support: %s\n", 789 r.appendf("Fragment coord conventions support: %s\n",
791 (fFragCoordsConventionSupport ? "YES": "NO")); 790 (fFragCoordsConventionSupport ? "YES": "NO"));
792 r.appendf("Vertex array object support: %s\n", (fVertexArrayObjectSupport ? "YES": "NO")); 791 r.appendf("Vertex array object support: %s\n", (fVertexArrayObjectSupport ? "YES": "NO"));
793 r.appendf("Use non-VBO for dynamic data: %s\n", 792 r.appendf("Use non-VBO for dynamic data: %s\n",
794 (fUseNonVBOVertexAndIndexDynamicData ? "YES" : "NO")); 793 (fUseNonVBOVertexAndIndexDynamicData ? "YES" : "NO"));
795 r.appendf("Full screen clear is free: %s\n", (fFullClearIsFree ? "YES" : "NO ")); 794 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")); 795 r.appendf("Drops tile on zero divide: %s\n", (fDropsTileOnZeroDivide ? "YES" : "NO"));
797 return r; 796 return r;
798 } 797 }
OLDNEW
« no previous file with comments | « src/gpu/GrGpu.h ('k') | src/gpu/gl/GrGLDefines.h » ('j') | src/gpu/gl/GrGLProgramEffects.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698