/external/skia/include/core/ |
D | SkPoint3.h | 14 SkScalar fX, fY, fZ; member 24 SkScalar z() const { return fZ; } in z() 26 void set(SkScalar x, SkScalar y, SkScalar z) { fX = x; fY = y; fZ = z; } in set() 29 return a.fX == b.fX && a.fY == b.fY && a.fZ == b.fZ; 42 SkScalar length() const { return SkPoint3::Length(fX, fY, fZ); } in length() 54 p.set(scale * fX, scale * fY, scale * fZ); in makeScale() 63 fZ *= value; in scale() 73 neg.fZ = -fZ; 82 v.set(a.fX - b.fX, a.fY - b.fY, a.fZ - b.fZ); 90 v.set(a.fX + b.fX, a.fY + b.fY, a.fZ + b.fZ); [all …]
|
/external/skqp/include/core/ |
D | SkPoint3.h | 14 SkScalar fX, fY, fZ; member 24 SkScalar z() const { return fZ; } in z() 26 void set(SkScalar x, SkScalar y, SkScalar z) { fX = x; fY = y; fZ = z; } in set() 29 return a.fX == b.fX && a.fY == b.fY && a.fZ == b.fZ; 42 SkScalar length() const { return SkPoint3::Length(fX, fY, fZ); } in length() 54 p.set(scale * fX, scale * fY, scale * fZ); in makeScale() 63 fZ *= value; in scale() 73 neg.fZ = -fZ; 82 v.set(a.fX - b.fX, a.fY - b.fY, a.fZ - b.fZ); 90 v.set(a.fX + b.fX, a.fY + b.fY, a.fZ + b.fZ); [all …]
|
/external/skqp/src/core/ |
D | SkDrawShadowInfo.cpp | 17 return x*params.fX + y*params.fY + params.fZ; in compute_z() 24 return zPlaneParams.fX*x + zPlaneParams.fY*y + zPlaneParams.fZ; in GetSpotShadowTransform() 31 SkDrawShadowMetrics::GetSpotParams(occluderHeight, lightPos.fX, lightPos.fY, lightPos.fZ, in GetSpotShadowTransform() 59 SkScalar dz = lightPos.fZ - pts3D[i].fZ; in GetSpotShadowTransform() 64 SkScalar zRatio = pts3D[i].fZ / dz; in GetSpotShadowTransform() 67 pts3D[i].fZ = SK_Scalar1; in GetSpotShadowTransform() 80 if (SkScalarNearlyZero(h2.fZ)) { in GetSpotShadowTransform() 98 shadowTransform->setAll(h0.fX / h2.fZ, h1.fX / h2.fZ, h2.fX / h2.fZ, in GetSpotShadowTransform() 99 h0.fY / h2.fZ, h1.fY / h2.fZ, h2.fY / h2.fZ, in GetSpotShadowTransform() 100 h0.fZ / h2.fZ, h1.fZ / h2.fZ, 1); in GetSpotShadowTransform() [all …]
|
D | SkPoint3.cpp | 48 if (is_length_nearly_zero(fX, fY, fZ, &magSq)) { in normalize() 63 double zz = fZ; in normalize() 70 fZ *= scale; in normalize() 71 if (!sk_float_isfinite(fX) || !sk_float_isfinite(fY) || !sk_float_isfinite(fZ)) { in normalize()
|
/external/skia/src/core/ |
D | SkDrawShadowInfo.cpp | 17 return x*params.fX + y*params.fY + params.fZ; in compute_z() 24 return zPlaneParams.fX*x + zPlaneParams.fY*y + zPlaneParams.fZ; in GetSpotShadowTransform() 31 SkDrawShadowMetrics::GetSpotParams(occluderHeight, lightPos.fX, lightPos.fY, lightPos.fZ, in GetSpotShadowTransform() 59 SkScalar dz = lightPos.fZ - pts3D[i].fZ; in GetSpotShadowTransform() 64 SkScalar zRatio = pts3D[i].fZ / dz; in GetSpotShadowTransform() 67 pts3D[i].fZ = SK_Scalar1; in GetSpotShadowTransform() 80 if (SkScalarNearlyZero(h2.fZ)) { in GetSpotShadowTransform() 98 shadowTransform->setAll(h0.fX / h2.fZ, h1.fX / h2.fZ, h2.fX / h2.fZ, in GetSpotShadowTransform() 99 h0.fY / h2.fZ, h1.fY / h2.fZ, h2.fY / h2.fZ, in GetSpotShadowTransform() 100 h0.fZ / h2.fZ, h1.fZ / h2.fZ, 1); in GetSpotShadowTransform() [all …]
|
D | SkPoint3.cpp | 48 if (is_length_nearly_zero(fX, fY, fZ, &magSq)) { in normalize() 63 double zz = fZ; in normalize() 70 fZ *= scale; in normalize() 71 if (!sk_float_isfinite(fX) || !sk_float_isfinite(fY) || !sk_float_isfinite(fZ)) { in normalize()
|
/external/skia/src/utils/ |
D | SkCamera.cpp | 36 SkScalar mag = SkScalarSqrt(fX*fX + fY*fY + fZ*fZ); in normalize() 41 unit->fZ = fZ * scale; in normalize() 43 unit->fX = unit->fY = unit->fZ = 0; in normalize() 49 return a.fX * b.fX + a.fY * b.fY + a.fZ * b.fZ; in Dot() 57 SkScalar x = a.fY * b.fZ - a.fZ * b.fY; in Cross() 58 SkScalar y = a.fZ * b.fX - a.fX * b.fY; in Cross() 86 SkScalar cx = fU.fY * fV.fZ - fU.fZ * fV.fY; in dotWith() 87 SkScalar cy = fU.fZ * fV.fX - fU.fX * fV.fY; in dotWith() 205 fObserver.set(0, 0, fLocation.fZ); in reset() 221 SkScalar dot = SkUnit3D::Dot(SkUnit3D{fZenith.fX, fZenith.fY, fZenith.fZ}, axis); in doUpdate() [all …]
|
D | Sk3D.cpp | 13 m->set(2, col, v.fZ); in set_col() 18 a.fY * b.fZ - a.fZ * b.fY, in cross() 19 a.fZ * b.fX - a.fX * b.fZ, in cross() 59 SkVector4 v = m4 * SkVector4{ src[i].fX, src[i].fY, src[i].fZ, 1 }; in Sk3MapPts()
|
D | SkShadowUtils.cpp | 130 if (fOccluderHeight != that.fOccluderHeight || fDevLightPos.fZ != that.fDevLightPos.fZ || in isCompatible() 169 SkPoint3 centerLightPos = SkPoint3::Make(devCenter.fX, devCenter.fY, fDevLightPos.fZ); in makeVertices() 481 result.fZ = pt.fZ; in map() 553 rec.fLightPos = { pt.fX, pt.fY, devLightPos.fZ }; in DrawShadow() 620 factory.fOccluderHeight = zPlaneParams.fZ; in drawShadow() 660 SkScalar devSpaceOutset = SkDrawShadowMetrics::AmbientBlurRadius(zPlaneParams.fZ); in drawShadow() 661 SkScalar oneOverA = SkDrawShadowMetrics::AmbientRecipAlpha(zPlaneParams.fZ); in drawShadow() 700 factory.fOccluderHeight = zPlaneParams.fZ; in drawShadow() 708 SkDrawShadowMetrics::GetSpotParams(zPlaneParams.fZ, devLightPos.fX - center.fX, in drawShadow() 709 devLightPos.fY - center.fY, devLightPos.fZ, in drawShadow()
|
/external/skqp/src/utils/ |
D | SkCamera.cpp | 36 SkScalar mag = SkScalarSqrt(fX*fX + fY*fY + fZ*fZ); in normalize() 41 unit->fZ = fZ * scale; in normalize() 43 unit->fX = unit->fY = unit->fZ = 0; in normalize() 49 return a.fX * b.fX + a.fY * b.fY + a.fZ * b.fZ; in Dot() 57 SkScalar x = a.fY * b.fZ - a.fZ * b.fY; in Cross() 58 SkScalar y = a.fZ * b.fX - a.fX * b.fY; in Cross() 86 SkScalar cx = fU.fY * fV.fZ - fU.fZ * fV.fY; in dotWith() 87 SkScalar cy = fU.fZ * fV.fX - fU.fX * fV.fY; in dotWith() 205 fObserver.set(0, 0, fLocation.fZ); in reset() 221 SkScalar dot = SkUnit3D::Dot(SkUnit3D{fZenith.fX, fZenith.fY, fZenith.fZ}, axis); in doUpdate() [all …]
|
D | Sk3D.cpp | 13 m->set(2, col, v.fZ); in set_col() 18 a.fY * b.fZ - a.fZ * b.fY, in cross() 19 a.fZ * b.fX - a.fX * b.fZ, in cross() 59 SkVector4 v = m4 * SkVector4{ src[i].fX, src[i].fY, src[i].fZ, 1 }; in Sk3MapPts()
|
D | SkShadowUtils.cpp | 129 if (fOccluderHeight != that.fOccluderHeight || fDevLightPos.fZ != that.fDevLightPos.fZ || in isCompatible() 168 SkPoint3 centerLightPos = SkPoint3::Make(devCenter.fX, devCenter.fY, fDevLightPos.fZ); in makeVertices() 454 result.fZ = pt.fZ; in map() 526 rec.fLightPos = { pt.fX, pt.fY, devLightPos.fZ }; in DrawShadow() 588 factory.fOccluderHeight = zPlaneParams.fZ; in drawShadow() 628 SkScalar devSpaceOutset = SkDrawShadowMetrics::AmbientBlurRadius(zPlaneParams.fZ); in drawShadow() 629 SkScalar oneOverA = SkDrawShadowMetrics::AmbientRecipAlpha(zPlaneParams.fZ); in drawShadow() 668 factory.fOccluderHeight = zPlaneParams.fZ; in drawShadow() 676 SkDrawShadowMetrics::GetSpotParams(zPlaneParams.fZ, devLightPos.fX - center.fX, in drawShadow() 677 devLightPos.fY - center.fY, devLightPos.fZ, in drawShadow()
|
/external/skia/samplecode/ |
D | SampleAndroidShadows.cpp | 218 zPlaneParams.fZ = SkTMax(1.0f, 2 + fZDelta); in onDrawContent() 224 zPlaneParams.fZ = SkTMax(1.0f, 8 + fZDelta); in onDrawContent() 230 zPlaneParams.fZ = SkTMax(1.0f, 12 + fZDelta); in onDrawContent() 236 zPlaneParams.fZ = SkTMax(1.0f, 64 + fZDelta); in onDrawContent() 242 zPlaneParams.fZ = SkTMax(1.0f, 8 + fZDelta); in onDrawContent() 248 zPlaneParams.fZ = SkTMax(1.0f, 16 + fZDelta); in onDrawContent() 254 zPlaneParams.fZ = SkTMax(1.0f, 8 + fZDelta); in onDrawContent() 260 zPlaneParams.fZ = SkTMax(1.0f, 2 + fZDelta); in onDrawContent() 266 zPlaneParams.fZ = SkTMax(1.0f, 16 + fZDelta); in onDrawContent() 278 zPlaneParams.fZ = SkTMax(1.0f, 32 + fZDelta); in onDrawContent() [all …]
|
D | SampleShadowReference.cpp | 145 zPlaneParams.fZ = kDP * 3; in onDrawContent() 156 zPlaneParams.fZ = kDP * 4; in onDrawContent() 167 zPlaneParams.fZ = kDP * 6; in onDrawContent() 178 zPlaneParams.fZ = kDP * 8; in onDrawContent() 189 zPlaneParams.fZ = kDP * 16; in onDrawContent()
|
/external/skqp/samplecode/ |
D | SampleAndroidShadows.cpp | 218 zPlaneParams.fZ = SkTMax(1.0f, 2 + fZDelta); in onDrawContent() 224 zPlaneParams.fZ = SkTMax(1.0f, 8 + fZDelta); in onDrawContent() 230 zPlaneParams.fZ = SkTMax(1.0f, 12 + fZDelta); in onDrawContent() 236 zPlaneParams.fZ = SkTMax(1.0f, 64 + fZDelta); in onDrawContent() 242 zPlaneParams.fZ = SkTMax(1.0f, 8 + fZDelta); in onDrawContent() 248 zPlaneParams.fZ = SkTMax(1.0f, 16 + fZDelta); in onDrawContent() 254 zPlaneParams.fZ = SkTMax(1.0f, 8 + fZDelta); in onDrawContent() 260 zPlaneParams.fZ = SkTMax(1.0f, 2 + fZDelta); in onDrawContent() 266 zPlaneParams.fZ = SkTMax(1.0f, 16 + fZDelta); in onDrawContent() 278 zPlaneParams.fZ = SkTMax(1.0f, 32 + fZDelta); in onDrawContent() [all …]
|
D | SampleShadowReference.cpp | 145 zPlaneParams.fZ = kDP * 3; in onDrawContent() 156 zPlaneParams.fZ = kDP * 4; in onDrawContent() 167 zPlaneParams.fZ = kDP * 6; in onDrawContent() 178 zPlaneParams.fZ = kDP * 8; in onDrawContent() 189 zPlaneParams.fZ = kDP * 16; in onDrawContent()
|
/external/skia/bench/ |
D | Matrix44Bench.cpp | 92 fX = fY = fZ = SkDoubleToMScalar(1.5); in PreScaleMatrix44Bench() 98 fM0.preScale(fX, fY, fZ); in performTest() 103 SkMScalar fX, fY, fZ; member in PreScaleMatrix44Bench 220 fX = fY = fZ = SkDoubleToMScalar(1.5); in PostScaleMatrix44Bench() 226 fM0.postScale(fX, fY, fZ); in performTest() 231 SkMScalar fX, fY, fZ; member in PostScaleMatrix44Bench
|
/external/skqp/bench/ |
D | Matrix44Bench.cpp | 92 fX = fY = fZ = SkDoubleToMScalar(1.5); in PreScaleMatrix44Bench() 98 fM0.preScale(fX, fY, fZ); in performTest() 103 SkMScalar fX, fY, fZ; member in PreScaleMatrix44Bench 220 fX = fY = fZ = SkDoubleToMScalar(1.5); in PostScaleMatrix44Bench() 226 fM0.postScale(fX, fY, fZ); in performTest() 231 SkMScalar fX, fY, fZ; member in PostScaleMatrix44Bench
|
/external/skqp/include/utils/ |
D | SkCamera.h | 19 SkScalar fX, fY, fZ; member 22 fX = x; fY = y; fZ = z; in set() 29 SkScalar fX, fY, fZ; member 32 fX = x; fY = y; fZ = z; in set() 84 return this->dotWith(v.fX, v.fY, v.fZ); in dotWith()
|
/external/skia/include/utils/ |
D | SkCamera.h | 19 SkScalar fX, fY, fZ; member 22 fX = x; fY = y; fZ = z; in set() 29 SkScalar fX, fY, fZ; member 32 fX = x; fY = y; fZ = z; in set() 84 return this->dotWith(v.fX, v.fY, v.fZ); in dotWith()
|
/external/skqp/src/sksl/ |
D | SkSLCPP.h | 22 , fZ(z) in Float4() 26 return SkRect::MakeLTRB(fX, fY, fZ, fW); in SkRect() 32 float fZ; member
|
/external/skia/src/sksl/ |
D | SkSLCPP.h | 22 , fZ(z) in Float4() 26 return SkRect::MakeLTRB(fX, fY, fZ, fW); in SkRect() 32 float fZ; member
|
/external/skia/src/shaders/ |
D | SkLightingShader.cpp | 347 if (color.fZ <= 0.0f) { in convert() 348 color.fZ = 0.0f; in convert() 349 } else if (color.fZ >= 255.0f) { in convert() 350 color.fZ = 255.0f; in convert() 353 return SkPreMultiplyARGB(a, (int) color.fX, (int) color.fY, (int) color.fZ); in convert() 387 accum.fZ += lightShader.fLights->ambientLightColor().fZ * SkColorGetB(diffColor); in shadeSpan() 404 accum.fZ += light.color().fZ * SkColorGetB(diffColor) * illuminanceScalingFactor; in shadeSpan()
|
/external/skqp/src/shaders/ |
D | SkLightingShader.cpp | 349 if (color.fZ <= 0.0f) { in convert() 350 color.fZ = 0.0f; in convert() 351 } else if (color.fZ >= 255.0f) { in convert() 352 color.fZ = 255.0f; in convert() 355 return SkPreMultiplyARGB(a, (int) color.fX, (int) color.fY, (int) color.fZ); in convert() 389 accum.fZ += lightShader.fLights->ambientLightColor().fZ * SkColorGetB(diffColor); in shadeSpan() 406 accum.fZ += light.color().fZ * SkColorGetB(diffColor) * illuminanceScalingFactor; in shadeSpan()
|
/external/clang/test/CodeGenCXX/ |
D | conversion-function.cpp | 30 operator X() { printf("perator X()\n"); x.iX += iZ; x.fX += fZ; return x; } in operator X() 32 float fZ; member 33 Z() : iZ(1), fZ(1.00) {} in Z()
|