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

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

Issue 2288033003: Turned on SkSL->GLSL compiler (Closed)
Patch Set: changed <iostream> to <ostream> Created 4 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
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 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 // As GLSLProcessors emit code, there are some conditions we need to verify. We use the below 196 // As GLSLProcessors emit code, there are some conditions we need to verify. We use the below
197 // state to track this. The reset call is called per processor emitted. 197 // state to track this. The reset call is called per processor emitted.
198 GrProcessor::RequiredFeatures usedProcessorFeatures() const { return fUsedPr ocessorFeatures; } 198 GrProcessor::RequiredFeatures usedProcessorFeatures() const { return fUsedPr ocessorFeatures; }
199 bool hasReadDstColor() const { return fHasReadDstColor; } 199 bool hasReadDstColor() const { return fHasReadDstColor; }
200 void resetVerification() { 200 void resetVerification() {
201 fUsedProcessorFeatures = GrProcessor::kNone_RequiredFeatures; 201 fUsedProcessorFeatures = GrProcessor::kNone_RequiredFeatures;
202 fHasReadDstColor = false; 202 fHasReadDstColor = false;
203 } 203 }
204 #endif 204 #endif
205 205
206 static const char* DeclaredColorOutputName() { return "fsColorOut"; } 206 static const char* DeclaredColorOutputName() { return "sk_FragColor"; }
207 static const char* DeclaredSecondaryColorOutputName() { return "fsSecondaryC olorOut"; } 207 static const char* DeclaredSecondaryColorOutputName() { return "fsSecondaryC olorOut"; }
208 208
209 GrSurfaceOrigin getSurfaceOrigin() const; 209 GrSurfaceOrigin getSurfaceOrigin() const;
210 210
211 void onFinalize() override; 211 void onFinalize() override;
212 void defineSampleOffsetArray(const char* name, const SkMatrix&); 212 void defineSampleOffsetArray(const char* name, const SkMatrix&);
213 213
214 static const char* kDstColorName; 214 static const char* kDstColorName;
215 215
216 /* 216 /*
(...skipping 29 matching lines...) Expand all
246 // the program creator 246 // the program creator
247 GrProcessor::RequiredFeatures fUsedProcessorFeatures; 247 GrProcessor::RequiredFeatures fUsedProcessorFeatures;
248 bool fHasReadDstColor; 248 bool fHasReadDstColor;
249 #endif 249 #endif
250 250
251 friend class GrGLSLProgramBuilder; 251 friend class GrGLSLProgramBuilder;
252 friend class GrGLProgramBuilder; 252 friend class GrGLProgramBuilder;
253 }; 253 };
254 254
255 #endif 255 #endif
OLDNEW
« no previous file with comments | « src/gpu/gl/builders/GrGLShaderStringBuilder.cpp ('k') | src/gpu/glsl/GrGLSLFragmentShaderBuilder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698