| Index: src/core/SkShadowShader.h
|
| diff --git a/src/core/SkShadowShader.h b/src/core/SkShadowShader.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..2ba9b9b65615c46ef88eceb66f9e41bd2ed2e48d
|
| --- /dev/null
|
| +++ b/src/core/SkShadowShader.h
|
| @@ -0,0 +1,26 @@
|
| +/*
|
| + * Copyright 2016 Google Inc.
|
| + *
|
| + * Use of this source code is governed by a BSD-style license that can be
|
| + * found in the LICENSE file.
|
| + */
|
| +
|
| +#ifndef SkShadowShader_DEFINED
|
| +#define SkShadowShader_DEFINED
|
| +
|
| +class SkLights;
|
| +class SkShader;
|
| +
|
| +class SK_API SkShadowShader {
|
| +public:
|
| + /** Returns a shader that lights the shape, colored by the diffuseShader,
|
| + * and generates shadows with the set of lights provided.
|
| + */
|
| + static sk_sp<SkShader> Make(sk_sp<SkShader> povDepthShader,
|
| + sk_sp<SkShader> diffuseShader,
|
| + sk_sp<SkLights> lights);
|
| +
|
| + SK_DECLARE_FLATTENABLE_REGISTRAR_GROUP()
|
| +};
|
| +
|
| +#endif
|
|
|