Home
last modified time | relevance | path

Searched refs:SkToU8 (Results 1 – 25 of 46) sorted by relevance

12

/external/skia/src/core/
DSkTime.cpp37 dt->fMonth = SkToU8(st.wMonth); in GetDateTime()
38 dt->fDayOfWeek = SkToU8(st.wDayOfWeek); in GetDateTime()
39 dt->fDay = SkToU8(st.wDay); in GetDateTime()
40 dt->fHour = SkToU8(st.wHour); in GetDateTime()
41 dt->fMinute = SkToU8(st.wMinute); in GetDateTime()
42 dt->fSecond = SkToU8(st.wSecond); in GetDateTime()
57 dt->fMonth = SkToU8(tstruct.tm_mon + 1); in GetDateTime()
58 dt->fDayOfWeek = SkToU8(tstruct.tm_wday); in GetDateTime()
59 dt->fDay = SkToU8(tstruct.tm_mday); in GetDateTime()
60 dt->fHour = SkToU8(tstruct.tm_hour); in GetDateTime()
[all …]
DSkAntiRun.h74 …alpha[x] = SkToU8(tmp - (tmp >> 8)); // was (tmp >> 7), but that seems wrong if we're trying to… in add()
88 alpha[0] = SkToU8(CatchOverflow(alpha[0] + maxValue)); in add()
102 alpha[0] = SkToU8(alpha[0] + stopAlpha); in add()
DSkBlitter.h83 aa[0] = SkToU8(a0); in blitAntiH2()
84 aa[1] = SkToU8(a1); in blitAntiH2()
95 aa[0] = SkToU8(a0); in blitAntiV2()
100 aa[0] = SkToU8(a1); in blitAntiV2()
DSkMaskGamma.cpp97 table[i] = SkToU8(sk_float_round2int(255.0f * srca)); in SkTMaskGamma_build_correcting_lut()
121 table[i] = SkToU8(sk_float_round2int(255.0f * result)); in SkTMaskGamma_build_correcting_lut()
DSkScan_AntiPath.cpp465 *alpha = SkToU8(tmp - (tmp >> 8)); in add_aa_span()
481 *ptr = SkToU8(tmp - (tmp >> 8)); in saturated_add()
497 alpha[0] = SkToU8(alpha[0] + maxValue); in add_aa_span()
515 alpha[0] = SkToU8(alpha[0] + maxValue); in add_aa_span()
DSkStroke.h44 void setDoFill(bool doFill) { fDoFill = SkToU8(doFill); } in setDoFill()
DSkEdge.cpp258 fCurveShift = SkToU8(shift - 1); in setQuadraticWithoutUpdate()
422 fCurveShift = SkToU8(shift); in setCubicWithoutUpdate()
423 fCubicDShift = SkToU8(downShift); in setCubicWithoutUpdate()
DSkString.cpp129 *--p = SkToU8('0' + dec % 10); in SkStrAppendU32()
158 *--p = SkToU8('0' + (int32_t) (dec % 10)); in SkStrAppendU64()
434 p[i] = SkToU8(src[i]); in setUTF16()
442 p[i] = SkToU8(src[i]); in setUTF16()
DSkMetaData.cpp124 rec->fType = SkToU8(type); in set()
128 rec->fDataLen = SkToU8(dataSize); in set()
DSkFont.cpp19 , fMaskType(SkToU8(mt)) in SkFont()
DSkRegion_path.cpp426 e->fFlags = SkToU8(e->fFlags | Edge::kY1Link); in find_link()
439 e->fFlags = SkToU8(e->fFlags | Edge::kY0Link); in find_link()
DSkUtils.cpp34 SkASSERT(utf8_byte_is_leading_byte(SkToU8(c))); in assert_utf8_leadingbyte()
DSkScan_Antihair.cpp56 gGammaTable[i] = SkToU8(n); in build_gamma_table()
62 #define ApplyGamma(table, alpha) SkToU8(alpha)
839 return SkToU8(a + b - SkAlphaMulRound(a, b)); in InvAlphaMul()
/external/skia/src/pdf/
DSkPDFGraphicState.cpp79 return SkToU8((unsigned)mode); in pdf_blend_mode()
81 return SkToU8((unsigned)SkBlendMode::kSrcOver); in pdf_blend_mode()
103 SkToU8(p.getStrokeCap()), SkToU8(p.getStrokeJoin()), in GetGraphicStateForPaint()
DSkPDFBitmap.cpp119 rgb[0] = SkToU8(255 * r / a); in get_neighbor_avg_color()
120 rgb[1] = SkToU8(255 * g / a); in get_neighbor_avg_color()
121 rgb[2] = SkToU8(255 * b / a); in get_neighbor_avg_color()
DSkPDFMakeToUnicodeCmap.cpp78 SkPDFUtils::WriteUInt8(cmap, SkToU8(gid)); in write_glyph()
/external/skia/include/utils/
DSkInterpolator.h46 fFlags = SkToU8((fFlags & ~kMirror) | (int)mirror); in setMirror()
59 fFlags = SkToU8((fFlags & ~kReset) | (int)reset); in setReset()
/external/skia/src/shaders/
DSkShader.cpp179 *alpha++ = SkToU8(a0); in shadeSpanAlpha()
180 *alpha++ = SkToU8(a1); in shadeSpanAlpha()
181 *alpha++ = SkToU8(a2); in shadeSpanAlpha()
182 *alpha++ = SkToU8(a3); in shadeSpanAlpha()
/external/skia/src/effects/
DSkEmbossMask.cpp105 multiply[x] = SkToU8(mul); in Emboss()
106 additive[x] = SkToU8(add); in Emboss()
DSkBlurMask.cpp423 *dst = SkToU8(SkAlphaMul(*blur, SkAlpha255To256(*src))); in merge_src_with_blur()
445 *dst = SkToU8(s + d - SkMulDiv255Round(s, d)); in clamp_with_orig()
453 *dst = SkToU8(SkAlphaMul(*dst, SkAlpha255To256(255 - *src))); in clamp_with_orig()
/external/skia/src/views/
DSkTagList.h28 SkTagList(U8CPU tag) : fTag(SkToU8(tag)) in SkTagList()
/external/skia/src/utils/
DSkTextBox.cpp127 fMode = SkToU8(mode); in setMode()
133 fSpacingAlign = SkToU8(align); in setSpacingAlign()
/external/skia/bench/
DBitmapRectBench.cpp53 fAlpha = SkToU8(alpha); in BitmapRectBench()
DPDFBench.cpp193 (void)SkPDFUtils::ColorToDecimal(SkToU8(i), dst); in onDraw()
/external/skia/include/core/
DSkMatrix.h788 fTypeMask = SkToU8(mask); in setTypeMask()
793 fTypeMask = SkToU8(fTypeMask | mask); in orTypeMask()

12