Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 /* | |
| 2 * Copyright 2016 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 | |
| 9 #ifndef SkSk2DShadowMapShader_DEFINED | |
| 10 #define SkSk2DShadowMapShader_DEFINED | |
| 11 | |
| 12 #ifdef SK_EXPERIMENTAL_SHADOWING | |
| 13 | |
| 14 class SkLights; | |
| 15 class SkShader; | |
| 16 | |
| 17 class SK_API Sk2DShadowMapShader { | |
|
jvanverth1
2016/09/07 14:47:24
SkRadialShadowMapShader? (use 'git mv' to rename t
vjiaoblack
2016/09/07 15:21:40
Done.
| |
| 18 public: | |
| 19 /** This shader creates a 1D strip depth map for 2D lights. | |
| 20 * It can only take in 1 light to generate one shader at a time. | |
| 21 */ | |
| 22 static sk_sp<SkShader> Make(sk_sp<SkShader> occluderShader, | |
| 23 sk_sp<SkLights> light, | |
| 24 int diffuseWidth, int diffuseHeight); | |
| 25 | |
| 26 SK_DECLARE_FLATTENABLE_REGISTRAR_GROUP() | |
| 27 }; | |
| 28 | |
| 29 #endif | |
| 30 #endif | |
| OLD | NEW |