/external/skia/include/core/ |
D | SkPoint3.h | 13 struct SK_API SkPoint3 { struct 16 static SkPoint3 Make(SkScalar x, SkScalar y, SkScalar z) { in Make() argument 17 SkPoint3 pt; in Make() 28 friend bool operator==(const SkPoint3& a, const SkPoint3& b) { argument 32 friend bool operator!=(const SkPoint3& a, const SkPoint3& b) { 42 SkScalar length() const { return SkPoint3::Length(fX, fY, fZ); } in length() argument 52 SkPoint3 makeScale(SkScalar scale) const { in makeScale() argument 53 SkPoint3 p; in makeScale() 69 SkPoint3 operator-() const { argument 70 SkPoint3 neg; argument [all …]
|
/external/skia/tests/ |
D | Point3Test.cpp | 14 const SkPoint3 p0 = SkPoint3::Make(0, 0, 0); in test_eq_ops() 15 const SkPoint3 p1 = SkPoint3::Make(1, 1, 1); in test_eq_ops() 16 const SkPoint3 p2 = SkPoint3::Make(1, 1, 1); in test_eq_ops() 23 SkPoint3 v = SkPoint3::Make(1, 1, 1); in test_ops() 28 SkPoint3 p = v.makeScale(3.0f); in test_ops() 34 SkPoint3 p1 = SkPoint3::Make(20.0f, 2.0f, 10.0f); in test_ops() 35 SkPoint3 p2 = -p1; in test_ops() 51 const SkPoint3 xAxis = SkPoint3::Make(1.0f, 0.0f, 0.0f); in test_dot() 52 const SkPoint3 yAxis = SkPoint3::Make(0.0f, 1.0f, 0.0f); in test_dot() 53 const SkPoint3 zAxis = SkPoint3::Make(0.0f, 0.0f, 1.0f); in test_dot() [all …]
|
D | ImageFilterTest.cpp | 254 SkPoint3 location = SkPoint3::Make(0, 0, SK_Scalar1); in DEF_TEST() 256 SkPoint3 target = SkPoint3::Make(location.fX, location.fY, location.fZ); in DEF_TEST() 287 SkPoint3 location = SkPoint3::Make(0, 0, SK_Scalar1); in test_crop_rects() 425 SkPoint3 location = SkPoint3::Make(0, 0, SK_Scalar1); in DEF_TEST() 1203 SkPoint3 location = SkPoint3::Make(0, 0, SK_Scalar1); in DEF_TEST()
|
/external/skia/include/effects/ |
D | SkLightingImageFilter.h | 16 struct SkPoint3; 20 static SkImageFilter* CreateDistantLitDiffuse(const SkPoint3& direction, 23 static SkImageFilter* CreatePointLitDiffuse(const SkPoint3& location, 26 static SkImageFilter* CreateSpotLitDiffuse(const SkPoint3& location, 27 const SkPoint3& target, SkScalar specularExponent, SkScalar cutoffAngle, 30 static SkImageFilter* CreateDistantLitSpecular(const SkPoint3& direction, 33 static SkImageFilter* CreatePointLitSpecular(const SkPoint3& location, 36 static SkImageFilter* CreateSpotLitSpecular(const SkPoint3& location, 37 const SkPoint3& target, SkScalar specularExponent, SkScalar cutoffAngle,
|
/external/skia/bench/ |
D | LightingBench.cpp | 33 static SkPoint3 GetPointLocation() { in GetPointLocation() 34 static SkPoint3 pointLocation = SkPoint3::Make(0, 0, SkIntToScalar(10)); in GetPointLocation() 38 static SkPoint3 GetDistantDirection() { in GetDistantDirection() 41 static SkPoint3 distantDirection = SkPoint3::Make(SkScalarMul(SkScalarCos(azimuthRad), in GetDistantDirection() 49 static SkPoint3 GetSpotLocation() { in GetSpotLocation() 50 static SkPoint3 spotLocation = SkPoint3::Make(SkIntToScalar(-10), in GetSpotLocation() 56 static SkPoint3 GetSpotTarget() { in GetSpotTarget() 57 static SkPoint3 spotTarget = SkPoint3::Make(SkIntToScalar(40), SkIntToScalar(40), 0); in GetSpotTarget()
|
/external/skia/src/effects/ |
D | SkLightingImageFilter.cpp | 47 const SkPoint3& point) { in setUniformPoint3() 48 GR_STATIC_ASSERT(sizeof(SkPoint3) == 3 * sizeof(float)); in setUniformPoint3() 53 const SkPoint3& point) { in setUniformNormal3() 68 static inline void fast_normalize(SkPoint3* vector) { in fast_normalize() 81 SkPMColor light(const SkPoint3& normal, const SkPoint3& surfaceTolight, in light() 82 const SkPoint3& lightColor) const { in light() 85 SkPoint3 color = lightColor.makeScale(colorScale); in light() 95 static SkScalar max_component(const SkPoint3& p) { in max_component() 103 SkPMColor light(const SkPoint3& normal, const SkPoint3& surfaceTolight, in light() 104 const SkPoint3& lightColor) const { in light() [all …]
|
/external/skia/gm/ |
D | lighting.cpp | 60 SkPoint3 pointLocation = SkPoint3::Make(0, 0, SkIntToScalar(10)); in onDraw() 63 SkPoint3 distantDirection = SkPoint3::Make(SkScalarMul(SkScalarCos(azimuthRad), in onDraw() 68 SkPoint3 spotLocation = SkPoint3::Make(SkIntToScalar(-10), in onDraw() 71 SkPoint3 spotTarget = SkPoint3::Make(SkIntToScalar(40), SkIntToScalar(40), 0); in onDraw()
|
D | imagefiltersscaled.cpp | 62 SkPoint3 pointLocation = SkPoint3::Make(0, 0, SkIntToScalar(10)); in onDraw() 63 SkPoint3 spotLocation = SkPoint3::Make(SkIntToScalar(-10), in onDraw() 66 SkPoint3 spotTarget = SkPoint3::Make(SkIntToScalar(40), SkIntToScalar(40), 0); in onDraw()
|
D | imagefiltersclipped.cpp | 100 SkPoint3 pointLocation = SkPoint3::Make(32, 32, SkIntToScalar(10)); in onDraw()
|
D | imagefilterscropexpand.cpp | 67 SkPoint3 pointLocation = SkPoint3::Make(0, 0, SkIntToScalar(10)); in onDraw()
|
/external/skia/tools/ |
D | sk_tool_utils.cpp | 279 SkPoint3 norm; in create_frustum_normal_map() 280 const SkPoint3 left = SkPoint3::Make(-SK_ScalarRoot2Over2, 0.0f, SK_ScalarRoot2Over2); in create_frustum_normal_map() 281 const SkPoint3 up = SkPoint3::Make(0.0f, -SK_ScalarRoot2Over2, SK_ScalarRoot2Over2); in create_frustum_normal_map() 282 const SkPoint3 right = SkPoint3::Make(SK_ScalarRoot2Over2, 0.0f, SK_ScalarRoot2Over2); in create_frustum_normal_map() 283 const SkPoint3 down = SkPoint3::Make(0.0f, SK_ScalarRoot2Over2, SK_ScalarRoot2Over2); in create_frustum_normal_map() 319 SkPoint3 norm; in create_tetra_normal_map() 320 const SkPoint3 leftUp = SkPoint3::Make(-k1OverRoot3, -k1OverRoot3, k1OverRoot3); in create_tetra_normal_map() 321 const SkPoint3 rightUp = SkPoint3::Make(k1OverRoot3, -k1OverRoot3, k1OverRoot3); in create_tetra_normal_map() 322 const SkPoint3 down = SkPoint3::Make(0.0f, SK_ScalarRoot2Over2, SK_ScalarRoot2Over2); in create_tetra_normal_map()
|
/external/skia/src/core/ |
D | SkPoint3.cpp | 26 SkScalar SkPoint3::Length(SkScalar x, SkScalar y, SkScalar z) { in Length() 46 bool SkPoint3::normalize() { in normalize()
|
D | SkLightingShader.cpp | 496 SkPoint3 norm, xformedNorm; in shadeSpan()
|
/external/skia/samplecode/ |
D | SampleFilterFuzz.cpp | 219 static SkPoint3 make_point() { in make_point() 220 return SkPoint3::Make(make_scalar(), make_scalar(), make_scalar(true)); in make_point() 658 SkLightingImageFilter::CreateSpotLitDiffuse(SkPoint3::Make(0, 0, 0), in make_image_filter() 661 SkLightingImageFilter::CreateSpotLitSpecular(SkPoint3::Make(0, 0, 0), in make_image_filter()
|
/external/skia/gyp/ |
D | core.gypi | 214 '<(skia_src_path)/core/SkPoint3.cpp', 379 '<(skia_include_path)/core/SkPoint3.h',
|
/external/skia/ |
D | Android.mk | 213 src/core/SkPoint3.cpp \
|