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

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

Issue 2185393003: added initial GLSL support to skslc (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: added initial GLSL support to skslc Created 4 years, 4 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 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_TOKEN 8 #ifndef SKSL_TOKEN
9 #define SKSL_TOKEN 9 #define SKSL_TOKEN
10 10
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 CONTINUE, 82 CONTINUE,
83 DISCARD, 83 DISCARD,
84 IN, 84 IN,
85 OUT, 85 OUT,
86 INOUT, 86 INOUT,
87 CONST, 87 CONST,
88 LOWP, 88 LOWP,
89 MEDIUMP, 89 MEDIUMP,
90 HIGHP, 90 HIGHP,
91 UNIFORM, 91 UNIFORM,
92 FLAT,
93 NOPERSPECTIVE,
92 STRUCT, 94 STRUCT,
93 LAYOUT, 95 LAYOUT,
94 DIRECTIVE, 96 DIRECTIVE,
95 PRECISION, 97 PRECISION,
96 INVALID_TOKEN 98 INVALID_TOKEN
97 }; 99 };
98 100
99 static std::string OperatorName(Kind kind) { 101 static std::string OperatorName(Kind kind) {
100 switch (kind) { 102 switch (kind) {
101 case Token::PLUS: return "+"; 103 case Token::PLUS: return "+";
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 , fKind(kind) 149 , fKind(kind)
148 , fText(std::move(text)) {} 150 , fText(std::move(text)) {}
149 151
150 Position fPosition; 152 Position fPosition;
151 Kind fKind; 153 Kind fKind;
152 std::string fText; 154 std::string fText;
153 }; 155 };
154 156
155 } // namespace 157 } // namespace
156 #endif 158 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698