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

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

Issue 2118553002: adding new GM to demostrate new shadows (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: Lines too long Created 4 years, 4 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 | « gyp/core.gypi ('k') | src/core/SkShadowShader.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
9 #ifndef SkShadowShader_DEFINED
10 #define SkShadowShader_DEFINED
11
12 #ifdef SK_EXPERIMENTAL_SHADOWING
13
14 class SkLights;
15 class SkShader;
16
17 class SK_API SkShadowShader {
18 public:
19 /** This shader combines the diffuse color in 'diffuseShader' with the shado ws
20 * determined by the 'povDepthShader' and the shadow maps stored in each of the
21 * lights in 'lights'
22 */
23 static sk_sp<SkShader> Make(sk_sp<SkShader> povDepthShader,
24 sk_sp<SkShader> diffuseShader,
25 sk_sp<SkLights> lights,
26 int diffuseWidth, int diffuseHeight);
27
28 SK_DECLARE_FLATTENABLE_REGISTRAR_GROUP()
29 };
30
31 #endif
32 #endif
OLDNEW
« no previous file with comments | « gyp/core.gypi ('k') | src/core/SkShadowShader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698