Home
last modified time | relevance | path

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

12

/third_party/skia/samplecode/
DSampleAndroidShadows.cpp144 const SkPoint3& zPlaneParams, in drawShadowedPath() argument
164 SkShadowUtils::DrawShadow(canvas, path, zPlaneParams, lightPos, lightWidth, in drawShadowedPath()
190 SkPoint3 zPlaneParams = SkPoint3::Make(0, 0, 0); in onDrawContent() local
194 zPlaneParams.fZ = std::max(1.0f, 2 + fZDelta); in onDrawContent()
195 this->drawShadowedPath(canvas, fRRPath, zPlaneParams, paint, fAnimAlpha*kAmbientAlpha, in onDrawContent()
200 zPlaneParams.fZ = std::max(1.0f, 8 + fZDelta); in onDrawContent()
201 this->drawShadowedPath(canvas, fRectPath, zPlaneParams, paint, fAnimAlpha*kAmbientAlpha, in onDrawContent()
206 zPlaneParams.fZ = std::max(1.0f, 12 + fZDelta); in onDrawContent()
207 this->drawShadowedPath(canvas, fCirclePath, zPlaneParams, paint, fAnimAlpha*kAmbientAlpha, in onDrawContent()
212 zPlaneParams.fZ = std::max(1.0f, 64 + fZDelta); in onDrawContent()
[all …]
DSampleMaterialShadows.cpp43 const SkPoint3& zPlaneParams, in drawShadowedPath() argument
51 SkShadowUtils::DrawShadow(canvas, path, zPlaneParams, lightPos, lightRadius, in drawShadowedPath()
70 SkPoint3 zPlaneParams = SkPoint3::Make(0, 0, 0); in onDrawContent() local
76 zPlaneParams.fZ = elevations[i]; in onDrawContent()
77 this->drawShadowedPath(canvas, fCirclePath, zPlaneParams, paint, kAmbientAlpha, in onDrawContent()
86 zPlaneParams.fZ = elevations[i]; in onDrawContent()
87 this->drawShadowedPath(canvas, fCapsulePath, zPlaneParams, paint, kAmbientAlpha, in onDrawContent()
96 zPlaneParams.fZ = elevations[i]; in onDrawContent()
97 this->drawShadowedPath(canvas, fLargeRRPath, zPlaneParams, paint, kAmbientAlpha, in onDrawContent()
106 zPlaneParams.fZ = elevations[i]; in onDrawContent()
[all …]
DSampleShadowReference.cpp77 const SkPoint3& zPlaneParams, in drawShadowedPath() argument
93 SkShadowUtils::DrawShadow(canvas, path, zPlaneParams, in drawShadowedPath()
127 SkPoint3 zPlaneParams = SkPoint3::Make(0, 0, kDP * 2); in onDrawContent() local
132 this->drawShadowedPath(canvas, fRRectPath, zPlaneParams, paint, kAmbientAlpha, in onDrawContent()
139 zPlaneParams.fZ = kDP * 3; in onDrawContent()
143 this->drawShadowedPath(canvas, fRRectPath, zPlaneParams, paint, kAmbientAlpha, in onDrawContent()
150 zPlaneParams.fZ = kDP * 4; in onDrawContent()
154 this->drawShadowedPath(canvas, fRRectPath, zPlaneParams, paint, kAmbientAlpha, in onDrawContent()
161 zPlaneParams.fZ = kDP * 6; in onDrawContent()
165 this->drawShadowedPath(canvas, fRRectPath, zPlaneParams, paint, kAmbientAlpha, in onDrawContent()
[all …]
DSampleShadowColor.cpp95 const SkPoint3& zPlaneParams, in drawShadowedPath() argument
111 SkShadowUtils::DrawShadow(canvas, path, zPlaneParams, in drawShadowedPath()
128 SkShadowUtils::DrawShadow(canvas, path, zPlaneParams, in drawShadowedPath()
134 SkShadowUtils::DrawShadow(canvas, path, zPlaneParams, in drawShadowedPath()
147 SkShadowUtils::DrawShadow(canvas, path, zPlaneParams, in drawShadowedPath()
199 SkPoint3 zPlaneParams = SkPoint3::Make(0, 0, kZValues[fZIndex]); in onDrawContent() local
210 this->drawShadowedPath(canvas, fRectPath, zPlaneParams, paint, kAmbientAlpha, in onDrawContent()
DSampleShadowUtils.cpp121 const SkPoint3& zPlaneParams, in drawShadowedPath() argument
141 SkShadowUtils::DrawShadow(canvas, path, zPlaneParams, in drawShadowedPath()
178 SkPoint3 zPlaneParams = SkPoint3::Make(0, 0, std::max(1.0f, kHeight + fZDelta)); in onDrawContent() local
198 this->drawShadowedPath(canvas, path, zPlaneParams, greenPaint, kAmbientAlpha, in onDrawContent()
224 this->drawShadowedPath(canvas, path, zPlaneParams, greenPaint, kAmbientAlpha, in onDrawContent()
/third_party/flutter/skia/samplecode/
DSampleAndroidShadows.cpp145 const SkPoint3& zPlaneParams, in drawShadowedPath() argument
165 SkShadowUtils::DrawShadow(canvas, path, zPlaneParams, lightPos, lightWidth, in drawShadowedPath()
191 SkPoint3 zPlaneParams = SkPoint3::Make(0, 0, 0); in onDrawContent() local
195 zPlaneParams.fZ = SkTMax(1.0f, 2 + fZDelta); in onDrawContent()
196 this->drawShadowedPath(canvas, fRRPath, zPlaneParams, paint, fAnimAlpha*kAmbientAlpha, in onDrawContent()
201 zPlaneParams.fZ = SkTMax(1.0f, 8 + fZDelta); in onDrawContent()
202 this->drawShadowedPath(canvas, fRectPath, zPlaneParams, paint, fAnimAlpha*kAmbientAlpha, in onDrawContent()
207 zPlaneParams.fZ = SkTMax(1.0f, 12 + fZDelta); in onDrawContent()
208 this->drawShadowedPath(canvas, fCirclePath, zPlaneParams, paint, fAnimAlpha*kAmbientAlpha, in onDrawContent()
213 zPlaneParams.fZ = SkTMax(1.0f, 64 + fZDelta); in onDrawContent()
[all …]
DSampleShadowReference.cpp77 const SkPoint3& zPlaneParams, in drawShadowedPath() argument
93 SkShadowUtils::DrawShadow(canvas, path, zPlaneParams, in drawShadowedPath()
127 SkPoint3 zPlaneParams = SkPoint3::Make(0, 0, kDP * 2); in onDrawContent() local
132 this->drawShadowedPath(canvas, fRRectPath, zPlaneParams, paint, kAmbientAlpha, in onDrawContent()
139 zPlaneParams.fZ = kDP * 3; in onDrawContent()
143 this->drawShadowedPath(canvas, fRRectPath, zPlaneParams, paint, kAmbientAlpha, in onDrawContent()
150 zPlaneParams.fZ = kDP * 4; in onDrawContent()
154 this->drawShadowedPath(canvas, fRRectPath, zPlaneParams, paint, kAmbientAlpha, in onDrawContent()
161 zPlaneParams.fZ = kDP * 6; in onDrawContent()
165 this->drawShadowedPath(canvas, fRRectPath, zPlaneParams, paint, kAmbientAlpha, in onDrawContent()
[all …]
DSampleShadowColor.cpp95 const SkPoint3& zPlaneParams, in drawShadowedPath() argument
111 SkShadowUtils::DrawShadow(canvas, path, zPlaneParams, in drawShadowedPath()
128 SkShadowUtils::DrawShadow(canvas, path, zPlaneParams, in drawShadowedPath()
134 SkShadowUtils::DrawShadow(canvas, path, zPlaneParams, in drawShadowedPath()
147 SkShadowUtils::DrawShadow(canvas, path, zPlaneParams, in drawShadowedPath()
199 SkPoint3 zPlaneParams = SkPoint3::Make(0, 0, kZValues[fZIndex]); in onDrawContent() local
210 this->drawShadowedPath(canvas, fRectPath, zPlaneParams, paint, kAmbientAlpha, in onDrawContent()
DSampleShadowUtils.cpp122 const SkPoint3& zPlaneParams, in drawShadowedPath() argument
142 SkShadowUtils::DrawShadow(canvas, path, zPlaneParams, in drawShadowedPath()
181 SkPoint3 zPlaneParams = SkPoint3::Make(0, 0, SkTMax(1.0f, kHeight + fZDelta)); in onDrawContent() local
201 this->drawShadowedPath(canvas, path, zPlaneParams, paint, kAmbientAlpha, in onDrawContent()
227 this->drawShadowedPath(canvas, path, zPlaneParams, paint, kAmbientAlpha, lightPos, in onDrawContent()
/third_party/skia/src/utils/
DSkShadowUtils.cpp517 static bool tilted(const SkPoint3& zPlaneParams) { in tilted() argument
518 return !SkScalarNearlyZero(zPlaneParams.fX) || !SkScalarNearlyZero(zPlaneParams.fY); in tilted()
576 static bool fill_shadow_rec(const SkPath& path, const SkPoint3& zPlaneParams, in fill_shadow_rec() argument
591 rec->fZPlaneParams = zPlaneParams; in fill_shadow_rec()
602 void SkShadowUtils::DrawShadow(SkCanvas* canvas, const SkPath& path, const SkPoint3& zPlaneParams, in DrawShadow() argument
607 if (!fill_shadow_rec(path, zPlaneParams, lightPos, lightRadius, ambientColor, spotColor, in DrawShadow()
616 const SkPoint3& zPlaneParams, const SkPoint3& lightPos, in GetLocalBounds() argument
619 if (!fill_shadow_rec(path, zPlaneParams, lightPos, lightRadius, SK_ColorBLACK, SK_ColorBLACK, in GetLocalBounds()
665 SkPoint3 zPlaneParams = rec.fZPlaneParams; in drawShadow() local
676 zPlaneParams, in drawShadow()
[all …]
DSkShadowTessellator.cpp29 SkBaseShadowTessellator(const SkPoint3& zPlaneParams, const SkRect& bounds, bool transparent);
156 SkBaseShadowTessellator::SkBaseShadowTessellator(const SkPoint3& zPlaneParams, const SkRect& bounds, in SkBaseShadowTessellator() argument
158 : fZPlaneParams(zPlaneParams) in SkBaseShadowTessellator()
895 const SkPoint3& zPlaneParams, bool transparent);
905 const SkPoint3& zPlaneParams, in SkAmbientShadowTessellator() argument
907 : INHERITED(zPlaneParams, path.getBounds(), transparent) { in SkAmbientShadowTessellator()
989 const SkPoint3& zPlaneParams, const SkPoint3& lightPos,
1001 const SkPoint3& zPlaneParams, in SkSpotShadowTessellator() argument
1004 : INHERITED(zPlaneParams, path.getBounds(), transparent) { in SkSpotShadowTessellator()
1009 if (!SkDrawShadowMetrics::GetSpotShadowTransform(lightPos, lightRadius, ctm, zPlaneParams, in SkSpotShadowTessellator()
/third_party/flutter/skia/src/utils/
DSkShadowUtils.cpp474 static bool tilted(const SkPoint3& zPlaneParams) { in tilted() argument
475 return !SkScalarNearlyZero(zPlaneParams.fX) || !SkScalarNearlyZero(zPlaneParams.fY); in tilted()
541 void SkShadowUtils::DrawShadow(SkCanvas* canvas, const SkPath& path, const SkPoint3& zPlaneParams, in DrawShadow() argument
552 rec.fZPlaneParams = zPlaneParams; in DrawShadow()
595 SkPoint3 zPlaneParams = rec.fZPlaneParams; in drawShadow() local
603 zPlaneParams, in drawShadow()
620 factory.fOccluderHeight = zPlaneParams.fZ; in drawShadow()
661 SkScalar devSpaceOutset = SkDrawShadowMetrics::AmbientBlurRadius(zPlaneParams.fZ); in drawShadow()
662 SkScalar oneOverA = SkDrawShadowMetrics::AmbientRecipAlpha(zPlaneParams.fZ); in drawShadow()
683 zPlaneParams, in drawShadow()
[all …]
DSkShadowTessellator.cpp28 SkBaseShadowTessellator(const SkPoint3& zPlaneParams, const SkRect& bounds, bool transparent);
159 SkBaseShadowTessellator::SkBaseShadowTessellator(const SkPoint3& zPlaneParams, const SkRect& bounds, in SkBaseShadowTessellator() argument
161 : fZPlaneParams(zPlaneParams) in SkBaseShadowTessellator()
898 const SkPoint3& zPlaneParams, bool transparent);
908 const SkPoint3& zPlaneParams, in SkAmbientShadowTessellator() argument
910 : INHERITED(zPlaneParams, path.getBounds(), transparent) { in SkAmbientShadowTessellator()
992 const SkPoint3& zPlaneParams, const SkPoint3& lightPos,
1004 const SkPoint3& zPlaneParams, in SkSpotShadowTessellator() argument
1007 : INHERITED(zPlaneParams, path.getBounds(), transparent) { in SkSpotShadowTessellator()
1013 ctm, zPlaneParams, path.getBounds(), in SkSpotShadowTessellator()
/third_party/flutter/skia/src/core/
DSkDrawShadowInfo.cpp21 const SkMatrix& ctm, const SkPoint3& zPlaneParams, in GetSpotShadowTransform() argument
23 auto heightFunc = [zPlaneParams] (SkScalar x, SkScalar y) { in GetSpotShadowTransform()
24 return zPlaneParams.fX*x + zPlaneParams.fY*y + zPlaneParams.fZ; in GetSpotShadowTransform()
DSkDrawShadowInfo.h82 const SkMatrix& ctm, const SkPoint3& zPlaneParams,
/third_party/skia/src/core/
DSkDrawShadowInfo.cpp34 const SkMatrix& ctm, const SkPoint3& zPlaneParams, in GetSpotShadowTransform() argument
37 auto heightFunc = [zPlaneParams] (SkScalar x, SkScalar y) { in GetSpotShadowTransform()
38 return zPlaneParams.fX*x + zPlaneParams.fY*y + zPlaneParams.fZ; in GetSpotShadowTransform()
DSkDrawShadowInfo.h88 const SkMatrix& ctm, const SkPoint3& zPlaneParams,
/third_party/skia/include/utils/
DSkShadowUtils.h44 static void DrawShadow(SkCanvas* canvas, const SkPath& path, const SkPoint3& zPlaneParams,
70 const SkPoint3& zPlaneParams, const SkPoint3& lightPos,
/third_party/flutter/skia/include/utils/
DSkShadowUtils.h39 static void DrawShadow(SkCanvas* canvas, const SkPath& path, const SkPoint3& zPlaneParams,
/third_party/skia/modules/canvaskit/tests/
Dcore.spec.js999 const zPlaneParams = [0,0,1]; variable
1004 canvas.drawShadow(path, zPlaneParams, lightPos, lightRadius,
1009 path, zPlaneParams, lightPos, lightRadius, 0);
1013 path, zPlaneParams, lightPos, lightRadius, 0);
1018 mZPlane.toTypedArray().set(zPlaneParams);
/third_party/skia/modules/canvaskit/
Dinterface.js723 CanvasKit.Canvas.prototype.drawShadow = function(path, zPlaneParams, lightPos, lightRadius, argument
729 var zPlanePtr = copy1dArray(zPlaneParams, 'HEAPF32', _scratchThreeFloatsAPtr);
736 CanvasKit.getShadowLocalBounds = function(ctm, path, zPlaneParams, lightPos, lightRadius, argument
740 var zPlanePtr = copy1dArray(zPlaneParams, 'HEAPF32', _scratchThreeFloatsAPtr);
Dcanvaskit_bindings.cpp844 const SkVector3* zPlaneParams = reinterpret_cast<const SkVector3*>(zPlaneParamPtr); in EMSCRIPTEN_BINDINGS() local
847 return SkShadowUtils::GetLocalBounds(ctm, path, *zPlaneParams, *lightPos, lightRadius, in EMSCRIPTEN_BINDINGS()
1099 const SkVector3* zPlaneParams = reinterpret_cast<const SkVector3*>(zPlaneParamPtr); in EMSCRIPTEN_BINDINGS() local
1102 SkShadowUtils::DrawShadow(&self, path, *zPlaneParams, *lightPos, lightRadius, in EMSCRIPTEN_BINDINGS()
/third_party/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,
/third_party/skia/modules/canvaskit/npm_build/types/
Dindex.d.ts143 getShadowLocalBounds(ctm: InputMatrix, path: Path, zPlaneParams: InputVector3,
1381 drawShadow(path: Path, zPlaneParams: InputVector3, lightPos: InputVector3, lightRadius: number,
/third_party/flutter/skia/modules/canvaskit/
Dcanvaskit_bindings.cpp775 const SkPoint3& zPlaneParams, in EMSCRIPTEN_BINDINGS()
779 SkShadowUtils::DrawShadow(&self, path, zPlaneParams, lightPos, lightRadius, in EMSCRIPTEN_BINDINGS()

12