/external/skia/samplecode/ |
D | SampleAndroidShadows.cpp | 130 const SkPoint3& zPlaneParams, in drawShadowedPath() argument 148 SkShadowUtils::DrawShadow(canvas, path, zPlaneParams, in drawShadowedPath() 174 SkPoint3 zPlaneParams = SkPoint3::Make(0, 0, 0); in onDrawContent() local 178 zPlaneParams.fZ = SkTMax(1.0f, 2 + fZDelta); in onDrawContent() 179 this->drawShadowedPath(canvas, fRRPath, zPlaneParams, paint, kAmbientAlpha, in onDrawContent() 184 zPlaneParams.fZ = SkTMax(1.0f, 8 + fZDelta); in onDrawContent() 185 this->drawShadowedPath(canvas, fRectPath, zPlaneParams, paint, kAmbientAlpha, in onDrawContent() 190 zPlaneParams.fZ = SkTMax(1.0f, 12 + fZDelta); in onDrawContent() 191 this->drawShadowedPath(canvas, fCirclePath, zPlaneParams, paint, kAmbientAlpha, in onDrawContent() 196 zPlaneParams.fZ = SkTMax(1.0f, 64 + fZDelta); in onDrawContent() [all …]
|
D | SampleShadowReference.cpp | 85 const SkPoint3& zPlaneParams, in drawShadowedPath() argument 98 SkShadowUtils::DrawShadow(canvas, path, zPlaneParams, in drawShadowedPath() 132 SkPoint3 zPlaneParams = SkPoint3::Make(0, 0, kDP * 2); in onDrawContent() local 137 this->drawShadowedPath(canvas, fRRectPath, zPlaneParams, paint, kAmbientAlpha, in onDrawContent() 144 zPlaneParams.fZ = kDP * 3; in onDrawContent() 148 this->drawShadowedPath(canvas, fRRectPath, zPlaneParams, paint, kAmbientAlpha, in onDrawContent() 155 zPlaneParams.fZ = kDP * 4; in onDrawContent() 159 this->drawShadowedPath(canvas, fRRectPath, zPlaneParams, paint, kAmbientAlpha, in onDrawContent() 166 zPlaneParams.fZ = kDP * 6; in onDrawContent() 170 this->drawShadowedPath(canvas, fRRectPath, zPlaneParams, paint, kAmbientAlpha, in onDrawContent() [all …]
|
D | SampleShadowColor.cpp | 100 const SkPoint3& zPlaneParams, in drawShadowedPath() argument 115 SkShadowUtils::DrawShadow(canvas, path, zPlaneParams, in drawShadowedPath() 130 SkShadowUtils::DrawShadow(canvas, path, zPlaneParams, in drawShadowedPath() 135 SkShadowUtils::DrawShadow(canvas, path, zPlaneParams, in drawShadowedPath() 140 SkShadowUtils::DrawShadow(canvas, path, zPlaneParams, in drawShadowedPath() 192 SkPoint3 zPlaneParams = SkPoint3::Make(0, 0, kZValues[fZIndex]); in onDrawContent() local 203 this->drawShadowedPath(canvas, fRectPath, zPlaneParams, paint, kAmbientAlpha, in onDrawContent()
|
D | SampleShadowUtils.cpp | 111 const SkPoint3& zPlaneParams, in drawShadowedPath() argument 128 SkShadowUtils::DrawShadow(canvas, path, zPlaneParams, in drawShadowedPath() 131 SkShadowUtils::DrawShadow(canvas, path, zPlaneParams, in drawShadowedPath() 170 SkPoint3 zPlaneParams = SkPoint3::Make(0, 0, SkTMax(1.0f, kHeight + fZDelta)); in onDrawContent() local 188 drawShadowedPath(canvas, path, zPlaneParams, paint, kAmbientAlpha, lightPos, in onDrawContent()
|
/external/skia/src/utils/ |
D | SkShadowUtils.cpp | 449 static bool tilted(const SkPoint3& zPlaneParams) { in tilted() argument 450 return !SkScalarNearlyZero(zPlaneParams.fX) || !SkScalarNearlyZero(zPlaneParams.fY); in tilted() 483 void SkShadowUtils::DrawShadow(SkCanvas* canvas, const SkPath& path, const SkPoint3& zPlaneParams, in DrawShadow() argument 494 rec.fZPlaneParams = zPlaneParams; in DrawShadow() 524 SkPoint3 zPlaneParams = rec.fZPlaneParams; in drawShadow() local 539 zPlaneParams, in drawShadow() 552 factory.fOccluderHeight = zPlaneParams.fZ; in drawShadow() 571 zPlaneParams, in drawShadow() 585 SkScalar occluderHeight = zPlaneParams.fZ; in drawShadow()
|
D | SkShadowTessellator.cpp | 25 SkBaseShadowTessellator(const SkPoint3& zPlaneParams, bool transparent); 125 SkBaseShadowTessellator::SkBaseShadowTessellator(const SkPoint3& zPlaneParams, bool transparent) in SkBaseShadowTessellator() argument 126 : fZPlaneParams(zPlaneParams) in SkBaseShadowTessellator() 341 const SkPoint3& zPlaneParams, bool transparent); 369 const SkPoint3& zPlaneParams, in SkAmbientShadowTessellator() argument 371 : INHERITED(zPlaneParams, transparent) in SkAmbientShadowTessellator() 741 const SkPoint3& zPlaneParams, const SkPoint3& lightPos, 784 const SkPoint3& zPlaneParams, in SkSpotShadowTessellator() argument 787 : INHERITED(zPlaneParams, transparent) in SkSpotShadowTessellator()
|
/external/skia/include/utils/ |
D | SkShadowUtils.h | 40 static void DrawShadow(SkCanvas* canvas, const SkPath& path, const SkPoint3& zPlaneParams,
|