Home
last modified time | relevance | path

Searched refs:lightPos (Results 1 – 22 of 22) sorted by relevance

/external/skqp/samplecode/
DSampleShadowReference.cpp85 const SkPoint3& lightPos, SkScalar lightWidth, SkScalar spotAlpha) { in drawShadowedPath() argument
100 lightPos, lightWidth, in drawShadowedPath()
128 SkPoint3 lightPos = { 175, -800, kDP * 600 }; in onDrawContent() local
139 lightPos, kLightWidth, kSpotAlpha); in onDrawContent()
142 lightPos.fX += 320; in onDrawContent()
150 lightPos, kLightWidth, kSpotAlpha); in onDrawContent()
153 lightPos.fX += 320; in onDrawContent()
161 lightPos, kLightWidth, kSpotAlpha); in onDrawContent()
164 lightPos.fX += 320; in onDrawContent()
172 lightPos, kLightWidth, kSpotAlpha); in onDrawContent()
[all …]
DSampleAndroidShadows.cpp171 const SkPoint3& lightPos, SkScalar lightWidth, SkScalar spotAlpha) { in drawShadowedPath() argument
189 SkShadowUtils::DrawShadow(canvas, path, zPlaneParams, lightPos, lightWidth, in drawShadowedPath()
213 SkPoint3 lightPos = fLightPos; in onDrawContent() local
220 lightPos, kLightWidth, fAnimAlpha*kSpotAlpha); in onDrawContent()
226 lightPos, kLightWidth, fAnimAlpha*kSpotAlpha); in onDrawContent()
232 lightPos, kLightWidth, fAnimAlpha*0.5f); in onDrawContent()
238 lightPos, kLightWidth, fAnimAlpha*kSpotAlpha); in onDrawContent()
244 lightPos, kLightWidth, fAnimAlpha*kSpotAlpha); in onDrawContent()
250 lightPos, kLightWidth, fAnimAlpha*kSpotAlpha); in onDrawContent()
256 kAmbientAlpha, lightPos, kLightWidth, kSpotAlpha); in onDrawContent()
[all …]
DSampleShadowColor.cpp102 const SkPoint3& lightPos, SkScalar lightWidth, SkScalar spotAlpha) { in drawShadowedPath() argument
117 lightPos, lightWidth, in drawShadowedPath()
134 lightPos, lightWidth, in drawShadowedPath()
140 lightPos, lightWidth, in drawShadowedPath()
153 lightPos, lightWidth, in drawShadowedPath()
203 SkPoint3 lightPos = { 75, -400, 600 }; in onDrawContent() local
208 lightPos.fX = 75; in onDrawContent()
216 lightPos, kLightWidth, kSpotAlpha); in onDrawContent()
219 lightPos.fX += 120; in onDrawContent()
223 lightPos.fY += 200; in onDrawContent()
DSampleShadowUtils.cpp131 const SkPoint3& lightPos, SkScalar lightWidth, SkScalar spotAlpha, in drawShadowedPath() argument
150 lightPos, lightWidth, in drawShadowedPath()
174 static constexpr SkPoint3 lightPos = { 250, 400, 500 }; in onDrawContent() local
209 lightPos, kLightR, kSpotAlpha, flags); in onDrawContent()
234 this->drawShadowedPath(canvas, path, zPlaneParams, paint, kAmbientAlpha, lightPos, in onDrawContent()
252 canvas->drawCircle(lightPos.fX, lightPos.fY, kLightR / 10.f, paint); in onDrawContent()
/external/skia/samplecode/
DSampleShadowReference.cpp85 const SkPoint3& lightPos, SkScalar lightWidth, SkScalar spotAlpha) { in drawShadowedPath() argument
100 lightPos, lightWidth, in drawShadowedPath()
128 SkPoint3 lightPos = { 175, -800, kDP * 600 }; in onDrawContent() local
139 lightPos, kLightWidth, kSpotAlpha); in onDrawContent()
142 lightPos.fX += 320; in onDrawContent()
150 lightPos, kLightWidth, kSpotAlpha); in onDrawContent()
153 lightPos.fX += 320; in onDrawContent()
161 lightPos, kLightWidth, kSpotAlpha); in onDrawContent()
164 lightPos.fX += 320; in onDrawContent()
172 lightPos, kLightWidth, kSpotAlpha); in onDrawContent()
[all …]
DSampleAndroidShadows.cpp171 const SkPoint3& lightPos, SkScalar lightWidth, SkScalar spotAlpha) { in drawShadowedPath() argument
189 SkShadowUtils::DrawShadow(canvas, path, zPlaneParams, lightPos, lightWidth, in drawShadowedPath()
213 SkPoint3 lightPos = fLightPos; in onDrawContent() local
220 lightPos, kLightWidth, fAnimAlpha*kSpotAlpha); in onDrawContent()
226 lightPos, kLightWidth, fAnimAlpha*kSpotAlpha); in onDrawContent()
232 lightPos, kLightWidth, fAnimAlpha*0.5f); in onDrawContent()
238 lightPos, kLightWidth, fAnimAlpha*kSpotAlpha); in onDrawContent()
244 lightPos, kLightWidth, fAnimAlpha*kSpotAlpha); in onDrawContent()
250 lightPos, kLightWidth, fAnimAlpha*kSpotAlpha); in onDrawContent()
256 kAmbientAlpha, lightPos, kLightWidth, kSpotAlpha); in onDrawContent()
[all …]
DSampleShadowColor.cpp102 const SkPoint3& lightPos, SkScalar lightWidth, SkScalar spotAlpha) { in drawShadowedPath() argument
117 lightPos, lightWidth, in drawShadowedPath()
134 lightPos, lightWidth, in drawShadowedPath()
140 lightPos, lightWidth, in drawShadowedPath()
153 lightPos, lightWidth, in drawShadowedPath()
203 SkPoint3 lightPos = { 75, -400, 600 }; in onDrawContent() local
208 lightPos.fX = 75; in onDrawContent()
216 lightPos, kLightWidth, kSpotAlpha); in onDrawContent()
219 lightPos.fX += 120; in onDrawContent()
223 lightPos.fY += 200; in onDrawContent()
DSampleShadowUtils.cpp131 const SkPoint3& lightPos, SkScalar lightWidth, SkScalar spotAlpha, in drawShadowedPath() argument
150 lightPos, lightWidth, in drawShadowedPath()
174 static constexpr SkPoint3 lightPos = { 250, 400, 500 }; in onDrawContent() local
209 lightPos, kLightR, kSpotAlpha, flags); in onDrawContent()
234 this->drawShadowedPath(canvas, path, zPlaneParams, paint, kAmbientAlpha, lightPos, in onDrawContent()
252 canvas->drawCircle(lightPos.fX, lightPos.fY, kLightR / 10.f, paint); in onDrawContent()
/external/skqp/gm/
Dshadowutils.cpp15 SkPoint3 lightPos, SkScalar lightR, bool isAmbient, uint32_t flags) { in draw_shadow() argument
22 SkShadowUtils::DrawShadow(canvas, path, SkPoint3{ 0, 0, height}, lightPos, lightR, in draw_shadow()
73 SkPoint3 lightPos = { lightXY.fX, lightXY.fY, 500 }; in draw_paths() local
103 draw_shadow(canvas, path, kHeight, SK_ColorRED, lightPos, kLightR, in draw_paths()
105 draw_shadow(canvas, path, kHeight, SK_ColorBLUE, lightPos, kLightR, in draw_paths()
110 SkShadowUtils::DrawShadow(canvas, path, SkPoint3{0, 0, kHeight}, lightPos, in draw_paths()
160 draw_shadow(canvas, path, kHeight, SK_ColorRED, lightPos, kLightR, in draw_paths()
162 draw_shadow(canvas, path, kHeight, SK_ColorBLUE, lightPos, kLightR, in draw_paths()
167 SkShadowUtils::DrawShadow(canvas, path, SkPoint3{ 0, 0, kHeight }, lightPos, in draw_paths()
199 canvas->drawCircle(lightPos.fX, lightPos.fY, kLightR / 10.f, paint); in draw_paths()
/external/skia/gm/
Dshadowutils.cpp15 SkPoint3 lightPos, SkScalar lightR, bool isAmbient, uint32_t flags) { in draw_shadow() argument
22 SkShadowUtils::DrawShadow(canvas, path, SkPoint3{ 0, 0, height}, lightPos, lightR, in draw_shadow()
73 SkPoint3 lightPos = { lightXY.fX, lightXY.fY, 500 }; in draw_paths() local
103 draw_shadow(canvas, path, kHeight, SK_ColorRED, lightPos, kLightR, in draw_paths()
105 draw_shadow(canvas, path, kHeight, SK_ColorBLUE, lightPos, kLightR, in draw_paths()
110 SkShadowUtils::DrawShadow(canvas, path, SkPoint3{0, 0, kHeight}, lightPos, in draw_paths()
160 draw_shadow(canvas, path, kHeight, SK_ColorRED, lightPos, kLightR, in draw_paths()
162 draw_shadow(canvas, path, kHeight, SK_ColorBLUE, lightPos, kLightR, in draw_paths()
167 SkShadowUtils::DrawShadow(canvas, path, SkPoint3{ 0, 0, kHeight }, lightPos, in draw_paths()
199 canvas->drawCircle(lightPos.fX, lightPos.fY, kLightR / 10.f, paint); in draw_paths()
/external/skqp/src/core/
DSkDrawShadowInfo.cpp20 bool GetSpotShadowTransform(const SkPoint3& lightPos, SkScalar lightRadius, in GetSpotShadowTransform() argument
31 SkDrawShadowMetrics::GetSpotParams(occluderHeight, lightPos.fX, lightPos.fY, lightPos.fZ, in GetSpotShadowTransform()
59 SkScalar dz = lightPos.fZ - pts3D[i].fZ; in GetSpotShadowTransform()
65 pts3D[i].fX -= (lightPos.fX - pts3D[i].fX)*zRatio; in GetSpotShadowTransform()
66 pts3D[i].fY -= (lightPos.fY - pts3D[i].fY)*zRatio; in GetSpotShadowTransform()
110 *radius = SkDrawShadowMetrics::SpotBlurRadius(occluderHeight, lightPos.fZ, lightRadius); in GetSpotShadowTransform()
DSkDrawShadowInfo.h68 bool GetSpotShadowTransform(const SkPoint3& lightPos, SkScalar lightRadius,
/external/skia/src/core/
DSkDrawShadowInfo.cpp20 bool GetSpotShadowTransform(const SkPoint3& lightPos, SkScalar lightRadius, in GetSpotShadowTransform() argument
31 SkDrawShadowMetrics::GetSpotParams(occluderHeight, lightPos.fX, lightPos.fY, lightPos.fZ, in GetSpotShadowTransform()
59 SkScalar dz = lightPos.fZ - pts3D[i].fZ; in GetSpotShadowTransform()
65 pts3D[i].fX -= (lightPos.fX - pts3D[i].fX)*zRatio; in GetSpotShadowTransform()
66 pts3D[i].fY -= (lightPos.fY - pts3D[i].fY)*zRatio; in GetSpotShadowTransform()
110 *radius = SkDrawShadowMetrics::SpotBlurRadius(occluderHeight, lightPos.fZ, lightRadius); in GetSpotShadowTransform()
DSkDrawShadowInfo.h68 bool GetSpotShadowTransform(const SkPoint3& lightPos, SkScalar lightRadius,
/external/skia/include/utils/
DSkShadowUtils.h40 const SkPoint3& lightPos, SkScalar lightRadius,
/external/skia/src/utils/
DSkShadowTessellator.h38 const SkPoint3& lightPos, SkScalar lightRadius, bool transparent);
DSkShadowTessellator.cpp987 const SkPoint3& zPlaneParams, const SkPoint3& lightPos,
1000 const SkPoint3& lightPos, SkScalar lightRadius, in SkSpotShadowTessellator() argument
1007 if (!SkDrawShadowMetrics::GetSpotShadowTransform(lightPos, lightRadius, in SkSpotShadowTessellator()
1155 const SkPoint3& zPlane, const SkPoint3& lightPos, in MakeSpot() argument
1158 !lightPos.isFinite() || !(lightPos.fZ >= SK_ScalarNearlyZero) || in MakeSpot()
1162 SkSpotShadowTessellator spotTess(path, ctm, zPlane, lightPos, lightRadius, transparent); in MakeSpot()
/external/skqp/include/utils/
DSkShadowUtils.h40 const SkPoint3& lightPos, SkScalar lightRadius,
/external/skqp/src/utils/
DSkShadowTessellator.h38 const SkPoint3& lightPos, SkScalar lightRadius, bool transparent);
DSkShadowTessellator.cpp987 const SkPoint3& zPlaneParams, const SkPoint3& lightPos,
1000 const SkPoint3& lightPos, SkScalar lightRadius, in SkSpotShadowTessellator() argument
1007 if (!SkDrawShadowMetrics::GetSpotShadowTransform(lightPos, lightRadius, in SkSpotShadowTessellator()
1155 const SkPoint3& zPlane, const SkPoint3& lightPos, in MakeSpot() argument
1158 !lightPos.isFinite() || !(lightPos.fZ >= SK_ScalarNearlyZero) || in MakeSpot()
1162 SkSpotShadowTessellator spotTess(path, ctm, zPlane, lightPos, lightRadius, transparent); in MakeSpot()
/external/skqp/experimental/canvaskit/
Dcanvaskit_bindings.cpp687 const SkPoint3& lightPos, SkScalar lightRadius, in EMSCRIPTEN_BINDINGS()
690 SkShadowUtils::DrawShadow(&self, path, zPlaneParams, lightPos, lightRadius, in EMSCRIPTEN_BINDINGS()
/external/skia/modules/canvaskit/
Dcanvaskit_bindings.cpp769 const SkPoint3& lightPos, SkScalar lightRadius, in EMSCRIPTEN_BINDINGS()
772 SkShadowUtils::DrawShadow(&self, path, zPlaneParams, lightPos, lightRadius, in EMSCRIPTEN_BINDINGS()