/external/skia/include/core/ |
D | SkM44.h | 93 struct SK_API SkV4 { struct 96 bool operator==(const SkV4& v) const { argument 99 bool operator!=(const SkV4& v) const { return !(*this == v); } 101 SkV4 operator-() const { return {-x, -y, -z, -w}; } 102 SkV4 operator+(const SkV4& v) const { return { x + v.x, y + v.y, z + v.z, w + v.w }; } 103 SkV4 operator-(const SkV4& v) const { return { x - v.x, y - v.y, z - v.z, w - v.w }; } 105 SkV4 operator*(const SkV4& v) const { 108 friend SkV4 operator*(const SkV4& v, SkScalar s) { 111 friend SkV4 operator*(SkScalar s, const SkV4& v) { return v*s; } 179 static SkM44 Rows(const SkV4& r0, const SkV4& r1, const SkV4& r2, const SkV4& r3) { in Rows() [all …]
|
/external/skia/tests/ |
D | M44Test.cpp | 91 SkV4 d = m.map(4, 3, 2, 1); in DEF_TEST() 92 REPORTER_ASSERT(reporter, (d == SkV4{11, 8, 7, 1})); in DEF_TEST() 101 SkV4 r0 = m.row(0), in DEF_TEST() 106 REPORTER_ASSERT(reporter, (r0 == SkV4{ 1, 2, 3, 4})); in DEF_TEST() 107 REPORTER_ASSERT(reporter, (r1 == SkV4{ 5, 6, 7, 8})); in DEF_TEST() 108 REPORTER_ASSERT(reporter, (r2 == SkV4{ 9, 10, 11, 12})); in DEF_TEST() 109 REPORTER_ASSERT(reporter, (r3 == SkV4{13, 14, 15, 16})); in DEF_TEST() 113 SkV4 c0 = m.col(0), in DEF_TEST() 118 REPORTER_ASSERT(reporter, (c0 == SkV4{1, 5, 9, 13})); in DEF_TEST() 119 REPORTER_ASSERT(reporter, (c1 == SkV4{2, 6, 10, 14})); in DEF_TEST() [all …]
|
D | SkSLTest.cpp | 58 set_uniform(&builder, "colorBlack", SkV4{0, 0, 0, 1}); in test_one_permutation() 59 set_uniform(&builder, "colorRed", SkV4{1, 0, 0, 1}); in test_one_permutation() 60 set_uniform(&builder, "colorGreen", SkV4{0, 1, 0, 1}); in test_one_permutation() 61 set_uniform(&builder, "colorBlue", SkV4{0, 0, 1, 1}); in test_one_permutation() 62 set_uniform(&builder, "colorWhite", SkV4{1, 1, 1, 1}); in test_one_permutation() 63 set_uniform(&builder, "testInputs", SkV4{-1.25, 0, 0.75, 2.25}); in test_one_permutation()
|
/external/skia/src/gpu/effects/generated/ |
D | GrArithmeticProcessor.h | 23 const SkV4& k, in Make() 31 SkV4 k; 37 SkV4 k, in GrArithmeticProcessor()
|
D | GrColorMatrixFragmentProcessor.h | 68 SkV4 v4 = {matrix[4], matrix[9], matrix[14], matrix[19]}; in Make() 76 SkV4 v; 84 SkV4 v, in GrColorMatrixFragmentProcessor()
|
D | GrColorMatrixFragmentProcessor.cpp | 82 const SkV4& vValue = _outer.v; in onSetData() 90 SkV4 vPrev = SkV4{SK_FloatNaN, SK_FloatNaN, SK_FloatNaN, SK_FloatNaN};
|
D | GrArithmeticProcessor.cpp | 98 SkV4 k; in TestCreate()
|
/external/skia/src/gpu/effects/ |
D | GrArithmeticProcessor.fp | 10 layout(ctype=SkV4) in uniform float4 k; 33 const SkV4& k, bool enforcePMColor) { 40 SkV4 k;
|
D | GrColorMatrixFragmentProcessor.fp | 10 layout(ctype=SkV4, tracked) in uniform half4 v; 74 SkV4 v4 = {matrix[4], matrix[9], matrix[14], matrix[19]};
|
/external/skia/bench/ |
D | Matrix44Bench.cpp | 119 SkV4 v = {1, 2, 3, 4}; in performTest() 125 SkV4 fV;
|
/external/skia/tools/viewer/ |
D | SkSLSlide.h | 53 SkV4 fMousePos;
|
/external/skia/src/core/ |
D | SkColorFilter_Matrix.cpp | 168 struct { SkM44 m; SkV4 b; } uniforms; in MakeMatrix() 193 uniforms.b = SkV4{array[4], array[9], array[14], array[19]}; in MakeMatrix()
|
D | SkM44.cpp | 129 SkV4 SkM44::map(float x, float y, float z, float w) const { in map() 135 SkV4 v; in map() 394 static SkV4 v4(SkV3 v, SkScalar w) { return {v.x, v.y, v.z, w}; } in v4()
|
/external/skia/gm/ |
D | runtimeshader.cpp | 209 builder.uniform("in_colors0") = SkV4{1, 0, 0, 1}; in onDraw() 210 builder.uniform("in_colors1") = SkV4{0, 1, 0, 1}; in onDraw() 452 builder.uniform("derivatives") = SkV4{d*dx, -c*dy, -b*dx, a*dy}; in drawSuperRRect()
|
D | crbug_224618.cpp | 66 SkV4 axisAngles[6] = { in onDraw()
|
/external/skia/src/effects/imagefilters/ |
D | SkArithmeticImageFilter.cpp | 68 SkV4 fK; 141 void arith_span(const SkV4& k, SkPMColor dst[], const SkPMColor src[], int count) { in arith_span() 160 template<bool EnforcePMColor> void arith_transparent(const SkV4& k, SkPMColor dst[], int count) { in arith_transparent()
|
/external/skia/tools/debugger/ |
D | JsonWriteBuffer.cpp | 147 SkV4 v = matrix.row(r); in write()
|
/external/skia/src/shaders/ |
D | SkImageShader.cpp | 903 SkV4 r = weights.row(row); in onProgram()
|