| 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_INDEX | 8 #ifndef SKSL_INDEX |
| 9 #define SKSL_INDEX | 9 #define SKSL_INDEX |
| 10 | 10 |
| 11 #include "SkSLContext.h" |
| 11 #include "SkSLExpression.h" | 12 #include "SkSLExpression.h" |
| 12 #include "SkSLUtil.h" | 13 #include "SkSLUtil.h" |
| 13 | 14 |
| 14 namespace SkSL { | 15 namespace SkSL { |
| 15 | 16 |
| 16 /** | 17 /** |
| 17 * Given a type, returns the type that will result from extracting an array valu
e from it. | 18 * Given a type, returns the type that will result from extracting an array valu
e from it. |
| 18 */ | 19 */ |
| 19 static const Type& index_type(const Context& context, const Type& type) { | 20 static const Type& index_type(const Context& context, const Type& type) { |
| 20 if (type.kind() == Type::kMatrix_Kind) { | 21 if (type.kind() == Type::kMatrix_Kind) { |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 | 57 |
| 57 const std::unique_ptr<Expression> fBase; | 58 const std::unique_ptr<Expression> fBase; |
| 58 const std::unique_ptr<Expression> fIndex; | 59 const std::unique_ptr<Expression> fIndex; |
| 59 | 60 |
| 60 typedef Expression INHERITED; | 61 typedef Expression INHERITED; |
| 61 }; | 62 }; |
| 62 | 63 |
| 63 } // namespace | 64 } // namespace |
| 64 | 65 |
| 65 #endif | 66 #endif |
| OLD | NEW |