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

Side by Side Diff: src/gpu/glsl/GrGLSLFragmentShaderBuilder.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/GrGLSLCaps.cpp ('k') | tests/EGLImageTest.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 2014 Google Inc. 2 * Copyright 2014 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 #ifndef GrGLSLFragmentShaderBuilder_DEFINED 8 #ifndef GrGLSLFragmentShaderBuilder_DEFINED
9 #define GrGLSLFragmentShaderBuilder_DEFINED 9 #define GrGLSLFragmentShaderBuilder_DEFINED
10 10
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 165
166 void onFinalize() override; 166 void onFinalize() override;
167 167
168 /** 168 /**
169 * Features that should only be enabled by GrGLSLFragmentShaderBuilder itsel f. 169 * Features that should only be enabled by GrGLSLFragmentShaderBuilder itsel f.
170 */ 170 */
171 enum GLSLPrivateFeature { 171 enum GLSLPrivateFeature {
172 kFragCoordConventions_GLSLPrivateFeature = kLastGLSLFeature + 1, 172 kFragCoordConventions_GLSLPrivateFeature = kLastGLSLFeature + 1,
173 kBlendEquationAdvanced_GLSLPrivateFeature, 173 kBlendEquationAdvanced_GLSLPrivateFeature,
174 kBlendFuncExtended_GLSLPrivateFeature, 174 kBlendFuncExtended_GLSLPrivateFeature,
175 kExternalTexture_GLSLPrivateFeature,
176 kLastGLSLPrivateFeature = kBlendFuncExtended_GLSLPrivateFeature 175 kLastGLSLPrivateFeature = kBlendFuncExtended_GLSLPrivateFeature
177 }; 176 };
178 177
179 // Interpretation of FragPosKey when generating code 178 // Interpretation of FragPosKey when generating code
180 enum { 179 enum {
181 kNoFragPosRead_FragPosKey = 0, // The fragment positition wil l not be needed. 180 kNoFragPosRead_FragPosKey = 0, // The fragment positition wil l not be needed.
182 kTopLeftFragPosRead_FragPosKey = 0x1,// Read frag pos relative to t op-left. 181 kTopLeftFragPosRead_FragPosKey = 0x1,// Read frag pos relative to t op-left.
183 kBottomLeftFragPosRead_FragPosKey = 0x2,// Read frag pos relative to b ottom-left. 182 kBottomLeftFragPosRead_FragPosKey = 0x2,// Read frag pos relative to b ottom-left.
184 }; 183 };
185 184
186 static const char* kDstTextureColorName; 185 static const char* kDstTextureColorName;
187 186
188 bool fSetupFragPosition; 187 bool fSetupFragPosition;
189 bool fTopLeftFragPosRead; 188 bool fTopLeftFragPosRead;
190 int fCustomColorOutputIndex; 189 int fCustomColorOutputIndex;
191 190
192 // some state to verify shaders and effects are consistent, this is reset be tween effects by 191 // some state to verify shaders and effects are consistent, this is reset be tween effects by
193 // the program creator 192 // the program creator
194 bool fHasReadDstColor; 193 bool fHasReadDstColor;
195 bool fHasReadFragmentPosition; 194 bool fHasReadFragmentPosition;
196 195
197 friend class GrGLProgramBuilder; 196 friend class GrGLProgramBuilder;
198 197
199 typedef GrGLSLXPFragmentBuilder INHERITED; 198 typedef GrGLSLXPFragmentBuilder INHERITED;
200 }; 199 };
201 200
202 #endif 201 #endif
OLDNEW
« no previous file with comments | « src/gpu/glsl/GrGLSLCaps.cpp ('k') | tests/EGLImageTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698