Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(41)

Side by Side Diff: src/core/SkRadialShadowMapShader.h

Issue 2311223004: added in radial shadows (Closed)
Patch Set: moving lights Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/core/SkCanvas.cpp ('k') | src/core/SkRadialShadowMapShader.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 #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
OLDNEW
« no previous file with comments | « src/core/SkCanvas.cpp ('k') | src/core/SkRadialShadowMapShader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698