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

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: Made req changes, and fixed CPU lighting. 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
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 #ifndef SkShadowShader_DEFINED
9 #define SkShadowShader_DEFINED
10
11 class SkLights;
12 class SkShader;
13
14 class SK_API SkShadowShader {
15 public:
robertphillips 2016/07/29 16:30:52 Fix comment. // This shader combines the diffuse
vjiaoblack 2016/07/29 17:39:31 Done.
16 /** Returns a shader that lights the shape, colored by the diffuseShader,
17 * and generates shadows with the set of lights provided.
18 */
19 static sk_sp<SkShader> Make(sk_sp<SkShader> povDepthShader,
20 sk_sp<SkShader> diffuseShader,
21 sk_sp<SkLights> lights);
22
23 SK_DECLARE_FLATTENABLE_REGISTRAR_GROUP()
24 };
25
26 #endif
OLDNEW
« gm/shadowmaps.cpp ('K') | « gyp/core.gypi ('k') | src/core/SkShadowShader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698