blob: 4d6956ca82e02f868aa5aaba00d12c91d5009b20 [file] [log] [blame]
vjiaoblackb2796fd2016-09-09 09:22:39 -07001/*
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
15class SkLights;
16class SkShader;
17
18class SK_API SkRadialShadowMapShader {
19public:
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