OLD | NEW |
---|---|
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2015 Google Inc. | 3 * Copyright 2015 Google Inc. |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 #ifndef SkLights_DEFINED | 9 #ifndef SkLights_DEFINED |
10 #define SkLights_DEFINED | 10 #define SkLights_DEFINED |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
66 } | 66 } |
67 | 67 |
68 private: | 68 private: |
69 sk_sp<SkLights> fLights; | 69 sk_sp<SkLights> fLights; |
70 }; | 70 }; |
71 | 71 |
72 int numLights() const { | 72 int numLights() const { |
73 return fLights.count(); | 73 return fLights.count(); |
74 } | 74 } |
75 | 75 |
76 const Light& light(int index) const { | 76 Light& light(int index) { |
jvanverth1
2016/07/07 19:08:35
Should probably make these const again.
vjiaoblack
2016/07/07 19:17:55
Done.
| |
77 return fLights[index]; | 77 return fLights[index]; |
78 } | 78 } |
79 | 79 |
80 private: | 80 private: |
81 SkLights() {} | 81 SkLights() {} |
82 | 82 |
83 SkTDArray<Light> fLights; | 83 SkTDArray<Light> fLights; |
84 }; | 84 }; |
85 | 85 |
86 #endif | 86 #endif |
OLD | NEW |