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

Side by Side Diff: src/gpu/glsl/GrGLSLCaps.cpp

Issue 1420033002: Revert of Add version string and force highp NDS transfrom to GLSLCaps (Closed) Base URL: https://skia.googlesource.com/skia.git@renameShaderVar
Patch Set: Created 5 years, 2 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/glsl/GrGLSLCaps.h ('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 "GrGLSLCaps.h" 9 #include "GrGLSLCaps.h"
10 10
11 //////////////////////////////////////////////////////////////////////////////// //////////// 11 //////////////////////////////////////////////////////////////////////////////// ////////////
12 12
13 GrGLSLCaps::GrGLSLCaps(const GrContextOptions& options) { 13 GrGLSLCaps::GrGLSLCaps(const GrContextOptions& options) {
14 fGLSLGeneration = k330_GrGLSLGeneration; 14 fGLSLGeneration = k330_GrGLSLGeneration;
15 15
16 fDropsTileOnZeroDivide = false; 16 fDropsTileOnZeroDivide = false;
17 fFBFetchSupport = false; 17 fFBFetchSupport = false;
18 fFBFetchNeedsCustomOutput = false; 18 fFBFetchNeedsCustomOutput = false;
19 fBindlessTextureSupport = false; 19 fBindlessTextureSupport = false;
20 fUsesPrecisionModifiers = false; 20 fUsesPrecisionModifiers = false;
21 fCanUseAnyFunctionInShader = true;
22 fForceHighPrecisionNDSTransform = false;
23 fVersionDeclString = nullptr;
24 fFBFetchColorName = nullptr; 21 fFBFetchColorName = nullptr;
25 fFBFetchExtensionString = nullptr; 22 fFBFetchExtensionString = nullptr;
26 fAdvBlendEqInteraction = kNotSupported_AdvBlendEqInteraction; 23 fAdvBlendEqInteraction = kNotSupported_AdvBlendEqInteraction;
27 } 24 }
28 25
29 SkString GrGLSLCaps::dump() const { 26 SkString GrGLSLCaps::dump() const {
30 SkString r = INHERITED::dump(); 27 SkString r = INHERITED::dump();
31 28
32 static const char* kAdvBlendEqInteractionStr[] = { 29 static const char* kAdvBlendEqInteractionStr[] = {
33 "Not Supported", 30 "Not Supported",
34 "Automatic", 31 "Automatic",
35 "General Enable", 32 "General Enable",
36 "Specific Enables", 33 "Specific Enables",
37 }; 34 };
38 GR_STATIC_ASSERT(0 == kNotSupported_AdvBlendEqInteraction); 35 GR_STATIC_ASSERT(0 == kNotSupported_AdvBlendEqInteraction);
39 GR_STATIC_ASSERT(1 == kAutomatic_AdvBlendEqInteraction); 36 GR_STATIC_ASSERT(1 == kAutomatic_AdvBlendEqInteraction);
40 GR_STATIC_ASSERT(2 == kGeneralEnable_AdvBlendEqInteraction); 37 GR_STATIC_ASSERT(2 == kGeneralEnable_AdvBlendEqInteraction);
41 GR_STATIC_ASSERT(3 == kSpecificEnables_AdvBlendEqInteraction); 38 GR_STATIC_ASSERT(3 == kSpecificEnables_AdvBlendEqInteraction);
42 GR_STATIC_ASSERT(SK_ARRAY_COUNT(kAdvBlendEqInteractionStr) == kLast_AdvBlend EqInteraction + 1); 39 GR_STATIC_ASSERT(SK_ARRAY_COUNT(kAdvBlendEqInteractionStr) == kLast_AdvBlend EqInteraction + 1);
43 40
44 r.appendf("--- GLSL-Specific ---\n"); 41 r.appendf("--- GLSL-Specific ---\n");
45 42
46 r.appendf("FB Fetch Support: %s\n", (fFBFetchSupport ? "YES" : "NO")); 43 r.appendf("FB Fetch Support: %s\n", (fFBFetchSupport ? "YES" : "NO"));
47 r.appendf("Drops tile on zero divide: %s\n", (fDropsTileOnZeroDivide ? "YES" : "NO")); 44 r.appendf("Drops tile on zero divide: %s\n", (fDropsTileOnZeroDivide ? "YES" : "NO"));
48 r.appendf("Bindless texture support: %s\n", (fBindlessTextureSupport ? "YES" : "NO")); 45 r.appendf("Bindless texture support: %s\n", (fBindlessTextureSupport ? "YES" : "NO"));
49 r.appendf("Uses precision modifiers: %s\n", (fUsesPrecisionModifiers ? "YES" : "NO")); 46 r.appendf("Uses precision modifiers: %s\n", (fUsesPrecisionModifiers ? "YES" : "NO"));
50 r.appendf("Can Use any() function: %s\n", (fCanUseAnyFunctionInShader ? "YES " : "NO"));
51 r.appendf("Force high precision on NDS transform: %s\n", (fForceHighPrecisio nNDSTransform ?
52 "YES" : "NO"));
53 r.appendf("Advanced blend equation interaction: %s\n", 47 r.appendf("Advanced blend equation interaction: %s\n",
54 kAdvBlendEqInteractionStr[fAdvBlendEqInteraction]); 48 kAdvBlendEqInteractionStr[fAdvBlendEqInteraction]);
55 return r; 49 return r;
56 } 50 }
57 51
OLDNEW
« no previous file with comments | « src/gpu/glsl/GrGLSLCaps.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698