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

Side by Side Diff: src/sksl/ir/SkSLVariable.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/SkSLVarDeclaration.h ('k') | src/sksl/lex.sksl.c » ('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_VARIABLE 8 #ifndef SKSL_VARIABLE
9 #define SKSL_VARIABLE 9 #define SKSL_VARIABLE
10 10
(...skipping 22 matching lines...) Expand all
33 , fModifiers(modifiers) 33 , fModifiers(modifiers)
34 , fType(type) 34 , fType(type)
35 , fStorage(storage) 35 , fStorage(storage)
36 , fIsReadFrom(false) 36 , fIsReadFrom(false)
37 , fIsWrittenTo(false) {} 37 , fIsWrittenTo(false) {}
38 38
39 virtual std::string description() const override { 39 virtual std::string description() const override {
40 return fModifiers.description() + fType.fName + " " + fName; 40 return fModifiers.description() + fType.fName + " " + fName;
41 } 41 }
42 42
43 const Modifiers fModifiers; 43 mutable Modifiers fModifiers;
44 const Type& fType; 44 const Type& fType;
45 const Storage fStorage; 45 const Storage fStorage;
46 46
47 mutable bool fIsReadFrom; 47 mutable bool fIsReadFrom;
48 mutable bool fIsWrittenTo; 48 mutable bool fIsWrittenTo;
49 49
50 typedef Symbol INHERITED; 50 typedef Symbol INHERITED;
51 }; 51 };
52 52
53 } // namespace SkSL 53 } // namespace SkSL
54 54
55 #endif 55 #endif
OLDNEW
« no previous file with comments | « src/sksl/ir/SkSLVarDeclaration.h ('k') | src/sksl/lex.sksl.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698