/external/skia/src/effects/shadows/ |
D | SkAmbientShadowMaskFilter.cpp | 25 SkAmbientShadowMaskFilterImpl(SkScalar occluderHeight, SkScalar ambientAlpha, uint32_t flags); 76 sk_sp<SkMaskFilter> SkAmbientShadowMaskFilter::Make(SkScalar occluderHeight, SkScalar ambientAlpha, in Make() argument 80 return sk_sp<SkMaskFilter>(new SkAmbientShadowMaskFilterImpl(occluderHeight, ambientAlpha, in Make() 87 SkScalar ambientAlpha, in SkAmbientShadowMaskFilterImpl() argument 90 , fAmbientAlpha(ambientAlpha) in SkAmbientShadowMaskFilterImpl() 114 const SkScalar ambientAlpha = buffer.readScalar(); in CreateProc() local 117 return SkAmbientShadowMaskFilter::Make(occluderHeight, ambientAlpha, flags); in CreateProc()
|
D | SkAmbientShadowMaskFilter.h | 25 static sk_sp<SkMaskFilter> Make(SkScalar occluderHeight, SkScalar ambientAlpha,
|
/external/skia/src/utils/ |
D | SkShadowUtils.cpp | 460 SkScalar ambientAlpha, SkScalar spotAlpha, SkColor color, in DrawShadow() argument 471 if (ambientAlpha > 0) { in DrawShadow() 472 newPaint.setMaskFilter(SkAmbientShadowMaskFilter::Make(occluderHeight, ambientAlpha, in DrawShadow() 490 if (ambientAlpha > 0) { in DrawShadow() 491 ambientAlpha = SkTMin(ambientAlpha, 1.f); in DrawShadow() 494 factory.fAmbientAlpha = ambientAlpha; in DrawShadow() 564 SkScalar ambientAlpha, SkScalar spotAlpha, SkColor color, in DrawUncachedShadow() argument 572 if (ambientAlpha > 0) { in DrawUncachedShadow() 573 ambientAlpha = SkTMin(ambientAlpha, 1.f); in DrawUncachedShadow() 575 heightFunc, ambientAlpha, in DrawUncachedShadow()
|
D | SkShadowTessellator.h | 29 HeightFunc heightFunc, SkScalar ambientAlpha, bool transparent);
|
D | SkShadowTessellator.cpp | 329 SkScalar ambientAlpha, bool transparent); 356 SkScalar ambientAlpha, in SkAmbientShadowTessellator() argument 359 , fAmbientAlpha(ambientAlpha) { in SkAmbientShadowTessellator() 367 fUmbraColor = SkColorSetARGB(255, 0, ambientAlpha * 255.9999f, umbraAlpha * 255.9999f); in SkAmbientShadowTessellator() 368 fPenumbraColor = SkColorSetARGB(255, 0, ambientAlpha * 255.9999f, 0); in SkAmbientShadowTessellator() 1281 HeightFunc heightFunc, SkScalar ambientAlpha, in MakeAmbient() argument 1283 SkAmbientShadowTessellator ambientTess(path, ctm, heightFunc, ambientAlpha, transparent); in MakeAmbient()
|
/external/skia/samplecode/ |
D | SampleAndroidShadows.cpp | 149 SkScalar ambientAlpha) { in drawAmbientShadow() argument 151 if (ambientAlpha <= 0) { in drawAmbientShadow() 174 : (unsigned char)(ambientAlpha*umbraAlpha*255.999f), 0, 0, 0)); in drawAmbientShadow() 187 SkScalar ambientAlpha) { in drawAmbientShadowAlt() argument 189 if (ambientAlpha <= 0) { in drawAmbientShadowAlt() 211 this->drawAmbientShadow(canvas, path, zValue, ambientAlpha); in drawAmbientShadowAlt() 245 unsigned char alpha = (unsigned char)(ambientAlpha*255.999f); in drawAmbientShadowAlt() 410 const SkPaint& paint, SkScalar ambientAlpha, in drawShadowedPath() argument 416 this->drawAmbientShadowAlt(canvas, path, zValue, ambientAlpha); in drawShadowedPath() 423 ambientAlpha = 0; in drawShadowedPath() [all …]
|
/external/skia/include/utils/ |
D | SkShadowUtils.h | 41 const SkPoint3& lightPos, SkScalar lightRadius, SkScalar ambientAlpha, 67 SkScalar ambientAlpha, SkScalar spotAlpha, SkColor color,
|
/external/skia/gm/ |
D | shadowutils.cpp | 16 SkScalar ambientAlpha = isAmbient ? .5f : 0.f; in draw_shadow() local 18 SkShadowUtils::DrawShadow(canvas, path, height, lightPos, lightR, ambientAlpha, spotAlpha, in draw_shadow()
|