/third_party/skia/include/core/ |
D | SkPoint3.h | 14 SkScalar fX, fY, fZ; member 31 SkScalar z() const { return fZ; } in z() 33 void set(SkScalar x, SkScalar y, SkScalar z) { fX = x; fY = y; fZ = z; } in set() 36 return a.fX == b.fX && a.fY == b.fY && a.fZ == b.fZ; 49 SkScalar length() const { return SkPoint3::Length(fX, fY, fZ); } in length() 61 p.set(scale * fX, scale * fY, scale * fZ); in makeScale() 70 fZ *= value; in scale() 80 neg.fZ = -fZ; 88 return { a.fX - b.fX, a.fY - b.fY, a.fZ - b.fZ }; 94 return { a.fX + b.fX, a.fY + b.fY, a.fZ + b.fZ }; [all …]
|
/third_party/skia/src/core/ |
D | SkDrawShadowInfo.cpp | 30 return x*params.fX + y*params.fY + params.fZ; in compute_z() 38 return zPlaneParams.fX*x + zPlaneParams.fY*y + zPlaneParams.fZ; in GetSpotShadowTransform() 48 lightPos.fZ, lightRadius, radius, in GetSpotShadowTransform() 52 lightPos.fZ, lightRadius, radius, in GetSpotShadowTransform() 81 SkScalar dz = lightPos.fZ - pts3D[i].fZ; in GetSpotShadowTransform() 86 SkScalar zRatio = pts3D[i].fZ / dz; in GetSpotShadowTransform() 89 pts3D[i].fZ = SK_Scalar1; in GetSpotShadowTransform() 102 if (SkScalarNearlyZero(h2.fZ)) { in GetSpotShadowTransform() 120 shadowTransform->setAll(h0.fX / h2.fZ, h1.fX / h2.fZ, h2.fX / h2.fZ, in GetSpotShadowTransform() 121 h0.fY / h2.fZ, h1.fY / h2.fZ, h2.fY / h2.fZ, in GetSpotShadowTransform() [all …]
|
D | SkPoint3.cpp | 31 desc += split + "\t fZ: " + std::to_string(fZ) + "\n"; in dump() 57 if (is_length_nearly_zero(fX, fY, fZ, &magSq)) { in normalize() 72 double zz = fZ; in normalize() 79 fZ *= scale; in normalize() 80 if (!sk_float_isfinite(fX) || !sk_float_isfinite(fY) || !sk_float_isfinite(fZ)) { in normalize()
|
D | SkDraw_vertices.cpp | 249 return lerp(curr, next, computeT(curr.fZ - tol, next.fZ - tol)); in fill_triangle_3() 262 if (pts[curr].fZ > tol) { in fill_triangle_3() 264 if (pts[next].fZ <= tol) { // curr is IN, next is OUT in fill_triangle_3() 268 if (pts[next].fZ > tol) { // curr is OUT, next is IN in fill_triangle_3() 277 float scale = 1.0f / outPoints[i].fZ; in fill_triangle_3()
|
D | SkGeometry.cpp | 1238 return {src.fX / src.fZ, src.fY / src.fZ}; in project_down() 1249 p3d_interp(&tmp[0].fZ, &tmp2[0].fZ, t); in chopAt() 1265 SkScalar root = SkScalarSqrt(tmp2[1].fZ); in chopAt() 1266 dst[0].fW = tmp2[0].fZ / root; in chopAt() 1267 dst[1].fW = tmp2[2].fZ / root; in chopAt() 1632 double w0 = dst[0].fZ; in TransformW() 1633 double w1 = dst[1].fZ; in TransformW() 1634 double w2 = dst[2].fZ; in TransformW()
|
D | SkMatrix.cpp | 1060 SkScalar sw = src->fZ; in MapHomogeneousPointsWithStride() 1871 if (xyw.fZ < SK_ScalarNearlyZero) { in DifferentialAreaScale() 1875 SkMatrix jacobian = SkMatrix::MakeAll(xyw.fX, xyw.fY, xyw.fZ, in DifferentialAreaScale() 1879 double denom = 1.0 / xyw.fZ; // 1/w in DifferentialAreaScale()
|
/third_party/skia/samplecode/ |
D | SampleAndroidShadows.cpp | 194 zPlaneParams.fZ = std::max(1.0f, 2 + fZDelta); in onDrawContent() 200 zPlaneParams.fZ = std::max(1.0f, 8 + fZDelta); in onDrawContent() 206 zPlaneParams.fZ = std::max(1.0f, 12 + fZDelta); in onDrawContent() 212 zPlaneParams.fZ = std::max(1.0f, 64 + fZDelta); in onDrawContent() 218 zPlaneParams.fZ = std::max(1.0f, 8 + fZDelta); in onDrawContent() 224 zPlaneParams.fZ = std::max(1.0f, 16 + fZDelta); in onDrawContent() 230 zPlaneParams.fZ = std::max(1.0f, 8 + fZDelta); in onDrawContent() 236 zPlaneParams.fZ = std::max(1.0f, 2 + fZDelta); in onDrawContent() 242 zPlaneParams.fZ = std::max(1.0f, 16 + fZDelta); in onDrawContent() 254 zPlaneParams.fZ = std::max(1.0f, 32 + fZDelta); in onDrawContent() [all …]
|
D | SampleMaterialShadows.cpp | 76 zPlaneParams.fZ = elevations[i]; in onDrawContent() 86 zPlaneParams.fZ = elevations[i]; in onDrawContent() 96 zPlaneParams.fZ = elevations[i]; in onDrawContent() 106 zPlaneParams.fZ = elevations[i]; in onDrawContent() 117 zPlaneParams.fZ = elevations[i]; in onDrawContent() 130 zPlaneParams.fZ = elevations[i]; in onDrawContent()
|
D | SampleShadowReference.cpp | 139 zPlaneParams.fZ = kDP * 3; in onDrawContent() 150 zPlaneParams.fZ = kDP * 4; in onDrawContent() 161 zPlaneParams.fZ = kDP * 6; in onDrawContent() 172 zPlaneParams.fZ = kDP * 8; in onDrawContent() 183 zPlaneParams.fZ = kDP * 16; in onDrawContent()
|
/third_party/skia/docs/examples/ |
D | Matrix_mapHomogeneousPoints.cpp | 17 canvas->drawLine(s.fX / s.fZ, s.fY / s.fZ, e.fX / e.fZ, e.fY / e.fZ, paint); in draw()
|
D | homogeneous.cpp | 16 canvas->drawLine(s.fX / s.fZ, s.fY / s.fZ, e.fX / e.fZ, e.fY / e.fZ, paint); in draw()
|
/third_party/skia/src/utils/ |
D | SkShadowUtils.cpp | 166 if (fOccluderHeight != that.fOccluderHeight || fDevLightPos.fZ != that.fDevLightPos.fZ || in isCompatible() 212 SkPoint3 centerLightPos = SkPoint3::Make(devCenter.fX, devCenter.fY, fDevLightPos.fZ); in makeVertices() 592 rec->fLightPos = { pt.fX, pt.fY, lightPos.fZ }; in fill_shadow_rec() 701 factory.fOccluderHeight = zPlaneParams.fZ; in drawShadow() 742 SkScalar devSpaceOutset = SkDrawShadowMetrics::AmbientBlurRadius(zPlaneParams.fZ); in drawShadow() 743 SkScalar oneOverA = SkDrawShadowMetrics::AmbientRecipAlpha(zPlaneParams.fZ); in drawShadow() 783 factory.fOccluderHeight = zPlaneParams.fZ; in drawShadow() 792 SkDrawShadowMetrics::GetDirectionalParams(zPlaneParams.fZ, devLightPos.fX, in drawShadow() 793 devLightPos.fY, devLightPos.fZ, in drawShadow() 797 SkDrawShadowMetrics::GetSpotParams(zPlaneParams.fZ, devLightPos.fX - center.fX, in drawShadow() [all …]
|
D | SkShadowTessellator.cpp | 87 return fZPlaneParams.fX*x + fZPlaneParams.fY*y + fZPlaneParams.fZ; in heightFunc() 1161 !lightPos.isFinite() || !(lightPos.fZ >= SK_ScalarNearlyZero) || in MakeSpot()
|
/third_party/skia/tests/ |
D | Point3Test.cpp | 130 SkScalar fZ; in DEF_TEST() member 140 test_length(reporter, gRec[i].fX, gRec[i].fY, gRec[i].fZ, gRec[i].fLength); in DEF_TEST() 141 test_normalize(reporter, gRec[i].fX, gRec[i].fY, gRec[i].fZ, gRec[i].fLength); in DEF_TEST()
|
D | MatrixTest.cpp | 629 if (!scalar_nearly_equal_relative(a[i].fZ, b[i].fZ)) { in point3_array_nearly_equal_relative() 644 res.fX = src.fX * ms[0] + src.fY * ms[1] + src.fZ * ms[2]; in naive_homogeneous_mapping() 645 res.fY = src.fX * ms[3] + src.fY * ms[4] + src.fZ * ms[5]; in naive_homogeneous_mapping() 646 res.fZ = src.fX * ms[6] + src.fY * ms[7] + src.fZ * ms[8]; in naive_homogeneous_mapping() 671 randTriples[i].fZ = rand.nextRangeF(-3000.f, 3000.f); in test_matrix_homogeneous() 725 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(dst.fZ, 1)); in test_matrix_homogeneous() 739 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(dst.fZ, 1)); in test_matrix_homogeneous() 755 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(dst.fZ, 1)); in test_matrix_homogeneous()
|
D | ShadowTest.cpp | 145 SkPoint3 devLightPos = SkPoint3::Make(mapXY.fX, mapXY.fY, rec.fLightPos.fZ); in check_xformed_bounds()
|
D | ImageFilterTest.cpp | 457 SkPoint3 target = SkPoint3::Make(location.fX, location.fY, location.fZ); in DEF_TEST()
|
/third_party/skia/experimental/graphite/src/geom/ |
D | BoundsManager.h | 90 if (r.fOpaque && z < r.fZ && r.fBounds.contains(bounds)) { in isOccluded() 106 PaintersDepth fZ; member
|
/third_party/skia/src/effects/imagefilters/ |
D | SkLightingImageFilter.cpp | 80 vector->fZ *= scale; in fast_normalize() 87 point.fZ = buffer.readScalar(); in read_point3() 90 SkScalarIsFinite(point.fZ)); in read_point3() 97 buffer.writeScalar(point.fZ); in write_point3() 166 SkTPin(SkScalarRoundToInt(color.fZ), 0, 255)); in light() 183 halfDir.fZ += SK_Scalar1; // eye position is always (0, 0, 1) in light() 190 SkTPin(SkScalarRoundToInt(color.fZ), 0, 255)); in light() 921 fLocation.fZ - SkIntToScalar(z) * surfaceScale); in surfaceToLight() 949 SkPoint locationZ = SkPoint::Make(fLocation.fZ, fLocation.fZ); in transform() 1000 SkPoint locationZ = SkPoint::Make(fLocation.fZ, fLocation.fZ); in transform() [all …]
|
/third_party/skia/modules/svg/src/ |
D | SkSVGFeLighting.cpp | 99 this->resolveXYZ(ctx, fctx, dir.fX, dir.fY, dir.fZ), in makeDistantLight() 153 this->resolveXYZ(ctx, fctx, dir.fX, dir.fY, dir.fZ), in makeDistantLight()
|
/third_party/skia/tools/ |
D | ToolUtils.cpp | 273 unsigned char b = static_cast<unsigned char>((0.5f * norm.fZ + 0.5f) * 255); in norm_to_rgb() 293 norm.fZ = sqrtf(1.0f - tmp); in create_hemi_normal_map()
|
/third_party/skia/gm/ |
D | lighting.cpp | 77 spotTarget.fZ + SkIntToScalar(20)); in onDraw()
|
/third_party/protobuf/src/google/protobuf/ |
D | timestamp.proto | 121 // the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
|
/third_party/skia/src/gpu/v1/ |
D | SurfaceDrawContext.cpp | 1179 SkScalar occluderHeight = rec.fZPlaneParams.fZ; in drawFastShadow() 1223 devLightPos.fY, devLightPos.fZ, in drawFastShadow() 1228 devLightPos.fZ, rec.fLightRadius, in drawFastShadow()
|
/third_party/cups-filters/cupsfilters/ |
D | image.ppm | 578 …E;>>?N.lN�h%�r|a�gwaiYi^ke)[\0CH*<E2=G<0<2#!!fZmYn[p^o^fXXLKD… 888 + 4$N8mN�Z�Y�QrBg3h5�L;�fZ�fd�PQo48_'*`%)\$'UKNLG 1098 …D;"7*$CABU^eZjzKl}1kw%nu ipcifl2w|N��d��q��z�������s��U��;tn4dX?n^4fZ-cV$`VH>KC0woR��Y��… 1901 ZPXPYS^[ead["ZNWK`T"fZ&fZ&nc-{p8vk3si.qg,oe(mc&f\[QSIOCVH_K&Y@"? (.A984 1934 3$=/I;M?RCWIgYf\f\aY\T ZT]WaZfZ&ZM!UH^Q$h\,i]+j^*mb,pe-nd)lb'mc&mc%ja bY[QODYMhV0… 1935 …�(��2|� |�#u�'e(Wq0Gb5.K/3%"-,'B4+H.!H#Q'k?4~WPtTUpW]aLUU@IN58C&"[6-�fZ�qg�od�g\�`Q}ZGzUByS<… 2058 …'$$/+@5!K>+P?/N=-<+L=&UG-OA&PA$YJ)ZL'REwk;sf1ma%k` lbmcl`g]dZfZ&o^3r^=fK6O1&H%#M&)M$(H !… 3200 …GKKNAD*, )-0<AENSWX]a`^im_xdPlQ;R>*58%A1TGcYkbldkafZ^LS>L1H)'A,@,;… 3473 4 42 03:DJ$T.Z5a<!d?"iE%oK)sO-vM-�V:|I.uB#sE!mBa;`>jKrW*qZ1mX9hV>hVHjYRjZ[fZ\hc… 4369 ,.77CAJI!JL3JR:FR;IT:KS:MS:OR;QO;QN2EAEVNDOG?F>JKCC@7<8/NF9\O<WI.RD!QDWJ^SdXfZmbqdsdqbp… [all …]
|