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

Side by Side Diff: src/sksl/ir/SkSLIndexExpression.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/ir/SkSLExpression.h ('k') | src/sksl/ir/SkSLInterfaceBlock.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_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
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
OLDNEW
« no previous file with comments | « src/sksl/ir/SkSLExpression.h ('k') | src/sksl/ir/SkSLInterfaceBlock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698