Home
last modified time | relevance | path

Searched refs:fW (Results 1 – 25 of 60) sorted by relevance

123

/third_party/skia/src/gpu/geometry/
DGrQuad.h60 SkPoint3 point3(int i) const { return {fX[i], fY[i], fW[i]}; } in point3()
64 return {fX[i] / fW[i], fY[i] / fW[i]}; in point()
94 accum *= fW[i]; in isFinite()
102 float w(int i) const { return fW[i]; } in w()
103 float iw(int i) const { return sk_ieee_float_divide(1.f, fW[i]); } in iw()
107 skvx::Vec<4, float> w4f() const { return skvx::Vec<4, float>::Load(fW); } in w4f()
128 const float* ws() const { return fW; } in ws()
129 float* ws() { return fW; } in ws()
134 fW[0] = fW[1] = fW[2] = fW[3] = 1.f; in setQuadType()
137 (SkScalarNearlyEqual(fW[0], 1.f) && SkScalarNearlyEqual(fW[1], 1.f) && in setQuadType()
[all …]
DGrQuadUtils.cpp427 V4f t = (SkPathPriv::kW0PlaneDistance - v.fW) / (next_ccw(v.fW) - v.fW); in ClipToW0()
432 clip.fW = SkPathPriv::kW0PlaneDistance; in ClipToW0()
438 M4f ccwValid = next_ccw(v.fW) >= SkPathPriv::kW0PlaneDistance; in ClipToW0()
439 M4f cwValid = next_cw(v.fW) >= SkPathPriv::kW0PlaneDistance; in ClipToW0()
455 v.fW = if_then_else(validW, v.fW, clip.fW); in ClipToW0()
478 mid.fW = 0.5f * (v.fW + next_ccw(v.fW)); in ClipToW0()
492 v2.fW = if_then_else((!validW) | (!ccwValid), clip.fW, in ClipToW0()
493 if_then_else(cwValid, next_cw(mid.fW), v.fW)); in ClipToW0()
514 v.fW = if_then_else(!validW, clip.fW, in ClipToW0()
515 if_then_else(!cwValid, mid.fW, v.fW)); in ClipToW0()
[all …]
/third_party/flutter/skia/src/gpu/geometry/
DGrQuad.h45 , fW{1.f, 1.f, 1.f, 1.f}
53 fW[0] = fW[1] = fW[2] = fW[3] = 1.f; in GrQuad()
61 ws.store(fW); in GrQuad()
69 memcpy(fW, ws, 4 * sizeof(float)); in GrQuad()
81 SkPoint3 point3(int i) const { return {fX[i], fY[i], fW[i]}; } in point3()
85 return {fX[i] / fW[i], fY[i] / fW[i]}; in point()
109 accum *= fW[i]; in isFinite()
117 float w(int i) const { return fW[i]; } in w()
118 float iw(int i) const { return sk_ieee_float_divide(1.f, fW[i]); } in iw()
122 skvx::Vec<4, float> w4f() const { return skvx::Vec<4, float>::Load(fW); } in w4f()
[all …]
/third_party/flutter/skia/bench/
DHardStopGradientBench_SpecialHardStops.cpp39 fW = w; in HardStopGradientBench_SpecialHardStops()
43 fName.printf("hardstop_special_%03dx%03d_%s", fW, fH, kindstr(fKind)); in HardStopGradientBench_SpecialHardStops()
51 return SkIPoint::Make(fW, fH); in onGetSize()
57 SkPoint::Make(fW+2.0f, fH/2.0f), in onPreDraw()
109 int fW; member in HardStopGradientBench_SpecialHardStops
DMipMapBench.cpp15 const int fW, fH; member in MipMapBench
20 : fW(w), fH(h), fHalfFoat(halfFloat) in MipMapBench()
37 SkImageInfo info = SkImageInfo::Make(fW, fH, ct, kPremul_SkAlphaType, in onDelayedSetup()
DGrMipMapBench.cpp17 const int fW, fH; member in GrMipMapBench
20 GrMipMapBench(int w, int h) : fW(w), fH(h) { in GrMipMapBench()
39 SkImageInfo::Make(fW, fH, kRGBA_8888_SkColorType, kPremul_SkAlphaType, srgb); in onDraw()
/third_party/skia/bench/
DHardStopGradientBench_SpecialHardStops.cpp39 fW = w; in HardStopGradientBench_SpecialHardStops()
43 fName.printf("hardstop_special_%03dx%03d_%s", fW, fH, kindstr(fKind)); in HardStopGradientBench_SpecialHardStops()
51 return SkIPoint::Make(fW, fH); in onGetSize()
57 SkPoint::Make(fW+2.0f, fH/2.0f), in onPreDraw()
109 int fW; member in HardStopGradientBench_SpecialHardStops
DMipmapBench.cpp15 const int fW, fH; member in MipmapBench
20 : fW(w), fH(h), fHalfFoat(halfFloat) in MipmapBench()
37 SkImageInfo info = SkImageInfo::Make(fW, fH, ct, kPremul_SkAlphaType, in onDelayedSetup()
DGrMipmapBench.cpp17 const int fW, fH; member in GrMipMapBench
20 GrMipMapBench(int w, int h) : fW(w), fH(h) { in GrMipMapBench()
39 SkImageInfo::Make(fW, fH, kRGBA_8888_SkColorType, kPremul_SkAlphaType, srgb); in onDraw()
/third_party/flutter/skia/tests/
DPathOpsConicIntersectionTest.cpp48 SkASSERT(roughly_equal(chopped[0].fW, dChopped[0].fWeight)); in chopCompare()
49 SkASSERT(roughly_equal(chopped[1].fW, dChopped[1].fWeight)); in chopCompare()
84 conic.fW = c.fW; in writePng()
85 chopped[0].fW = ch[0].fW; in writePng()
86 chopped[1].fW = ch[1].fW; in writePng()
101 path.conicTo(conic.fPts[1], conic.fPts[2], conic.fW); in writePng()
106 path.conicTo(chopped[0].fPts[1], chopped[0].fPts[2], chopped[0].fW); in writePng()
108 path.conicTo(chopped[1].fPts[1], chopped[1].fPts[2], chopped[1].fW); in writePng()
163 conic.fW = dConic.fWeight; in chopBothWays()
/third_party/skia/tests/
DPathOpsConicIntersectionTest.cpp48 SkASSERT(roughly_equal(chopped[0].fW, dChopped[0].fWeight)); in chopCompare()
49 SkASSERT(roughly_equal(chopped[1].fW, dChopped[1].fWeight)); in chopCompare()
84 conic.fW = c.fW; in writePng()
85 chopped[0].fW = ch[0].fW; in writePng()
86 chopped[1].fW = ch[1].fW; in writePng()
101 path.conicTo(conic.fPts[1], conic.fPts[2], conic.fW); in writePng()
106 path.conicTo(chopped[0].fPts[1], chopped[0].fPts[2], chopped[0].fW); in writePng()
108 path.conicTo(chopped[1].fPts[1], chopped[1].fPts[2], chopped[1].fW); in writePng()
163 conic.fW = dConic.fWeight; in chopBothWays()
/third_party/flutter/skia/src/sksl/
DSkSLCPP.h24 , fW(w) {} in Float4()
27 return SkRect::MakeLTRB(fX, fY, fZ, fW); in SkRect()
34 float fW; member
/third_party/flutter/engine/flutter/lib/web_ui/lib/src/engine/
Dconic.dart16 final double fW;
19 Conic(this.p0x, this.p0y, this.p1x, this.p1y, this.p2x, this.p2y, this.fW);
138 final double scale = 1.0 / (1.0 + fW);
139 final double newW = _subdivideWeightValue(fW);
140 final ui.Offset wp1 = ui.Offset(fW * p1x, fW * p1y);
144 final double w2 = fW * 2;
145 final double scaleHalf = 1.0 / (1 + fW) * 0.5;
174 final double a = fW - 1;
/third_party/flutter/skia/gm/
Dshowmiplevels.cpp222 const int fW, fH; member in ShowMipLevels2
226 ShowMipLevels2(int w, int h) : fW(w), fH(h) { } in ShowMipLevels2()
232 str.printf("showmiplevels2_%dx%d", fW, fH); in onShortName()
291 fBM[0] = ToolUtils::create_checkerboard_bitmap(fW, fH, SHOW_MIP_COLOR, SK_ColorWHITE, 2); in onOnceBeforeDraw()
292 fBM[1] = make_bitmap(fW, fH); in onOnceBeforeDraw()
293 fBM[2] = make_bitmap2(fW, fH); in onOnceBeforeDraw()
294 fBM[3] = make_bitmap3(fW, fH); in onOnceBeforeDraw()
/third_party/flutter/skia/src/core/
DSkGeometry.h232 fW = w; in SkConic()
236 fW = w; in SkConic()
240 SkScalar fW; member
244 fW = w; in set()
251 fW = w; in set()
353 Sk2s ww(conic.fW); in SkConicCoeff()
DSkGeometry.cpp1046 ratquad_mapTo3D(fPts, fW, tmp); in chopAt()
1067 dst[0].fW = tmp2[0].fZ / root; in chopAt()
1068 dst[1].fW = tmp2[2].fZ / root; in chopAt()
1103 dst->fW = ww[0]; in chopAt()
1120 Sk2s ww(fW); in evalTangentAt()
1148 Sk2s scale = Sk2s(SkScalarInvert(SK_Scalar1 + fW)); in chop()
1149 SkScalar newW = subdivide_w_value(fW); in chop()
1154 Sk2s ww(fW); in chop()
1160 double w_d = fW; in chop()
1172 dst[0].fW = dst[1].fW = newW; in chop()
[all …]
/third_party/skia/src/core/
DSkGeometry.h303 fW = w; in SkConic()
307 fW = w; in SkConic()
311 SkScalar fW; member
315 fW = w; in set()
322 fW = w; in set()
425 Sk2s ww(conic.fW); in SkConicCoeff()
DSkGeometry.cpp1245 ratquad_mapTo3D(fPts, fW, tmp); in chopAt()
1266 dst[0].fW = tmp2[0].fZ / root; in chopAt()
1267 dst[1].fW = tmp2[2].fZ / root; in chopAt()
1302 dst->fW = ww[0]; in chopAt()
1319 Sk2s ww(fW); in evalTangentAt()
1347 Sk2s scale = Sk2s(SkScalarInvert(SK_Scalar1 + fW)); in chop()
1348 SkScalar newW = subdivide_w_value(fW); in chop()
1353 Sk2s ww(fW); in chop()
1359 double w_d = fW; in chop()
1371 dst[0].fW = dst[1].fW = newW; in chop()
[all …]
/third_party/flutter/skia/src/gpu/ops/
DGrQuadPerEdgeAA.cpp32 V4f fX, fY, fW; member
195 V4f e1w = skvx::shuffle<2, 3, 2, 3>(quad->fW) - skvx::shuffle<0, 1, 0, 1>(quad->fW); in outset_projected_vertices()
201 V4f e2w = skvx::shuffle<1, 1, 3, 3>(quad->fW) - skvx::shuffle<0, 0, 2, 2>(quad->fW); in outset_projected_vertices()
213 V4f c3x = quad->fW * x2d - quad->fX; in outset_projected_vertices()
214 V4f c3y = quad->fW * y2d - quad->fY; in outset_projected_vertices()
261 V4f newW = quad->fW + a * e1w + b * e2w; in outset_projected_vertices()
269 V4f scale = if_then_else(newW < kMinW, (kMinW - quad->fW) / (newW - quad->fW), V4f(1.f)); in outset_projected_vertices()
276 quad->fW += a * e1w + b * e2w; in outset_projected_vertices()
277 correct_bad_coords(abs(denom) < kTolerance, &quad->fX, &quad->fY, &quad->fW); in outset_projected_vertices()
624 V4f iw = 1.0f / inner->fW; in compute_nested_persp_quad_vertices()
[all …]
/third_party/skia/src/gpu/tessellate/
DTessellation.cpp67 this->conicTo(chops[0].fPts, chops[0].fW); in conicTo()
68 this->conicTo(chops[1].fPts, chops[1].fW); in conicTo()
DStrokeIterator.h154 const float* w = fW[(fQueueFrontIdx + i) & (kQueueBufferCount - 1)]; in atW()
163 fW[i] = w; in enqueue()
358 const float* fW[kQueueBufferCount]; variable
/third_party/flutter/skia/samplecode/
DSamplePatch.cpp57 void setBounds(int w, int h) { fW = w; fH = h; } in setBounds()
64 int fW, fH; member in __anon1ba6a13e0111::Patch
162 const SkScalar ds = SK_Scalar1 * fW / nu; in draw()
175 colors[i*2 + 0] = make_color(s/fW, t/fH); in draw()
176 colors[i*2 + 1] = make_color(s/fW, (t + dt)/fH); in draw()
DSampleFatBits.cpp102 fW = width; in setWHZ()
129 int fW, fH, fZoom; member in FatBits
184 for (int ix = 1; ix < fW; ++ix) { in copyMinToMax()
213 for (int ix = 0; ix < fW; ++ix) { in drawFG()
/third_party/skia/samplecode/
DSamplePatch.cpp57 void setBounds(int w, int h) { fW = w; fH = h; } in setBounds()
64 int fW, fH; member in __anon4596c1490111::Patch
162 const SkScalar ds = SK_Scalar1 * fW / nu; in draw()
175 colors[i*2 + 0] = make_color(s/fW, t/fH); in draw()
176 colors[i*2 + 1] = make_color(s/fW, (t + dt)/fH); in draw()
DSampleFatBits.cpp101 fW = width; in setWHZ()
128 int fW, fH, fZoom; member in FatBits
183 for (int ix = 1; ix < fW; ++ix) { in copyMinToMax()
212 for (int ix = 0; ix < fW; ++ix) { in drawFG()

123