OLD | NEW |
---|---|
(Empty) | |
1 /* | |
robertphillips
2016/07/26 16:15:06
2016
vjiaoblack
2016/07/27 15:26:28
Done.
| |
2 * Copyright 2015 Google Inc. | |
3 * | |
4 * Use of this source code is governed by a BSD-style license that can be | |
5 * found in the LICENSE file. | |
6 */ | |
7 | |
8 #ifndef SkShadowShader_DEFINED | |
9 #define SkShadowShader_DEFINED | |
10 | |
robertphillips
2016/07/26 16:15:06
Do we actually need these two includes or can we j
vjiaoblack
2016/07/27 15:26:28
Done.
| |
11 #include "SkLights.h" | |
12 #include "SkShader.h" | |
13 | |
robertphillips
2016/07/26 16:15:06
Do we actually need the SkBitmap & SkMatrix predec
vjiaoblack
2016/07/27 15:26:28
Done.
| |
14 class SkBitmap; | |
15 class SkMatrix; | |
16 class SkNormalSource; | |
17 | |
18 class SK_API SkShadowShader { | |
19 public: | |
20 /** Returns a shader that lights the shape, colored by the diffuseShader, us ing the | |
21 normals from normalSource, with the set of lights provided. | |
22 */ | |
23 static sk_sp<SkShader> Make(sk_sp<SkShader> povDepthShader, | |
robertphillips
2016/07/26 16:15:06
just diffuseShader (no 2) ?
vjiaoblack
2016/07/27 15:26:28
Done.
| |
24 sk_sp<SkShader> diffuseShader2, | |
25 // sk_sp<SkNormalSource> normalSource, | |
26 sk_sp<SkLights> lights); | |
27 | |
28 SK_DECLARE_FLATTENABLE_REGISTRAR_GROUP() | |
29 }; | |
30 | |
31 #endif | |
OLD | NEW |