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

Side by Side Diff: include/core/SkLights.h

Issue 2127233002: Added the framework for having canvas/recorder/picture record depth_set's. (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: Updated comments. Created 4 years, 5 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 /* 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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698