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

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: rebse Created 6 years, 4 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 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 // additions are detected by checking the existence of the function. Eventually we may 335 // additions are detected by checking the existence of the function. Eventually we may
336 // choose to remove the fixed function codepath. 336 // choose to remove the fixed function codepath.
337 // Set fMaxFixedFunctionTextureCoords = 0 here if you want to force 337 // Set fMaxFixedFunctionTextureCoords = 0 here if you want to force
338 // ProgramPathFragmentInputGen usage on desktop. 338 // ProgramPathFragmentInputGen usage on desktop.
339 fPathRenderingSupport = ctxInfo.hasExtension("GL_EXT_direct_state_ac cess") && 339 fPathRenderingSupport = ctxInfo.hasExtension("GL_EXT_direct_state_ac cess") &&
340 (fMaxFixedFunctionTextureCoords > 0 || 340 (fMaxFixedFunctionTextureCoords > 0 ||
341 ((ctxInfo.version() >= GR_GL_VER(4,3) || 341 ((ctxInfo.version() >= GR_GL_VER(4,3) ||
342 ctxInfo.hasExtension("GL_ARB_program_interface_query")) && 342 ctxInfo.hasExtension("GL_ARB_program_interface_query")) &&
343 NULL != gli->fFunctions.fProgramPathFragmentInputGen)); 343 NULL != gli->fFunctions.fProgramPathFragmentInputGen));
344 } else { 344 } else {
345 // Note: path rendering is not yet implemented for GLES. 345 fPathRenderingSupport = ctxInfo.version() >= GR_GL_VER(3,1);
346 fPathRenderingSupport = ctxInfo.version() >= GR_GL_VER(3,1) && false ;
347 } 346 }
348 } 347 }
349 348
350 fGpuTracingSupport = ctxInfo.hasExtension("GL_EXT_debug_marker"); 349 fGpuTracingSupport = ctxInfo.hasExtension("GL_EXT_debug_marker");
351 350
352 // For now these two are equivalent but we could have dst read in shader via some other method 351 // For now these two are equivalent but we could have dst read in shader via some other method
353 fDstReadInShaderSupport = fFBFetchSupport; 352 fDstReadInShaderSupport = fFBFetchSupport;
354 353
355 // Disable scratch texture reuse on Mali and Adreno devices 354 // Disable scratch texture reuse on Mali and Adreno devices
356 fReuseScratchTextures = kARM_GrGLVendor != ctxInfo.vendor() && 355 fReuseScratchTextures = kARM_GrGLVendor != ctxInfo.vendor() &&
(...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after
840 r.appendf("Two Format Limit: %s\n", (fTwoFormatLimit ? "YES": "NO")); 839 r.appendf("Two Format Limit: %s\n", (fTwoFormatLimit ? "YES": "NO"));
841 r.appendf("Fragment coord conventions support: %s\n", 840 r.appendf("Fragment coord conventions support: %s\n",
842 (fFragCoordsConventionSupport ? "YES": "NO")); 841 (fFragCoordsConventionSupport ? "YES": "NO"));
843 r.appendf("Vertex array object support: %s\n", (fVertexArrayObjectSupport ? "YES": "NO")); 842 r.appendf("Vertex array object support: %s\n", (fVertexArrayObjectSupport ? "YES": "NO"));
844 r.appendf("Use non-VBO for dynamic data: %s\n", 843 r.appendf("Use non-VBO for dynamic data: %s\n",
845 (fUseNonVBOVertexAndIndexDynamicData ? "YES" : "NO")); 844 (fUseNonVBOVertexAndIndexDynamicData ? "YES" : "NO"));
846 r.appendf("Full screen clear is free: %s\n", (fFullClearIsFree ? "YES" : "NO ")); 845 r.appendf("Full screen clear is free: %s\n", (fFullClearIsFree ? "YES" : "NO "));
847 r.appendf("Drops tile on zero divide: %s\n", (fDropsTileOnZeroDivide ? "YES" : "NO")); 846 r.appendf("Drops tile on zero divide: %s\n", (fDropsTileOnZeroDivide ? "YES" : "NO"));
848 return r; 847 return r;
849 } 848 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698