Home
last modified time | relevance | path

Searched refs:SkPoint3 (Results 1 – 25 of 37) sorted by relevance

12

/external/skia/include/core/
DSkPoint3.h13 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 …]
DSkLights.h56 static Light MakePoint(const SkColor3f& color, const SkPoint3& pos, SkScalar intensity,
67 const SkPoint3& pos() const { in pos()
/external/skia/tests/
DPoint3Test.cpp14 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 …]
/external/skia/include/effects/
DSkLightingImageFilter.h16 struct SkPoint3;
20 static sk_sp<SkImageFilter> MakeDistantLitDiffuse(const SkPoint3& direction,
23 static sk_sp<SkImageFilter> MakePointLitDiffuse(const SkPoint3& location,
26 static sk_sp<SkImageFilter> MakeSpotLitDiffuse(const SkPoint3& location,
27 const SkPoint3& target, SkScalar specularExponent, SkScalar cutoffAngle,
30 static sk_sp<SkImageFilter> MakeDistantLitSpecular(const SkPoint3& direction,
33 static sk_sp<SkImageFilter> MakePointLitSpecular(const SkPoint3& location,
36 static sk_sp<SkImageFilter> MakeSpotLitSpecular(const SkPoint3& location,
37 const SkPoint3& target, SkScalar specularExponent, SkScalar cutoffAngle,
/external/skia/bench/
DLightingBench.cpp32 static SkPoint3 GetPointLocation() { in GetPointLocation()
33 static SkPoint3 pointLocation = SkPoint3::Make(0, 0, SkIntToScalar(10)); in GetPointLocation()
37 static SkPoint3 GetDistantDirection() { in GetDistantDirection()
40 static SkPoint3 distantDirection = SkPoint3::Make( in GetDistantDirection()
47 static SkPoint3 GetSpotLocation() { in GetSpotLocation()
48 static SkPoint3 spotLocation = SkPoint3::Make(SkIntToScalar(-10), in GetSpotLocation()
54 static SkPoint3 GetSpotTarget() { in GetSpotTarget()
55 static SkPoint3 spotTarget = SkPoint3::Make(SkIntToScalar(40), SkIntToScalar(40), 0); in GetSpotTarget()
/external/skia/src/effects/
DSkLightingImageFilter.cpp50 const SkPoint3& point) { in setUniformPoint3()
51 GR_STATIC_ASSERT(sizeof(SkPoint3) == 3 * sizeof(float)); in setUniformPoint3()
56 const SkPoint3& point) { in setUniformNormal3()
71 static inline void fast_normalize(SkPoint3* vector) { in fast_normalize()
84 SkPMColor light(const SkPoint3& normal, const SkPoint3& surfaceTolight, in light()
85 const SkPoint3& lightColor) const { in light()
88 SkPoint3 color = lightColor.makeScale(colorScale); in light()
98 static SkScalar max_component(const SkPoint3& p) { in max_component()
106 SkPMColor light(const SkPoint3& normal, const SkPoint3& surfaceTolight, in light()
107 const SkPoint3& lightColor) const { in light()
[all …]
/external/skia/gm/
Dlighting.cpp66 SkPoint3 spotTarget = SkPoint3::Make(SkIntToScalar(40), SkIntToScalar(40), 0); in onDraw()
67 SkPoint3 spotLocation = SkPoint3::Make(spotTarget.fX + 70.7214f * cosAzimuth, in onDraw()
72 SkPoint3 pointLocation = SkPoint3::Make(spotTarget.fX + 50 * cosAzimuth, in onDraw()
77 SkPoint3 distantDirection = SkPoint3::Make(cosAzimuth * SkScalarCos(elevationRad), in onDraw()
Dimagefiltersscaled.cpp81 SkPoint3 pointLocation = SkPoint3::Make(0, 0, SkIntToScalar(10)); in onDraw()
82 SkPoint3 spotLocation = SkPoint3::Make(SkIntToScalar(-10), in onDraw()
85 SkPoint3 spotTarget = SkPoint3::Make(SkIntToScalar(40), SkIntToScalar(40), 0); in onDraw()
Dshadowutils.cpp14 void draw_shadow(SkCanvas* canvas, const SkPath& path, int height, SkColor color, SkPoint3 lightPos, in draw_shadow()
44 static constexpr SkPoint3 kLightPos = {250, 400, 500}; in DEF_SIMPLE_GM()
Dimagefiltersclipped.cpp94 SkPoint3 pointLocation = SkPoint3::Make(32, 32, SkIntToScalar(10)); in onDraw()
Dimagefilterscropexpand.cpp63 SkPoint3 pointLocation = SkPoint3::Make(0, 0, SkIntToScalar(10));
/external/skia/tools/
Dsk_tool_utils.cpp338 SkPoint3 norm; in create_frustum_normal_map()
339 const SkPoint3 left = SkPoint3::Make(-SK_ScalarRoot2Over2, 0.0f, SK_ScalarRoot2Over2); in create_frustum_normal_map()
340 const SkPoint3 up = SkPoint3::Make(0.0f, -SK_ScalarRoot2Over2, SK_ScalarRoot2Over2); in create_frustum_normal_map()
341 const SkPoint3 right = SkPoint3::Make(SK_ScalarRoot2Over2, 0.0f, SK_ScalarRoot2Over2); in create_frustum_normal_map()
342 const SkPoint3 down = SkPoint3::Make(0.0f, SK_ScalarRoot2Over2, SK_ScalarRoot2Over2); in create_frustum_normal_map()
378 SkPoint3 norm; in create_tetra_normal_map()
379 const SkPoint3 leftUp = SkPoint3::Make(-k1OverRoot3, -k1OverRoot3, k1OverRoot3); in create_tetra_normal_map()
380 const SkPoint3 rightUp = SkPoint3::Make(k1OverRoot3, -k1OverRoot3, k1OverRoot3); in create_tetra_normal_map()
381 const SkPoint3 down = SkPoint3::Make(0.0f, SK_ScalarRoot2Over2, SK_ScalarRoot2Over2); in create_tetra_normal_map()
/external/skia/src/effects/shadows/
DSkSpotShadowMaskFilter.cpp25 SkSpotShadowMaskFilterImpl(SkScalar occluderHeight, const SkPoint3& lightPos,
66 SkPoint3 fLightPos;
79 sk_sp<SkMaskFilter> SkSpotShadowMaskFilter::Make(SkScalar occluderHeight, const SkPoint3& lightPos, in Make()
91 const SkPoint3& lightPos, in SkSpotShadowMaskFilterImpl()
127 const SkPoint3 lightPos = SkPoint3::Make(lightX, lightY, lightZ); in CreateProc()
DSkSpotShadowMaskFilter.h28 static sk_sp<SkMaskFilter> Make(SkScalar occluderHeight, const SkPoint3& lightPos,
/external/skia/include/utils/
DSkShadowUtils.h41 const SkPoint3& lightPos, SkScalar lightRadius, SkScalar ambientAlpha,
66 const SkPoint3& lightPos, SkScalar lightRadius,
/external/skia/src/core/
DSkNormalSource.h15 struct SkPoint3;
41 virtual void fillScanLine(int x, int y, SkPoint3 output[], int count) const = 0;
DSkPoint3.cpp26 SkScalar SkPoint3::Length(SkScalar x, SkScalar y, SkScalar z) { in Length()
46 bool SkPoint3::normalize() { in normalize()
DSkNormalFlatSource.h36 void fillScanLine(int x, int y, SkPoint3 output[], int count) const override;
DSkNormalBevelSource.h39 void fillScanLine(int x, int y, SkPoint3 output[], int count) const override;
DSkNormalMapSource.cpp171 void SkNormalMapSourceImpl::Provider::fillScanLine(int x, int y, SkPoint3 output[], in fillScanLine()
181 SkPoint3 tempNorm; in fillScanLine()
DSkNormalMapSource.h38 void fillScanLine(int x, int y, SkPoint3 output[], int count) const override;
DSkNormalFlatSource.cpp82 void SkNormalFlatSourceImpl::Provider::fillScanLine(int x, int y, SkPoint3 output[], in fillScanLine()
/external/skia/samplecode/
DSampleAndroidShadows.cpp37 SkPoint3 fLightPos;
75 fLightPos = SkPoint3::Make(-700, -700, 2800); in onOnceBeforeDraw()
256 SkPoint3 lightPos, SkScalar lightWidth, SkScalar spotAlpha) { in drawSpotShadow()
301 SkPoint3 lightPos, SkScalar lightWidth, SkScalar spotAlpha) { in drawSpotShadowAlt()
411 const SkPoint3& lightPos, SkScalar lightWidth, SkScalar spotAlpha) { in drawShadowedPath()
475 SkPoint3 lightPos = fLightPos; in onDrawContent()
/external/skia/fuzz/
DFilterFuzz.cpp205 static SkPoint3 make_point() { in make_point()
209 return SkPoint3::Make(a, b, c); in make_point()
684 SkPoint3 p = make_point(); in make_image_filter()
697 SkPoint3 p = make_point(); in make_image_filter()
710 SkPoint3 p = make_point(); in make_image_filter()
718 ? SkLightingImageFilter::MakeSpotLitDiffuse(SkPoint3::Make(0, 0, 0), in make_image_filter()
720 : SkLightingImageFilter::MakeSpotLitSpecular(SkPoint3::Make(0, 0, 0), in make_image_filter()
/external/skia/src/utils/
DSkShadowTessellator.h37 const SkPoint3& lightPos, SkScalar lightRadius,

12