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

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

Issue 1459323004: Revert of Initial version of external_oes texture support and unit test (Closed) Base URL: https://skia.googlesource.com/skia.git@target
Patch Set: Created 5 years, 1 month 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/GrGLSL.h ('k') | src/gpu/glsl/GrGLSLCaps.cpp » ('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 #ifndef GrGLSLCaps_DEFINED 9 #ifndef GrGLSLCaps_DEFINED
10 #define GrGLSLCaps_DEFINED 10 #define GrGLSLCaps_DEFINED
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 } 95 }
96 96
97 // This returns the name of an extension that must be enabled in the shader, if such a thing is 97 // This returns the name of an extension that must be enabled in the shader, if such a thing is
98 // required in order to use a secondary output in the shader. This returns a nullptr if no such 98 // required in order to use a secondary output in the shader. This returns a nullptr if no such
99 // extension is required. However, the return value of this function does no t say whether dual 99 // extension is required. However, the return value of this function does no t say whether dual
100 // source blending is supported. 100 // source blending is supported.
101 const char* secondaryOutputExtensionString() const { 101 const char* secondaryOutputExtensionString() const {
102 return fSecondaryOutputExtensionString; 102 return fSecondaryOutputExtensionString;
103 } 103 }
104 104
105 const char* externalTextureExtensionString() const {
106 return fExternalTextureExtensionString;
107 }
108
109 bool mustSwizzleInShader() const { return fMustSwizzleInShader; } 105 bool mustSwizzleInShader() const { return fMustSwizzleInShader; }
110 106
111 /** 107 /**
112 * Returns a string which represents how to map from an internal GLFormat to a given 108 * Returns a string which represents how to map from an internal GLFormat to a given
113 * GrPixelConfig. The function mustSwizzleInShader determines whether this s wizzle is applied 109 * GrPixelConfig. The function mustSwizzleInShader determines whether this s wizzle is applied
114 * in the generated shader code or using sample state in the 3D API. 110 * in the generated shader code or using sample state in the 3D API.
115 */ 111 */
116 const char* getSwizzleMap(GrPixelConfig config) const { return fConfigSwizzl e[config]; } 112 const char* getSwizzleMap(GrPixelConfig config) const { return fConfigSwizzl e[config]; }
117 113
118 GrGLSLGeneration generation() const { return fGLSLGeneration; } 114 GrGLSLGeneration generation() const { return fGLSLGeneration; }
(...skipping 18 matching lines...) Expand all
137 133
138 // Used for specific driver bug work arounds 134 // Used for specific driver bug work arounds
139 bool fCanUseMinAndAbsTogether : 1; 135 bool fCanUseMinAndAbsTogether : 1;
140 bool fMustForceNegatedAtanParamToFloat : 1; 136 bool fMustForceNegatedAtanParamToFloat : 1;
141 137
142 const char* fVersionDeclString; 138 const char* fVersionDeclString;
143 139
144 const char* fShaderDerivativeExtensionString; 140 const char* fShaderDerivativeExtensionString;
145 const char* fFragCoordConventionsExtensionString; 141 const char* fFragCoordConventionsExtensionString;
146 const char* fSecondaryOutputExtensionString; 142 const char* fSecondaryOutputExtensionString;
147 const char* fExternalTextureExtensionString;
148 143
149 const char* fFBFetchColorName; 144 const char* fFBFetchColorName;
150 const char* fFBFetchExtensionString; 145 const char* fFBFetchExtensionString;
151 146
152 AdvBlendEqInteraction fAdvBlendEqInteraction; 147 AdvBlendEqInteraction fAdvBlendEqInteraction;
153 148
154 bool fMustSwizzleInShader; 149 bool fMustSwizzleInShader;
155 const char* fConfigSwizzle[kGrPixelConfigCnt]; 150 const char* fConfigSwizzle[kGrPixelConfigCnt];
156 151
157 friend class GrGLCaps; // For initialization. 152 friend class GrGLCaps; // For initialization.
158 153
159 typedef GrShaderCaps INHERITED; 154 typedef GrShaderCaps INHERITED;
160 }; 155 };
161 156
162 157
163 #endif 158 #endif
OLDNEW
« no previous file with comments | « src/gpu/glsl/GrGLSL.h ('k') | src/gpu/glsl/GrGLSLCaps.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698