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

Side by Side Diff: src/sksl/ir/SkSLUnresolvedFunction.h

Issue 2185393003: added initial GLSL support to skslc (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fixed gn build 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
« no previous file with comments | « src/sksl/ir/SkSLTypeReference.h ('k') | src/sksl/ir/SkSLVarDeclaration.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_UNRESOLVEDFUNCTION 8 #ifndef SKSL_UNRESOLVEDFUNCTION
9 #define SKSL_UNRESOLVEDFUNCTION 9 #define SKSL_UNRESOLVEDFUNCTION
10 10
11 #include "SkSLFunctionDeclaration.h" 11 #include "SkSLFunctionDeclaration.h"
12 12
13 namespace SkSL { 13 namespace SkSL {
14 14
15 /** 15 /**
16 * A symbol representing multiple functions with the same name. 16 * A symbol representing multiple functions with the same name.
17 */ 17 */
18 struct UnresolvedFunction : public Symbol { 18 struct UnresolvedFunction : public Symbol {
19 UnresolvedFunction(std::vector<const FunctionDeclaration*> funcs) 19 UnresolvedFunction(std::vector<const FunctionDeclaration*> funcs)
20 : INHERITED(Position(), kUnresolvedFunction_Kind, funcs[0]->fName) 20 : INHERITED(Position(), kUnresolvedFunction_Kind, funcs[0]->fName)
21 , fFunctions(std::move(funcs)) { 21 , fFunctions(std::move(funcs)) {
22 #ifdef DEBUG 22 #ifdef DEBUG
23 » for (auto func : funcs) { 23 for (auto func : funcs) {
24 » » ASSERT(func->fName == fName); 24 ASSERT(func->fName == fName);
25 » } 25 }
26 #endif 26 #endif
27 } 27 }
28 28
29 virtual std::string description() const override { 29 virtual std::string description() const override {
30 return fName; 30 return fName;
31 } 31 }
32 32
33 const std::vector<const FunctionDeclaration*> fFunctions; 33 const std::vector<const FunctionDeclaration*> fFunctions;
34 34
35 typedef Symbol INHERITED; 35 typedef Symbol INHERITED;
36 }; 36 };
37 37
38 } // namespace 38 } // namespace
39 39
40 #endif 40 #endif
OLDNEW
« no previous file with comments | « src/sksl/ir/SkSLTypeReference.h ('k') | src/sksl/ir/SkSLVarDeclaration.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698