Home
last modified time | relevance | path

Searched refs:zPlaneParams (Results 1 – 16 of 16) sorted by relevance

/external/skia/tools/viewer/
DAndroidShadowsSlide.cpp170 SkPoint3 zPlaneParams = SkPoint3::Make(0, 0, 0); in draw() local
174 zPlaneParams.fZ = std::max(1.0f, 2 + fZDelta); in draw()
175 this->drawShadowedPath(canvas, fRRPath, zPlaneParams, paint, fAnimAlpha*kAmbientAlpha, in draw()
180 zPlaneParams.fZ = std::max(1.0f, 8 + fZDelta); in draw()
181 this->drawShadowedPath(canvas, fRectPath, zPlaneParams, paint, fAnimAlpha*kAmbientAlpha, in draw()
186 zPlaneParams.fZ = std::max(1.0f, 12 + fZDelta); in draw()
187 this->drawShadowedPath(canvas, fCirclePath, zPlaneParams, paint, fAnimAlpha*kAmbientAlpha, in draw()
192 zPlaneParams.fZ = std::max(1.0f, 64 + fZDelta); in draw()
193 this->drawShadowedPath(canvas, fRRPath, zPlaneParams, paint, fAnimAlpha*kAmbientAlpha, in draw()
198 zPlaneParams.fZ = std::max(1.0f, 8 + fZDelta); in draw()
[all …]
DMaterialShadowsSlide.cpp44 const SkPoint3& zPlaneParams, in drawShadowedPath() argument
52 SkShadowUtils::DrawShadow(canvas, path, zPlaneParams, lightPos, lightRadius, in drawShadowedPath()
71 SkPoint3 zPlaneParams = SkPoint3::Make(0, 0, 0); in draw() local
77 zPlaneParams.fZ = elevations[i]; in draw()
78 this->drawShadowedPath(canvas, fCirclePath, zPlaneParams, paint, kAmbientAlpha, in draw()
87 zPlaneParams.fZ = elevations[i]; in draw()
88 this->drawShadowedPath(canvas, fCapsulePath, zPlaneParams, paint, kAmbientAlpha, in draw()
97 zPlaneParams.fZ = elevations[i]; in draw()
98 this->drawShadowedPath(canvas, fLargeRRPath, zPlaneParams, paint, kAmbientAlpha, in draw()
107 zPlaneParams.fZ = elevations[i]; in draw()
[all …]
DShadowReferenceSlide.cpp89 SkPoint3 zPlaneParams = SkPoint3::Make(0, 0, kDP * 2); in draw() local
94 this->drawShadowedPath(canvas, fRRectPath, zPlaneParams, paint, kAmbientAlpha, in draw()
101 zPlaneParams.fZ = kDP * 3; in draw()
105 this->drawShadowedPath(canvas, fRRectPath, zPlaneParams, paint, kAmbientAlpha, in draw()
112 zPlaneParams.fZ = kDP * 4; in draw()
116 this->drawShadowedPath(canvas, fRRectPath, zPlaneParams, paint, kAmbientAlpha, in draw()
123 zPlaneParams.fZ = kDP * 6; in draw()
127 this->drawShadowedPath(canvas, fRRectPath, zPlaneParams, paint, kAmbientAlpha, in draw()
134 zPlaneParams.fZ = kDP * 8; in draw()
138 this->drawShadowedPath(canvas, fRRectPath, zPlaneParams, paint, kAmbientAlpha, in draw()
[all …]
DShadowColorSlide.cpp127 SkPoint3 zPlaneParams = SkPoint3::Make(0, 0, kZValues[fZIndex]); in draw() local
138 this->drawShadowedPath(canvas, fRectPath, zPlaneParams, paint, kAmbientAlpha, in draw()
153 const SkPoint3& zPlaneParams, in drawShadowedPath() argument
169 SkShadowUtils::DrawShadow(canvas, path, zPlaneParams, in drawShadowedPath()
186 SkShadowUtils::DrawShadow(canvas, path, zPlaneParams, in drawShadowedPath()
192 SkShadowUtils::DrawShadow(canvas, path, zPlaneParams, in drawShadowedPath()
205 SkShadowUtils::DrawShadow(canvas, path, zPlaneParams, in drawShadowedPath()
DShadowUtilsSlide.cpp136 SkPoint3 zPlaneParams = SkPoint3::Make(0, 0, std::max(1.0f, kHeight + fZDelta)); in draw() local
156 this->drawShadowedPath(canvas, path, zPlaneParams, greenPaint, kAmbientAlpha, in draw()
182 this->drawShadowedPath(canvas, path, zPlaneParams, greenPaint, kAmbientAlpha, in draw()
211 const SkPoint3& zPlaneParams, in drawShadowedPath() argument
231 SkShadowUtils::DrawShadow(canvas, path, zPlaneParams, in drawShadowedPath()
/external/skia/src/utils/
DSkShadowUtils.cpp472 static bool tilted(const SkPoint3& zPlaneParams) { in tilted() argument
473 return !SkScalarNearlyZero(zPlaneParams.fX) || !SkScalarNearlyZero(zPlaneParams.fY); in tilted()
532 static bool fill_shadow_rec(const SkPath& path, const SkPoint3& zPlaneParams, in fill_shadow_rec() argument
547 rec->fZPlaneParams = zPlaneParams; in fill_shadow_rec()
558 void SkShadowUtils::DrawShadow(SkCanvas* canvas, const SkPath& path, const SkPoint3& zPlaneParams, in DrawShadow() argument
563 if (!fill_shadow_rec(path, zPlaneParams, lightPos, lightRadius, ambientColor, spotColor, in DrawShadow()
572 const SkPoint3& zPlaneParams, const SkPoint3& lightPos, in GetLocalBounds() argument
575 if (!fill_shadow_rec(path, zPlaneParams, lightPos, lightRadius, SK_ColorBLACK, SK_ColorBLACK, in GetLocalBounds()
628 SkPoint3 zPlaneParams = rec.fZPlaneParams; in drawShadow() local
640 zPlaneParams, in drawShadow()
[all …]
DSkShadowTessellator.cpp46 SkBaseShadowTessellator(const SkPoint3& zPlaneParams, const SkRect& bounds, bool transparent);
173 SkBaseShadowTessellator::SkBaseShadowTessellator(const SkPoint3& zPlaneParams, const SkRect& bounds, in SkBaseShadowTessellator() argument
175 : fZPlaneParams(zPlaneParams) in SkBaseShadowTessellator()
917 const SkPoint3& zPlaneParams, bool transparent);
927 const SkPoint3& zPlaneParams, in SkAmbientShadowTessellator() argument
929 : INHERITED(zPlaneParams, path.getBounds(), transparent) { in SkAmbientShadowTessellator()
1009 const SkPoint3& zPlaneParams, const SkPoint3& lightPos,
1021 const SkPoint3& zPlaneParams, in SkSpotShadowTessellator() argument
1024 : INHERITED(zPlaneParams, path.getBounds(), transparent) { in SkSpotShadowTessellator()
1029 if (!SkDrawShadowMetrics::GetSpotShadowTransform(lightPos, lightRadius, ctm, zPlaneParams, in SkSpotShadowTessellator()
/external/skia/include/utils/
DSkShadowUtils.h47 static void DrawShadow(SkCanvas* canvas, const SkPath& path, const SkPoint3& zPlaneParams,
73 const SkPoint3& zPlaneParams, const SkPoint3& lightPos,
/external/skia/src/core/
DSkDrawShadowInfo.cpp22 const SkMatrix& ctm, const SkPoint3& zPlaneParams, in GetSpotShadowTransform() argument
25 auto heightFunc = [zPlaneParams] (SkScalar x, SkScalar y) { in GetSpotShadowTransform()
26 return zPlaneParams.fX*x + zPlaneParams.fY*y + zPlaneParams.fZ; in GetSpotShadowTransform()
DSkDrawShadowInfo.h81 const SkMatrix& ctm, const SkPoint3& zPlaneParams,
/external/skia/modules/canvaskit/
Dinterface.js722 CanvasKit.Canvas.prototype.drawShadow = function(path, zPlaneParams, lightPos, lightRadius, argument
728 var zPlanePtr = copy1dArray(zPlaneParams, 'HEAPF32', _scratchThreeFloatsAPtr);
735 CanvasKit.getShadowLocalBounds = function(ctm, path, zPlaneParams, lightPos, lightRadius, argument
739 var zPlanePtr = copy1dArray(zPlaneParams, 'HEAPF32', _scratchThreeFloatsAPtr);
Dcanvaskit_bindings.cpp979 const SkVector3* zPlaneParams = reinterpret_cast<const SkVector3*>(zPlaneParamPtr); in EMSCRIPTEN_BINDINGS() local
982 return SkShadowUtils::GetLocalBounds(ctm, path, *zPlaneParams, *lightPos, lightRadius, in EMSCRIPTEN_BINDINGS()
1237 const SkVector3* zPlaneParams = reinterpret_cast<const SkVector3*>(zPlaneParamPtr); in EMSCRIPTEN_BINDINGS() local
1240 SkShadowUtils::DrawShadow(&self, path, *zPlaneParams, *lightPos, lightRadius, in EMSCRIPTEN_BINDINGS()
DCHANGELOG.md360 - `Canvas.drawShadow()` now accepts zPlaneParams and lightPos as Malloc'ed and regular
/external/skia/modules/canvaskit/tests/
Dcore_test.js1010 const zPlaneParams = [0,0,1]; variable
1015 canvas.drawShadow(path, zPlaneParams, lightPos, lightRadius,
1020 path, zPlaneParams, lightPos, lightRadius, 0);
1024 path, zPlaneParams, lightPos, lightRadius, 0);
1029 mZPlane.toTypedArray().set(zPlaneParams);
/external/skia/tools/perf-canvaskit-puppeteer/
Dcanvas_perf.js244 ctx.zPlaneParams = [0,0,1];
249 ctx.canvas.drawShadow(ctx.path, ctx.zPlaneParams, ctx.lightPos, ctx.lightRadius,
/external/skia/modules/canvaskit/npm_build/types/
Dindex.d.ts145 getShadowLocalBounds(ctm: InputMatrix, path: Path, zPlaneParams: InputVector3,
1476 drawShadow(path: Path, zPlaneParams: InputVector3, lightPos: InputVector3, lightRadius: number,