| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |