/external/skia/samplecode/ |
D | SampleShadowReference.cpp | 87 const SkPoint3& lightPos, SkScalar lightWidth, SkScalar spotAlpha) { in drawShadowedPath() argument 99 lightPos, lightWidth, in drawShadowedPath() 127 SkPoint3 lightPos = { 175, -800, kDP * 600 }; in onDrawContent() local 138 lightPos, kLightWidth, kSpotAlpha); in onDrawContent() 141 lightPos.fX += 320; in onDrawContent() 149 lightPos, kLightWidth, kSpotAlpha); in onDrawContent() 152 lightPos.fX += 320; in onDrawContent() 160 lightPos, kLightWidth, kSpotAlpha); in onDrawContent() 163 lightPos.fX += 320; in onDrawContent() 171 lightPos, kLightWidth, kSpotAlpha); in onDrawContent() [all …]
|
D | SampleShadowColor.cpp | 102 const SkPoint3& lightPos, SkScalar lightWidth, SkScalar spotAlpha) { in drawShadowedPath() argument 116 lightPos, lightWidth, in drawShadowedPath() 131 lightPos, lightWidth, in drawShadowedPath() 136 lightPos, lightWidth, in drawShadowedPath() 141 lightPos, lightWidth, in drawShadowedPath() 191 SkPoint3 lightPos = { 75, -400, 600 }; in onDrawContent() local 196 lightPos.fX = 75; in onDrawContent() 204 lightPos, kLightWidth, kSpotAlpha); in onDrawContent() 207 lightPos.fX += 120; in onDrawContent() 211 lightPos.fY += 200; in onDrawContent()
|
D | SampleAndroidShadows.cpp | 132 const SkPoint3& lightPos, SkScalar lightWidth, SkScalar spotAlpha) { in drawShadowedPath() argument 149 lightPos, lightWidth, in drawShadowedPath() 173 SkPoint3 lightPos = fLightPos; in onDrawContent() local 180 lightPos, kLightWidth, kSpotAlpha); in onDrawContent() 186 lightPos, kLightWidth, kSpotAlpha); in onDrawContent() 192 lightPos, kLightWidth, 0.5f); in onDrawContent() 198 lightPos, kLightWidth, kSpotAlpha); in onDrawContent() 204 lightPos, kLightWidth, kSpotAlpha); in onDrawContent() 210 kAmbientAlpha, lightPos, kLightWidth, kSpotAlpha); in onDrawContent() 222 lightPos, kLightWidth, .5f); in onDrawContent() [all …]
|
D | SampleShadowUtils.cpp | 113 const SkPoint3& lightPos, SkScalar lightWidth, SkScalar spotAlpha, in drawShadowedPath() argument 129 lightPos, lightWidth, in drawShadowedPath() 132 lightPos, lightWidth, in drawShadowedPath() 156 static constexpr SkPoint3 lightPos = { 250, 400, 500 }; in onDrawContent() local 188 drawShadowedPath(canvas, path, zPlaneParams, paint, kAmbientAlpha, lightPos, in onDrawContent() 206 canvas->drawCircle(lightPos.fX, lightPos.fY, kLightR / 10.f, paint); in onDrawContent()
|
/external/skia/gm/ |
D | shadowutils.cpp | 14 void draw_shadow(SkCanvas* canvas, const SkPath& path, int height, SkColor color, SkPoint3 lightPos, in draw_shadow() argument 18 SkShadowUtils::DrawShadow(canvas, path, height, lightPos, lightR, ambientAlpha, spotAlpha, in draw_shadow() 42 SkPoint3 lightPos = { lightXY.fX, lightXY.fY, 500 }; in draw_paths() local 70 draw_shadow(canvas, path, kHeight, SK_ColorRED, lightPos, kLightR, true, flags); in draw_paths() 71 draw_shadow(canvas, path, kHeight, SK_ColorBLUE, lightPos, kLightR, false, flags); in draw_paths() 108 canvas->drawCircle(lightPos.fX, lightPos.fY, kLightR / 10.f, paint); in draw_paths()
|
/external/skia/include/utils/ |
D | SkShadowUtils.h | 41 const SkPoint3& lightPos, SkScalar lightRadius, SkScalar ambientAlpha, 65 const SkPoint3& lightPos, SkScalar lightRadius, SkScalar ambientAlpha, 69 DrawShadow(canvas, path, zPlane, lightPos, lightRadius, ambientAlpha, spotAlpha,
|
/external/skia/src/utils/ |
D | SkShadowTessellator.h | 37 const SkPoint3& lightPos, SkScalar lightRadius, bool transparent);
|
D | SkShadowTessellator.cpp | 741 const SkPoint3& zPlaneParams, const SkPoint3& lightPos, 785 const SkPoint3& lightPos, SkScalar lightRadius, in SkSpotShadowTessellator() argument 788 , fLightZ(lightPos.fZ) in SkSpotShadowTessellator() 816 SkVector translate = SkVector::Make(-zRatio * lightPos.fX, -zRatio * lightPos.fY); in SkSpotShadowTessellator() 974 fPositions[i].fX = (fPositions[i].fX*fLightZ - lightPos.fX*pathZ)*factor; in SkSpotShadowTessellator() 975 fPositions[i].fY = (fPositions[i].fY*fLightZ - lightPos.fY*pathZ)*factor; in SkSpotShadowTessellator() 980 fCentroid.fX = (fCentroid.fX*fLightZ - lightPos.fX*pathZ)*factor; in SkSpotShadowTessellator() 981 fCentroid.fY = (fCentroid.fY*fLightZ - lightPos.fY*pathZ)*factor; in SkSpotShadowTessellator() 1399 const SkPoint3& zPlane, const SkPoint3& lightPos, in MakeSpot() argument 1401 SkSpotShadowTessellator spotTess(path, ctm, zPlane, lightPos, lightRadius, transparent); in MakeSpot()
|