Home
last modified time | relevance | path

Searched refs:spotAlpha (Results 1 – 12 of 12) sorted by relevance

/external/skqp/samplecode/
DSampleShadowColor.cpp102 const SkPoint3& lightPos, SkScalar lightWidth, SkScalar spotAlpha) { in drawShadowedPath() argument
107 spotAlpha = 0; in drawShadowedPath()
129 spotAlpha -= (alpha - 0.3f)*.5f; in drawShadowedPath()
138 SkColor spotGreyscale = SkColorSetARGB(spotAlpha * 255, 0, 0, 0); in drawShadowedPath()
147 SkColor baseSpot = SkColorSetARGB(spotAlpha*SkColorGetA(color), in drawShadowedPath()
DSampleShadowUtils.cpp131 const SkPoint3& lightPos, SkScalar lightWidth, SkScalar spotAlpha, in drawShadowedPath() argument
135 spotAlpha = 255; in drawShadowedPath()
141 spotAlpha = 0; in drawShadowedPath()
148 SkColor spotColor = SkColorSetARGB(spotAlpha * 255, 0, 0, 255); in drawShadowedPath()
DSampleShadowReference.cpp85 const SkPoint3& lightPos, SkScalar lightWidth, SkScalar spotAlpha) { in drawShadowedPath() argument
90 spotAlpha = 0; in drawShadowedPath()
98 SkColor spotColor = SkColorSetARGB(spotAlpha * 255, 0, 0, 0); in drawShadowedPath()
DSampleAndroidShadows.cpp171 const SkPoint3& lightPos, SkScalar lightWidth, SkScalar spotAlpha) { in drawShadowedPath() argument
174 spotAlpha = 1; in drawShadowedPath()
180 spotAlpha = 0; in drawShadowedPath()
188 SkColor spotColor = SkColorSetARGB(spotAlpha * 255, 0, 0, 0); in drawShadowedPath()
/external/skia/samplecode/
DSampleShadowColor.cpp102 const SkPoint3& lightPos, SkScalar lightWidth, SkScalar spotAlpha) { in drawShadowedPath() argument
107 spotAlpha = 0; in drawShadowedPath()
129 spotAlpha -= (alpha - 0.3f)*.5f; in drawShadowedPath()
138 SkColor spotGreyscale = SkColorSetARGB(spotAlpha * 255, 0, 0, 0); in drawShadowedPath()
147 SkColor baseSpot = SkColorSetARGB(spotAlpha*SkColorGetA(color), in drawShadowedPath()
DSampleShadowUtils.cpp131 const SkPoint3& lightPos, SkScalar lightWidth, SkScalar spotAlpha, in drawShadowedPath() argument
135 spotAlpha = 255; in drawShadowedPath()
141 spotAlpha = 0; in drawShadowedPath()
148 SkColor spotColor = SkColorSetARGB(spotAlpha * 255, 0, 0, 255); in drawShadowedPath()
DSampleShadowReference.cpp85 const SkPoint3& lightPos, SkScalar lightWidth, SkScalar spotAlpha) { in drawShadowedPath() argument
90 spotAlpha = 0; in drawShadowedPath()
98 SkColor spotColor = SkColorSetARGB(spotAlpha * 255, 0, 0, 0); in drawShadowedPath()
DSampleAndroidShadows.cpp171 const SkPoint3& lightPos, SkScalar lightWidth, SkScalar spotAlpha) { in drawShadowedPath() argument
174 spotAlpha = 1; in drawShadowedPath()
180 spotAlpha = 0; in drawShadowedPath()
188 SkColor spotColor = SkColorSetARGB(spotAlpha * 255, 0, 0, 0); in drawShadowedPath()
/external/skqp/gm/
Dshadowutils.cpp17 SkScalar spotAlpha = isAmbient ? 0.f : .5f; in draw_shadow() local
20 SkColor spotColor = SkColorSetARGB(spotAlpha*SkColorGetA(color), SkColorGetR(color), in draw_shadow()
/external/skia/gm/
Dshadowutils.cpp17 SkScalar spotAlpha = isAmbient ? 0.f : .5f; in draw_shadow() local
20 SkColor spotColor = SkColorSetARGB(spotAlpha*SkColorGetA(color), SkColorGetR(color), in draw_shadow()
/external/skia/src/core/
DSkPicturePlayback.cpp480 SkScalar spotAlpha = reader->readScalar(); in handleOp() local
483 rec.fSpotColor = SkColorSetA(color, SkColorGetA(color)*spotAlpha); in handleOp()
/external/skqp/src/core/
DSkPicturePlayback.cpp472 SkScalar spotAlpha = reader->readScalar(); in handleOp() local
475 rec.fSpotColor = SkColorSetA(color, SkColorGetA(color)*spotAlpha); in handleOp()