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

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: Forgot to commit files. Created 4 years, 5 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 /*
robertphillips 2016/07/26 16:15:06 2016
vjiaoblack 2016/07/27 15:26:28 Done.
2 * Copyright 2015 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
robertphillips 2016/07/26 16:15:06 Do we actually need these two includes or can we j
vjiaoblack 2016/07/27 15:26:28 Done.
11 #include "SkLights.h"
12 #include "SkShader.h"
13
robertphillips 2016/07/26 16:15:06 Do we actually need the SkBitmap & SkMatrix predec
vjiaoblack 2016/07/27 15:26:28 Done.
14 class SkBitmap;
15 class SkMatrix;
16 class SkNormalSource;
17
18 class SK_API SkShadowShader {
19 public:
20 /** Returns a shader that lights the shape, colored by the diffuseShader, us ing the
21 normals from normalSource, with the set of lights provided.
22 */
23 static sk_sp<SkShader> Make(sk_sp<SkShader> povDepthShader,
robertphillips 2016/07/26 16:15:06 just diffuseShader (no 2) ?
vjiaoblack 2016/07/27 15:26:28 Done.
24 sk_sp<SkShader> diffuseShader2,
25 // sk_sp<SkNormalSource> normalSource,
26 sk_sp<SkLights> lights);
27
28 SK_DECLARE_FLATTENABLE_REGISTRAR_GROUP()
29 };
30
31 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698