/third_party/skia/include/private/ |
D | SkFixed.h | 24 typedef int32_t SkFixed; typedef 44 static inline SkFixed SkFloatToFixed_Check(float x) { in SkFloatToFixed_Check() 46 SkFixed n32 = (SkFixed)n64; in SkFloatToFixed_Check() 55 #define SkDoubleToFixed(x) ((SkFixed)((x) * SK_Fixed1)) 61 inline SkFixed SkIntToFixed(int n) in SkIntToFixed() 66 return (SkFixed)( (unsigned)n << 16 ); in SkIntToFixed() 72 #define SkIntToFixed(n) (SkFixed)((unsigned)(n) << 16) 79 static inline SkFixed SkFixedRoundToFixed(SkFixed x) { in SkFixedRoundToFixed() 80 return (SkFixed)( (uint32_t)(x + SK_FixedHalf) & 0xFFFF0000 ); in SkFixedRoundToFixed() 82 static inline SkFixed SkFixedCeilToFixed(SkFixed x) { in SkFixedCeilToFixed() [all …]
|
/third_party/skia/src/core/ |
D | SkAnalyticEdge.h | 31 SkFixed fX; 32 SkFixed fDX; 33 SkFixed fUpperX; // The x value when y = fUpperY 34 SkFixed fY; // The current y 35 SkFixed fUpperY; // The upper bound of y (our edge is from y = fUpperY to y = fLowerY) 36 SkFixed fLowerY; // The lower bound of y (our edge is from y = fUpperY to y = fLowerY) 37 SkFixed fDY; // abs(1/fDX); may be SK_MaxS32 when fDX is close to 0. 40 SkFixed fSavedX; // For deferred blitting 41 SkFixed fSavedY; // For deferred blitting 42 SkFixed fSavedDY; // For deferred blitting [all …]
|
D | SkAnalyticEdge.cpp | 16 static inline SkFixed quick_inverse(SkFDot6 x) { in quick_inverse() 206 static inline SkFixed quick_div(SkFDot6 a, SkFDot6 b) { in quick_div() 217 SkFixed ourAnswer = (a * quick_inverse(b)) >> 6; in quick_div() 234 SkFixed x0 = SkFDot6ToFixed(SkScalarRoundToFDot6(p0.fX, accuracy)) >> accuracy; in setLine() 235 SkFixed y0 = SnapY(SkFDot6ToFixed(SkScalarRoundToFDot6(p0.fY, accuracy)) >> accuracy); in setLine() 236 SkFixed x1 = SkFDot6ToFixed(SkScalarRoundToFDot6(p1.fX, accuracy)) >> accuracy; in setLine() 237 SkFixed y1 = SnapY(SkFDot6ToFixed(SkScalarRoundToFDot6(p1.fY, accuracy)) >> accuracy); in setLine() 240 SkFixed x0 = SkFDot6ToFixed(SkScalarToFDot6(p0.fX * multiplier)) >> accuracy; in setLine() 241 SkFixed y0 = SnapY(SkFDot6ToFixed(SkScalarToFDot6(p0.fY * multiplier)) >> accuracy); in setLine() 242 SkFixed x1 = SkFDot6ToFixed(SkScalarToFDot6(p1.fX * multiplier)) >> accuracy; in setLine() [all …]
|
D | SkEdge.h | 31 SkFixed fX; 32 SkFixed fDX; 43 inline int updateLine(SkFixed ax, SkFixed ay, SkFixed bx, SkFixed by); 68 SkFixed fQx, fQy; 69 SkFixed fQDx, fQDy; 70 SkFixed fQDDx, fQDDy; 71 SkFixed fQLastX, fQLastY; 79 SkFixed fCx, fCy; 80 SkFixed fCDx, fCDy; 81 SkFixed fCDDx, fCDDy; [all …]
|
D | SkScan_AAAPath.cpp | 136 virtual void flush_if_y_changed(SkFixed y, SkFixed nextY) = 0; 168 void flush_if_y_changed(SkFixed y, SkFixed nextY) override {} in flush_if_y_changed() 305 void flush_if_y_changed(SkFixed y, SkFixed nextY) override { in flush_if_y_changed() 541 static SkAlpha trapezoid_to_alpha(SkFixed l1, SkFixed l2) { in trapezoid_to_alpha() 543 SkFixed area = (l1 + l2) / 2; in trapezoid_to_alpha() 548 static SkAlpha partial_triangle_to_alpha(SkFixed a, SkFixed b) { in partial_triangle_to_alpha() 557 SkFixed area = (a >> 11) * (a >> 11) * (b >> 11); in partial_triangle_to_alpha() 567 static SkAlpha get_partial_alpha(SkAlpha alpha, SkFixed partialHeight) { in get_partial_alpha() 578 static SkAlpha fixed_to_alpha(SkFixed f) { in fixed_to_alpha() 585 static SkFixed approximate_intersection(SkFixed l1, SkFixed r1, SkFixed l2, SkFixed r2) { in approximate_intersection() [all …]
|
D | SkBitmapProcState_matrixProcs.cpp | 24 static inline bool can_truncate_to_fixed_for_decal(SkFixed fx, in can_truncate_to_fixed_for_decal() 25 SkFixed dx, in can_truncate_to_fixed_for_decal() 57 static void decal_nofilter_scale(uint32_t dst[], SkFixed fx, SkFixed dx, int count) { in decal_nofilter_scale() 74 template <unsigned (*tilex)(SkFixed, int), unsigned (*tiley)(SkFixed, int), bool tryDecal> 97 const SkFixed fixedFx = SkFractionalIntToFixed(fx); in nofilter_scale() 98 const SkFixed fixedDx = SkFractionalIntToFixed(dx); in nofilter_scale() 120 template <unsigned (*tilex)(SkFixed, int), unsigned (*tiley)(SkFixed, int)> 144 static unsigned extract_low_bits_clamp_clamp(SkFixed fx, int /*max*/) { in extract_low_bits_clamp_clamp() 151 static unsigned extract_low_bits_general(SkFixed fx, int max) { in extract_low_bits_general() 157 template <unsigned (*tile)(SkFixed, int), unsigned (*extract_low_bits)(SkFixed, int)> [all …]
|
D | SkEdge.cpp | 28 static inline SkFixed SkFDot6ToFixedDiv2(SkFDot6 value) { in SkFDot6ToFixedDiv2() 76 SkFixed slope = SkFDot6Div(x1 - x0, y1 - y0); in setLine() 94 int SkEdge::updateLine(SkFixed x0, SkFixed y0, SkFixed x1, SkFixed y1) in updateLine() 117 SkFixed slope = SkFDot6Div(x1 - x0, y1 - y0); in updateLine() 261 SkFixed A = SkFDot6ToFixedDiv2(x0 - x1 - x1 + x2); // 1/2 the real value in setQuadraticWithoutUpdate() 262 SkFixed B = SkFDot6ToFixed(x1 - x0); // 1/2 the real value in setQuadraticWithoutUpdate() 292 SkFixed oldx = fQx; in updateQuadratic() 293 SkFixed oldy = fQy; in updateQuadratic() 294 SkFixed dx = fQDx; in updateQuadratic() 295 SkFixed dy = fQDy; in updateQuadratic() [all …]
|
D | SkScan_Antihair.cpp | 53 SkFixed n = i * 257; in build_gamma_table() 108 virtual SkFixed drawCap(int x, SkFixed fy, SkFixed slope, int mod64) = 0; 109 virtual SkFixed drawLine(int x, int stopx, SkFixed fy, SkFixed slope) = 0; 117 SkFixed drawCap(int x, SkFixed fy, SkFixed slope, int mod64) override { in drawCap() 138 SkFixed drawLine(int x, int stopx, SkFixed fy, SkFixed slope) override { in drawLine() 163 SkFixed drawCap(int x, SkFixed fy, SkFixed dy, int mod64) override { in drawCap() 175 SkFixed drawLine(int x, int stopx, SkFixed fy, SkFixed dy) override { in drawLine() 193 SkFixed drawCap(int y, SkFixed fx, SkFixed dx, int mod64) override { in drawCap() 212 SkFixed drawLine(int y, int stopy, SkFixed fx, SkFixed dx) override { in drawLine() 234 SkFixed drawCap(int y, SkFixed fx, SkFixed dx, int mod64) override { in drawCap() [all …]
|
D | SkGlyph.h | 56 constexpr SkPackedGlyphID(SkGlyphID glyphID, SkFixed x, SkFixed y) in SkPackedGlyphID() 86 SkFixed getSubXFixed() const { in getSubXFixed() 90 SkFixed getSubYFixed() const { in getSubYFixed() 159 static constexpr uint32_t PackIDXY(SkGlyphID glyphID, SkFixed x, SkFixed y) { in PackIDXY() 163 static constexpr uint32_t FixedToSub(SkFixed n) { in FixedToSub() 167 constexpr SkFixed subToFixed(uint32_t subPixelPosBit) const { in subToFixed() 243 SkFixed getSubXFixed() const { return fID.getSubXFixed(); } in getSubXFixed() 244 SkFixed getSubYFixed() const { return fID.getSubYFixed(); } in getSubYFixed()
|
D | SkBitmapProcState.h | 62 SkFixed fFilterOneX; 63 SkFixed fFilterOneY; 163 SkFixed biasX, biasY; 191 SkFixed fixedX() const { return SkFractionalIntToFixed(fX); } in fixedX() 192 SkFixed fixedY() const { return SkFractionalIntToFixed(fY); } in fixedY()
|
D | SkFontDescriptor.h | 21 SkFontData(std::unique_ptr<SkStreamAsset> stream, int index, const SkFixed* axis, int axisCount) in SkFontData() 53 const SkFixed* getAxis() const { return fAxis.get(); } in getAxis() 59 SkAutoSTMalloc<4, SkFixed> fAxis;
|
D | SkFDot6.h | 58 inline SkFixed SkFDot6ToFixed(SkFDot6 x) { in SkFDot6ToFixed() 68 inline SkFixed SkFDot6Div(SkFDot6 a, SkFDot6 b) { in SkFDot6Div()
|
D | SkScanPriv.h | 60 SkFixed x = edge->fX; in backward_insert_edge_based_on_x() 76 static EdgeType* backward_insert_start(EdgeType* prev, SkFixed x) { in backward_insert_start()
|
D | SkScan_Hairline.cpp | 19 static void horiline(int x, int stopx, SkFixed fy, SkFixed dy, in horiline() 29 static void vertline(int y, int stopy, SkFixed fx, SkFixed dx, in vertline() 130 SkFixed slope = SkFixedDiv(dy, dx); in HairLineRgn() 131 SkFixed startY = SkFDot6ToFixed(y0) + (slope * ((32 - x0) & 63) >> 6); in HairLineRgn() 150 SkFixed slope = SkFixedDiv(dx, dy); in HairLineRgn() 151 SkFixed startX = SkFDot6ToFixed(x0) + (slope * ((32 - y0) & 63) >> 6); in HairLineRgn()
|
D | SkScan_Path.cpp | 112 SkFixed prevX = prevHead->fX; in walk_edges() 140 SkFixed newX; in walk_edges() 242 SkFixed left = leftE->fX; in walk_simple_edges() 243 SkFixed dLeft = leftE->fDX; in walk_simple_edges() 244 SkFixed rite = riteE->fX; in walk_simple_edges() 245 SkFixed dRite = riteE->fDX; in walk_simple_edges()
|
/third_party/skia/bench/ |
D | InterpBench.cpp | 63 SkFixed curr = SkFloatToFixed(fx); in performTest() 64 SkFixed step = SkFloatToFixed(dx); in performTest() 84 SkFixed tmp; in performTest() 86 tmp = (SkFixed)(curr >> 16); in performTest() 90 tmp = (SkFixed)(curr >> 16); in performTest() 94 tmp = (SkFixed)(curr >> 16); in performTest() 98 tmp = (SkFixed)(curr >> 16); in performTest() 115 SkFixed tmp; in performTest() 117 tmp = (SkFixed) (curr >> 32); dst[i + 0] = TILE(tmp, count); curr += step; in performTest() 118 tmp = (SkFixed) (curr >> 32); dst[i + 1] = TILE(tmp, count); curr += step; in performTest() [all …]
|
/third_party/skia/src/effects/ |
D | SkEmbossMask.cpp | 53 SkFixed lx = SkScalarToFixed(light.fDirection[0]); in Emboss() 54 SkFixed ly = SkScalarToFixed(light.fDirection[1]); in Emboss() 55 SkFixed lz = SkScalarToFixed(light.fDirection[2]); in Emboss() 56 SkFixed lz_dot_nz = lz * kDelta; in Emboss() 76 SkFixed numer = lx * nx + ly * ny + lz_dot_nz; in Emboss() 82 SkFixed dot = numer / denom; in Emboss()
|
/third_party/skia/src/ports/ |
D | SkFontHost_FreeType_common.h | 78 SkFixed fMinimum; 79 SkFixed fDefault; 80 SkFixed fMaximum; 90 SkFixed* axisValues,
|
/third_party/skia/tests/ |
D | TypefaceTest.cpp | 197 SkFixed fixedRead = SkScalarToFixed(actual[actualIdx].value); in DEF_TEST() 198 SkFixed fixedOriginal = SkScalarToFixed(expected.coordinates[expectedIdx].value); in DEF_TEST() 377 SkFixed fixedActualMin = SkScalarToFixed(actual[actualIdx].min); in DEF_TEST() 378 SkFixed fixedExpectedMin = SkScalarToFixed(expected[expectedIdx].min); in DEF_TEST() 383 SkFixed fixedActualMax = SkScalarToFixed(actual[actualIdx].max); in DEF_TEST() 384 SkFixed fixedExpectedMax = SkScalarToFixed(expected[expectedIdx].max); in DEF_TEST() 389 SkFixed fixedActualDefault = SkScalarToFixed(actual[actualIdx].def); in DEF_TEST() 390 SkFixed fixedExpectedDefault = SkScalarToFixed(expected[expectedIdx].def); in DEF_TEST()
|
/third_party/skia/src/gpu/ops/ |
D | SmallPathShapeData.cpp | 40 SkFixed fracX = SkScalarToFixed(tx) & 0x0000FF00; in SmallPathShapeDataKey() 41 SkFixed fracY = SkScalarToFixed(ty) & 0x0000FF00; in SmallPathShapeDataKey()
|
D | SoftwarePathRenderer.cpp | 298 SkFixed fracX = 0; in onDrawPath() 299 SkFixed fracY = 0; in onDrawPath() 304 SkFixed fracX = SkScalarToFixed(SkScalarFraction(tx)) & 0x0000FF00; in onDrawPath() 305 SkFixed fracY = SkScalarToFixed(SkScalarFraction(ty)) & 0x0000FF00; in onDrawPath()
|
/third_party/skia/tools/fonts/ |
D | TestTypeface.h | 41 const SkFixed* fWidths; 57 const SkFixed* fWidths;
|
/third_party/skia/include/utils/ |
D | SkRandom.h | 146 SkFixed nextUFixed1() { return this->nextU() >> 16; } in nextUFixed1() 151 SkFixed nextSFixed1() { return this->nextS() >> 15; } in nextSFixed1()
|
/third_party/skia/tools/ |
D | blob_cache_sim.cpp | 44 SkFixed fx = (SkScalarToFixed(offset.x()) >> 13) & 7; in main() 45 SkFixed fy = (SkScalarToFixed(offset.y()) >> 13) & 7; in main()
|
/third_party/skia/src/ports/skia_ohos/ |
D | FontInfo_ohos.h | 121 void setAxisSet(int count, const SkFixed* axis, in setAxisSet() 141 std::vector<SkFixed> axis; // the axis values
|