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_VARIABLE | 8 #ifndef SKSL_VARIABLE |
9 #define SKSL_VARIABLE | 9 #define SKSL_VARIABLE |
10 | 10 |
(...skipping 22 matching lines...) Expand all Loading... |
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 |
OLD | NEW |