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 | 8 |
9 #ifndef SkShadowShader_DEFINED | 9 #ifndef SkShadowShader_DEFINED |
10 #define SkShadowShader_DEFINED | 10 #define SkShadowShader_DEFINED |
11 | 11 |
12 #ifdef SK_EXPERIMENTAL_SHADOWING | 12 #ifdef SK_EXPERIMENTAL_SHADOWING |
13 | 13 |
robertphillips
2016/08/03 18:47:48
Can this class scoped ?
vjiaoblack
2016/08/04 13:36:22
Done.
| |
14 #define SK_MAX_NON_AMBIENT_LIGHTS 4 | |
15 | |
14 class SkLights; | 16 class SkLights; |
15 class SkShader; | 17 class SkShader; |
16 | 18 |
17 class SK_API SkShadowShader { | 19 class SK_API SkShadowShader { |
18 public: | 20 public: |
19 /** This shader combines the diffuse color in 'diffuseShader' with the shado ws | 21 /** This shader combines the diffuse color in 'diffuseShader' with the shado ws |
20 * determined by the 'povDepthShader' and the shadow maps stored in each of the | 22 * determined by the 'povDepthShader' and the shadow maps stored in each of the |
21 * lights in 'lights' | 23 * lights in 'lights' |
22 */ | 24 */ |
23 static sk_sp<SkShader> Make(sk_sp<SkShader> povDepthShader, | 25 static sk_sp<SkShader> Make(sk_sp<SkShader> povDepthShader, |
24 sk_sp<SkShader> diffuseShader, | 26 sk_sp<SkShader> diffuseShader, |
25 sk_sp<SkLights> lights, | 27 sk_sp<SkLights> lights, |
26 int diffuseWidth, int diffuseHeight); | 28 int diffuseWidth, int diffuseHeight); |
27 | 29 |
28 SK_DECLARE_FLATTENABLE_REGISTRAR_GROUP() | 30 SK_DECLARE_FLATTENABLE_REGISTRAR_GROUP() |
29 }; | 31 }; |
30 | 32 |
31 #endif | 33 #endif |
32 #endif | 34 #endif |
OLD | NEW |