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

Unified Diff: src/core/SkLightingShader.h

Issue 2080993002: Added API for Bevel NormalSource. (Closed) Base URL: https://skia.googlesource.com/skia@dvonbeck-diffuse-api-change
Patch Set: Small init fix 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 side-by-side diff with in-line comments
Download patch
Index: src/core/SkLightingShader.h
diff --git a/src/core/SkLightingShader.h b/src/core/SkLightingShader.h
index bb642615a56d512d57769206f853d610066e8685..7cc6af5b1ff9e8cdbea61c7af1a044b587b5285d 100644
--- a/src/core/SkLightingShader.h
+++ b/src/core/SkLightingShader.h
@@ -24,7 +24,8 @@ public:
The caller should decrement the shader's reference count when done with the shader.
It is an error for count to be < 2.
@param diffuseShader the shader that provides the colors
- @param normalSource the source for the shape's normals
+ @param normalSource the source for the shape's normals. When null, normals point
+ upwards
@param lights the lights applied to the normals
The lighting equation is currently:

Powered by Google App Engine
This is Rietveld 408576698