/third_party/skia/samplecode/ |
D | SampleMaterialShadows.cpp | 61 const SkScalar kAmbientAlpha = 0.05f; in onDrawContent() local 77 this->drawShadowedPath(canvas, fCirclePath, zPlaneParams, paint, kAmbientAlpha, in onDrawContent() 87 this->drawShadowedPath(canvas, fCapsulePath, zPlaneParams, paint, kAmbientAlpha, in onDrawContent() 97 this->drawShadowedPath(canvas, fLargeRRPath, zPlaneParams, paint, kAmbientAlpha, in onDrawContent() 107 this->drawShadowedPath(canvas, fSmallRRPath, zPlaneParams, paint, kAmbientAlpha, in onDrawContent() 119 this->drawShadowedPath(canvas, fSmallRRPath, zPlaneParams, paint, kAmbientAlpha, in onDrawContent() 132 this->drawShadowedPath(canvas, fSmallRRPath, zPlaneParams, paint, kAmbientAlpha, in onDrawContent()
|
D | SampleShadowReference.cpp | 115 const SkScalar kAmbientAlpha = 0.03f; in onDrawContent() local 132 this->drawShadowedPath(canvas, fRRectPath, zPlaneParams, paint, kAmbientAlpha, in onDrawContent() 143 this->drawShadowedPath(canvas, fRRectPath, zPlaneParams, paint, kAmbientAlpha, in onDrawContent() 154 this->drawShadowedPath(canvas, fRRectPath, zPlaneParams, paint, kAmbientAlpha, in onDrawContent() 165 this->drawShadowedPath(canvas, fRRectPath, zPlaneParams, paint, kAmbientAlpha, in onDrawContent() 176 this->drawShadowedPath(canvas, fRRectPath, zPlaneParams, paint, kAmbientAlpha, in onDrawContent() 187 this->drawShadowedPath(canvas, fRRectPath, zPlaneParams, paint, kAmbientAlpha, in onDrawContent()
|
D | SampleAndroidShadows.cpp | 183 const SkScalar kAmbientAlpha = 0.039f; in onDrawContent() local 195 this->drawShadowedPath(canvas, fRRPath, zPlaneParams, paint, fAnimAlpha*kAmbientAlpha, in onDrawContent() 201 this->drawShadowedPath(canvas, fRectPath, zPlaneParams, paint, fAnimAlpha*kAmbientAlpha, in onDrawContent() 207 this->drawShadowedPath(canvas, fCirclePath, zPlaneParams, paint, fAnimAlpha*kAmbientAlpha, in onDrawContent() 213 this->drawShadowedPath(canvas, fRRPath, zPlaneParams, paint, fAnimAlpha*kAmbientAlpha, in onDrawContent() 219 this->drawShadowedPath(canvas, fFunkyRRPath, zPlaneParams, paint, fAnimAlpha*kAmbientAlpha, in onDrawContent() 225 this->drawShadowedPath(canvas, fCubicPath, zPlaneParams, paint, fAnimAlpha*kAmbientAlpha, in onDrawContent() 232 kAmbientAlpha, lightPos, kLightWidth, kSpotAlpha); in onDrawContent() 238 kAmbientAlpha, lightPos, kLightWidth, kSpotAlpha); in onDrawContent() 244 kAmbientAlpha, lightPos, kLightWidth, kSpotAlpha); in onDrawContent()
|
D | SampleShadowUtils.cpp | 164 static constexpr SkScalar kAmbientAlpha = 0.5f; in onDrawContent() local 198 this->drawShadowedPath(canvas, path, zPlaneParams, greenPaint, kAmbientAlpha, in onDrawContent() 224 this->drawShadowedPath(canvas, path, zPlaneParams, greenPaint, kAmbientAlpha, in onDrawContent()
|
D | SampleShadowColor.cpp | 165 const SkScalar kAmbientAlpha = 0.03f; in onDrawContent() local 210 this->drawShadowedPath(canvas, fRectPath, zPlaneParams, paint, kAmbientAlpha, in onDrawContent()
|