/external/skia/src/effects/imagefilters/ |
D | SkLightingImageFilter.cpp | 157 virtual SkPoint3 surfaceToLight(int x, int y, int z, SkScalar surfaceScale) const = 0; 236 static inline SkPoint3 pointToNormal(SkScalar x, SkScalar y, SkScalar surfaceScale) { in pointToNormal() argument 237 SkPoint3 vector = SkPoint3::Make(-x * surfaceScale, -y * surfaceScale, 1); in pointToNormal() 242 static inline SkPoint3 topLeftNormal(int m[9], SkScalar surfaceScale) { in topLeftNormal() argument 245 surfaceScale); in topLeftNormal() 248 static inline SkPoint3 topNormal(int m[9], SkScalar surfaceScale) { in topNormal() argument 251 surfaceScale); in topNormal() 254 static inline SkPoint3 topRightNormal(int m[9], SkScalar surfaceScale) { in topRightNormal() argument 257 surfaceScale); in topRightNormal() 260 static inline SkPoint3 leftNormal(int m[9], SkScalar surfaceScale) { in leftNormal() argument [all …]
|
/external/skia/gm/ |
D | lighting.cpp | 94 SkScalar surfaceScale = SkIntToScalar(1); in onDraw() local 109 pointLocation, SK_ColorWHITE, surfaceScale, kd, input, cr)); in onDraw() 113 distantDirection, SK_ColorWHITE, surfaceScale, kd, input, cr)); in onDraw() 118 surfaceScale, kd, input, cr)); in onDraw() 124 surfaceScale, kd, input, cr)); in onDraw() 135 distantDirection, greenYellow, surfaceScale, 4.f * kd, input, cr)); in onDraw() 142 pointLocation, SK_ColorWHITE, surfaceScale, ks, shininess, input, cr)); in onDraw() 146 distantDirection, SK_ColorWHITE, surfaceScale, ks, shininess, input, cr)); in onDraw() 151 surfaceScale, ks, shininess, input, cr)); in onDraw() 157 surfaceScale, ks, shininess, input, cr)); in onDraw() [all …]
|
D | imagefiltersscaled.cpp | 92 SkScalar surfaceScale = SkIntToScalar(1); in onDraw() local 108 SkImageFilters::PointLitDiffuse(pointLocation, white, surfaceScale, kd, nullptr), in onDraw() 110 cutoffAngle, white, surfaceScale, kd, nullptr), in onDraw()
|
D | imagefilterscropexpand.cpp | 61 SkScalar surfaceScale = SkIntToScalar(1); variable 98 SkImageFilters::PointLitDiffuse(pointLocation, SK_ColorWHITE, surfaceScale, kd,
|
/external/skia/platform_tools/android/apps/jetski/src/main/java/org/skia/jetski/ |
D | ImageFilter.java | 32 … float surfaceScale, float kd, @Nullable ImageFilter input) { in distantLitDiffuse() argument 38 surfaceScale, kd, nativeInput)); in distantLitDiffuse() 113 float surfaceScale, float kd, in nDistantLitDiffuse() argument
|
/external/skia/include/effects/ |
D | SkImageFilters.h | 438 SkScalar surfaceScale, SkScalar kd, 454 SkScalar surfaceScale, SkScalar kd, 475 SkColor lightColor, SkScalar surfaceScale, 493 SkScalar surfaceScale, SkScalar ks, 510 SkScalar surfaceScale, SkScalar ks, 532 SkColor lightColor, SkScalar surfaceScale,
|
/external/skia/modules/jetski/src/ |
D | ImageFilter.cpp | 23 jfloat surfaceScale, jfloat kd, in ImageFilter_DistantLitDiffuse() argument 28 …auto filter = SkImageFilters::DistantLitDiffuse(direction, color, surfaceScale, kd, std::move(inpu… in ImageFilter_DistantLitDiffuse()
|
/external/skia/bench/ |
D | LightingBench.cpp | 85 static SkScalar surfaceScale = SkIntToScalar(1); in GetSurfaceScale() local 86 return surfaceScale; in GetSurfaceScale()
|
/external/skia/fuzz/ |
D | FuzzCanvas.cpp | 460 SkScalar surfaceScale, k, specularExponent, cutoffAngle, shininess; in make_fuzz_lighting_imagefilter() local 470 fuzz->next(&p, &lightColor, &surfaceScale, &k); in make_fuzz_lighting_imagefilter() 472 return SkImageFilters::DistantLitDiffuse(p, lightColor, surfaceScale, k, in make_fuzz_lighting_imagefilter() 476 fuzz->next(&p, &lightColor, &surfaceScale, &k); in make_fuzz_lighting_imagefilter() 478 return SkImageFilters::PointLitDiffuse(p, lightColor, surfaceScale, k, in make_fuzz_lighting_imagefilter() 482 fuzz->next(&p, &q, &specularExponent, &cutoffAngle, &lightColor, &surfaceScale, &k); in make_fuzz_lighting_imagefilter() 485 p, q, specularExponent, cutoffAngle, lightColor, surfaceScale, k, in make_fuzz_lighting_imagefilter() 488 fuzz->next(&p, &lightColor, &surfaceScale, &k, &shininess); in make_fuzz_lighting_imagefilter() 490 return SkImageFilters::DistantLitSpecular(p, lightColor, surfaceScale, k, in make_fuzz_lighting_imagefilter() 494 fuzz->next(&p, &lightColor, &surfaceScale, &k, &shininess); in make_fuzz_lighting_imagefilter() [all …]
|