/third_party/skia/include/private/ |
D | SkTo.h | 13 template <typename D, typename S> constexpr D SkTo(S s) { in SkTo() function 18 template <typename S> constexpr int8_t SkToS8(S x) { return SkTo<int8_t>(x); } in SkToS8() 19 template <typename S> constexpr uint8_t SkToU8(S x) { return SkTo<uint8_t>(x); } in SkToU8() 20 template <typename S> constexpr int16_t SkToS16(S x) { return SkTo<int16_t>(x); } in SkToS16() 21 template <typename S> constexpr uint16_t SkToU16(S x) { return SkTo<uint16_t>(x); } in SkToU16() 22 template <typename S> constexpr int32_t SkToS32(S x) { return SkTo<int32_t>(x); } in SkToS32() 23 template <typename S> constexpr uint32_t SkToU32(S x) { return SkTo<uint32_t>(x); } in SkToU32() 24 template <typename S> constexpr int SkToInt(S x) { return SkTo<int>(x); } in SkToInt() 25 template <typename S> constexpr unsigned SkToUInt(S x) { return SkTo<unsigned>(x); } in SkToUInt() 26 template <typename S> constexpr size_t SkToSizeT(S x) { return SkTo<size_t>(x); } in SkToSizeT()
|
D | SkColorData.h | 164 unsigned a = SkTo<uint8_t>(SkAlphaBlend(SkGetPackedA32(src), SkGetPackedA32(dst), scale)); in SkFourByteInterp256() 165 unsigned r = SkTo<uint8_t>(SkAlphaBlend(SkGetPackedR32(src), SkGetPackedR32(dst), scale)); in SkFourByteInterp256() 166 unsigned g = SkTo<uint8_t>(SkAlphaBlend(SkGetPackedG32(src), SkGetPackedG32(dst), scale)); in SkFourByteInterp256() 167 unsigned b = SkTo<uint8_t>(SkAlphaBlend(SkGetPackedB32(src), SkGetPackedB32(dst), scale)); in SkFourByteInterp256()
|
D | BUILD.bazel | 55 "SkTo.h",
|
D | SkTDArray.h | 356 this->setCount(SkTo<int>(count)); in adjustCount() 376 fReserve = SkTo<int>(reserve); in resizeStorageToAtLeast()
|
/third_party/skia/src/utils/ |
D | SkJSON.cpp | 31 fData8[0] = SkTo<uint8_t>(t); in init_tagged() 41 fData8[0] |= SkTo<uint8_t>(t); in init_tagged_pointer() 537 fScopeIndex = SkTo<intptr_t>(fValueStack.size()); in pushObjectScope() 542 this->popScopeAsVec<ObjectValue>(SkTo<size_t>(fScopeIndex)); in popObjectScope() 558 fScopeIndex = -SkTo<intptr_t>(fValueStack.size()); in pushArrayScope() 563 this->popScopeAsVec<ArrayValue>(SkTo<size_t>(-fScopeIndex)); in popArrayScope() 573 SkASSERT(fValueStack.size() >= SkTo<size_t>(fScopeIndex)); in pushObjectKey() 574 SkASSERT(!((fValueStack.size() - SkTo<size_t>(fScopeIndex)) & 1)); in pushObjectKey() 679 const auto utf8_len = SkUTF::ToUTF8(SkTo<SkUnichar>(hexed), utf8); in unescapeString()
|
D | SkCustomTypeface.cpp | 156 glyphToUnicode[gid] = SkTo<SkUnichar>(gid); in getGlyphToUnicodeMap() 170 glyphs[i] = uni[i] < this->glyphCount() ? SkTo<SkGlyphID>(uni[i]) : 0; in onCharsToGlyphs()
|
/third_party/skia/src/core/ |
D | SkMask.cpp | 78 dst.fBounds.setWH(SkTo<int>(dstW), SkTo<int>(dstH)); in PrepareDestination() 81 dst.fRowBytes = SkTo<uint32_t>(dstW); in PrepareDestination()
|
D | SkGlyph.h | 200 return SkGlyphRect{fRect + Storage{x, y, SkTo<int16_t>(-x), SkTo<int16_t>(-y)}}; in offset() 314 SkTo<int16_t>(fLeft + fWidth), SkTo<int16_t>(fTop + fHeight)}; in glyphRect()
|
D | SkFontDescriptor.cpp | 84 result->fCoordinateCount = SkTo<CoordinateCountType>(coordinateCount); in Deserialize() 95 result->fCollectionIndex = SkTo<CollectionIndexType>(index); in Deserialize()
|
D | SkDraw_text.cpp | 32 return !(gt(position.fX, INT_MAX - (INT16_MAX + SkTo<int>(UINT16_MAX))) || in check_glyph_position() 34 gt(position.fY, INT_MAX - (INT16_MAX + SkTo<int>(UINT16_MAX))) || in check_glyph_position()
|
D | SkMaskBlurFilter.cpp | 202 return SkTo<uint8_t>((fWeight * sum + kHalf) >> 32); in finalScale() 900 return {SkTo<int32_t>(radiusX), SkTo<int32_t>(radiusY)}; in small_blur() 975 return {SkTo<int32_t>(borderW), SkTo<int32_t>(borderH)}; in blur() 1055 return {SkTo<int32_t>(borderW), SkTo<int32_t>(borderH)}; in blur()
|
D | SkScalerCache.h | 31 : fIndex{SkTo<uint32_t>(i)} in SkGlyphDigest()
|
/third_party/skia/src/gpu/ |
D | GrSubRunAllocator.cpp | 80 : fAlloc{bytes, SkTo<size_t>(size), SkTo<size_t>(firstHeapAllocation)} {} in GrSubRunAllocator()
|
/third_party/skia/modules/svg/src/ |
D | SkSVGDOM.cpp | 142 return SkString(first, SkTo<size_t>(last - first + 1)); in TrimmedString() 295 SkTo<int>(SK_ARRAY_COUNT(gAttributeParseInfo)), in set_string_attribute() 304 SkASSERT(SkTo<size_t>(attrIndex) < SK_ARRAY_COUNT(gAttributeParseInfo)); in set_string_attribute() 355 SkTo<int>(SK_ARRAY_COUNT(gTagFactories)), in construct_svg_node() 363 SkASSERT(SkTo<size_t>(tagIndex) < SK_ARRAY_COUNT(gTagFactories)); in construct_svg_node()
|
/third_party/skia/modules/sksg/include/ |
D | SkSGRect.h | 58 void setDirection(SkPathDirection dir) { fDirection = SkTo<uint8_t>(dir); } in setDirection() 101 void setDirection(SkPathDirection dir) { fDirection = SkTo<uint8_t>(dir); } in setDirection()
|
/third_party/skia/gm/ |
D | texteffects.cpp | 70 memcpy(buf.glyphs, glyphs.get(), SkTo<uint32_t>(defaultRunLen) * sizeof(SkGlyphID)); in MakeFancyBlob() 84 SkTo<uint32_t>(horizontalRunLen) * sizeof(SkGlyphID)); in MakeFancyBlob() 96 SkTo<uint32_t>(fullRunLen) * sizeof(SkGlyphID)); in MakeFancyBlob()
|
/third_party/skia/src/xml/ |
D | SkXMLParser.cpp | 75 fParser->text(fBufferedText.data(), SkTo<int>(fBufferedText.size())); in flushText() 114 ctx->appendText(txt, SkTo<size_t>(len)); in text_handler()
|
/third_party/skia/tools/fonts/ |
D | TestTypeface.cpp | 51 return SkTo<SkGlyphID>(index); in glyphForUnichar() 116 glyphToUnicode[gid] = SkTo<SkUnichar>(fTestFont->fCharCodes[gid]); in getGlyphToUnicodeMap()
|
/third_party/skia/modules/skshaper/src/ |
D | SkShaper_harfbuzz.cpp | 148 SkGlyphID skGlyph = SkTo<SkGlyphID>(hbGlyph); in skhb_glyph_h_advance() 229 SkGlyphID skGlyph = SkTo<SkGlyphID>(hbGlyph); 243 SkGlyphID skGlyph = SkTo<SkGlyphID>(hbGlyph); 1583 if (feature.end < SkTo<size_t>(utf8Start - utf8) || 1584 SkTo<size_t>(utf8End - utf8) <= feature.start) 1588 if (feature.start <= SkTo<size_t>(utf8Start - utf8) && 1589 SkTo<size_t>(utf8End - utf8) <= feature.end) 1595 SkTo<unsigned>(feature.start), SkTo<unsigned>(feature.end)});
|
/third_party/skia/tools/viewer/ |
D | Viewer.cpp | 1985 SkPixelGeometry pixelGeometry = SkTo<SkPixelGeometry>(pixelGeometryIdx - 1); in drawImGui() 2093 aliasIdx = SkTo<int>(fPaintOverrides.fAntiAliasState) + 1; in drawImGui() 2105 … fPaintOverrides.fAntiAliasState = SkTo<SkPaintFields::AntiAliasState>(aliasIdx-1); in drawImGui() 2151 styleIdx = SkTo<int>(fPaint.getStyle()) + 1; in drawImGui() 2160 fPaint.setStyle(SkTo<SkPaint::Style>(styleIdx - 1)); in drawImGui() 2188 capIdx = SkTo<int>(fPaint.getStrokeCap()) + 1; in drawImGui() 2197 fPaint.setStrokeCap(SkTo<SkPaint::Cap>(capIdx - 1)); in drawImGui() 2205 joinIdx = SkTo<int>(fPaint.getStrokeJoin()) + 1; in drawImGui() 2214 fPaint.setStrokeJoin(SkTo<SkPaint::Join>(joinIdx - 1)); in drawImGui() 2224 hintingIdx = SkTo<int>(fFont.getHinting()) + 1; in drawImGui() [all …]
|
/third_party/skia/src/codec/ |
D | SkParseEncodedOrigin.cpp | 21 const auto max = SkTo<uint32_t>((data_length - offset - 2) / kEntrySize); in parse_encoded_origin()
|
/third_party/skia/tests/ |
D | SkScalerCacheTest.cpp | 49 auto data = SkMakeZip(glyphs, pos).subspan(SkTo<int>(' '), glyphCount); in DEF_TEST()
|
/third_party/skia/src/ports/ |
D | SkTypeface_win_dw.cpp | 185 return SkTo<int>(variableAxisCount); in onGetVariationDesignPosition() 200 return SkTo<int>(variableAxisCount); in onGetVariationDesignPosition() 319 if (fDWriteFontFace->GetIndex() != SkTo<UINT32>(args.getCollectionIndex())) { in onMakeClone()
|
/third_party/skia/experimental/graphite/src/ |
D | Renderer.h | 120 , fStepCount(SkTo<int>(N)) in Renderer()
|
/third_party/skia/include/core/ |
D | SkSpan.h | 76 return SkSpan<T>{p, SkTo<size_t>(s)}; in SkMakeSpan()
|