• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 #include "SkReadBuffer.h"
9 
10 #ifndef SkRadialShadowMapShader_DEFINED
11 #define SkRadialShadowMapShader_DEFINED
12 
13 #ifdef SK_EXPERIMENTAL_SHADOWING
14 
15 class SkLights;
16 class SkShader;
17 
18 class SK_API SkRadialShadowMapShader {
19 public:
20     /** This shader creates a 1D strip depth map for radial lights.
21      *  It can only take in 1 light to generate one shader at a time.
22      */
23     static sk_sp<SkShader> Make(sk_sp<SkShader> occluderShader,
24                                 sk_sp<SkLights> light,
25                                 int diffuseWidth, int diffuseHeight);
26 
27     SK_DECLARE_FLATTENABLE_REGISTRAR_GROUP()
28 };
29 
30 #endif
31 #endif
32