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

Side by Side Diff: src/sksl/SkSLGLSLCodeGenerator.h

Issue 2405383003: added basic dataflow analysis to skslc (Closed)
Patch Set: I have no idea what I was thinking 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
« no previous file with comments | « src/sksl/SkSLContext.h ('k') | src/sksl/SkSLIRGenerator.h » ('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 2016 Google Inc. 2 * Copyright 2016 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 SKSL_GLSLCODEGENERATOR 8 #ifndef SKSL_GLSLCODEGENERATOR
9 #define SKSL_GLSLCODEGENERATOR 9 #define SKSL_GLSLCODEGENERATOR
10 10
(...skipping 17 matching lines...) Expand all
28 #include "ir/SkSLFunctionCall.h" 28 #include "ir/SkSLFunctionCall.h"
29 #include "ir/SkSLFunctionDeclaration.h" 29 #include "ir/SkSLFunctionDeclaration.h"
30 #include "ir/SkSLFunctionDefinition.h" 30 #include "ir/SkSLFunctionDefinition.h"
31 #include "ir/SkSLPrefixExpression.h" 31 #include "ir/SkSLPrefixExpression.h"
32 #include "ir/SkSLPostfixExpression.h" 32 #include "ir/SkSLPostfixExpression.h"
33 #include "ir/SkSLProgramElement.h" 33 #include "ir/SkSLProgramElement.h"
34 #include "ir/SkSLReturnStatement.h" 34 #include "ir/SkSLReturnStatement.h"
35 #include "ir/SkSLStatement.h" 35 #include "ir/SkSLStatement.h"
36 #include "ir/SkSLSwizzle.h" 36 #include "ir/SkSLSwizzle.h"
37 #include "ir/SkSLTernaryExpression.h" 37 #include "ir/SkSLTernaryExpression.h"
38 #include "ir/SkSLVarDeclaration.h" 38 #include "ir/SkSLVarDeclarations.h"
39 #include "ir/SkSLVarDeclarationStatement.h" 39 #include "ir/SkSLVarDeclarationsStatement.h"
40 #include "ir/SkSLVariableReference.h" 40 #include "ir/SkSLVariableReference.h"
41 #include "ir/SkSLWhileStatement.h" 41 #include "ir/SkSLWhileStatement.h"
42 42
43 namespace SkSL { 43 namespace SkSL {
44 44
45 #define kLast_Capability SpvCapabilityMultiViewport 45 #define kLast_Capability SpvCapabilityMultiViewport
46 46
47 struct GLCaps { 47 struct GLCaps {
48 int fVersion; 48 int fVersion;
49 enum { 49 enum {
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 bool fAtLineStart; 180 bool fAtLineStart;
181 // Keeps track of which struct types we have written. Given that we are unli kely to ever write 181 // Keeps track of which struct types we have written. Given that we are unli kely to ever write
182 // more than one or two structs per shader, a simple linear search will be f aster than anything 182 // more than one or two structs per shader, a simple linear search will be f aster than anything
183 // fancier. 183 // fancier.
184 std::vector<const Type*> fWrittenStructs; 184 std::vector<const Type*> fWrittenStructs;
185 }; 185 };
186 186
187 } 187 }
188 188
189 #endif 189 #endif
OLDNEW
« no previous file with comments | « src/sksl/SkSLContext.h ('k') | src/sksl/SkSLIRGenerator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698