Home
last modified time | relevance | path

Searched refs:SkToSizeT (Results 1 – 13 of 13) sorted by relevance

/external/skia/src/core/
DSkVertices.cpp34 fTotal = SkToSizeT(total); in Sizes()
35 fVSize = SkToSizeT(vSize); in Sizes()
36 fTSize = SkToSizeT(tSize); in Sizes()
37 fCSize = SkToSizeT(cSize); in Sizes()
38 fISize = SkToSizeT(iSize); in Sizes()
DSkMD5.h22 size_t bytesWritten() const final { return SkToSizeT(this->byteCount); } in bytesWritten()
DSkRWBuffer.cpp340 (void)this->seek(SkToSizeT(offset)); in move()
DSkBitmap.cpp1005 sk_sp<SkData> data(SkData::MakeUninitialized(SkToSizeT(ramSize))); in ReadRawPixels()
1007 buffer->readByteArray(dst, SkToSizeT(snugSize)); in ReadRawPixels()
/external/skia/src/pdf/
DSkDeflate.cpp21 return sk_calloc_throw(SkToSizeT(items) * SkToSizeT(size)); in skia_alloc_func()
DSkJpegInfo.cpp90 if (SkToSizeT(segment.length()) < sizeof(kJfif) || in SkIsJFIF()
DSkPDFBitmap.cpp144 return SkToSizeT(bm.width()) * SkToSizeT(bm.height()); in pixel_count()
DSkPDFDevice.cpp1164 storage->fGlyphStorage.reset(SkToSizeT(glyphCount)); in make_clusterator()
1166 storage->fClusterStorage.reset(SkToSizeT(glyphCount)); in make_clusterator()
1208 storage->fUtf8textStorage.reset(SkToSizeT(utf8ByteCount)); in make_clusterator()
/external/skia/tests/
DPDFDeflateWStreamTest.cpp22 return sk_calloc_throw(SkToSizeT(items) * SkToSizeT(size)); in skia_alloc_func()
DFloat16Test.cpp46 REPORTER_ASSERT(reporter, pm.getSafeSize() == SkToSizeT(w * h * sizeof(uint64_t))); in DEF_TEST()
DPDFPrimitivesTest.cpp283 dict->insertInt("n1", SkToSizeT(42)); in TestPDFDict()
306 dict->insertInt("n2", SkToSizeT(99)); in TestPDFDict()
/external/skia/fuzz/
DFuzzCanvas.cpp1130 int glyphCount = paint.countText(text.begin(), SkToSizeT(text.count())); in make_fuzz_textblob()
1141 memcpy(buffer->glyphs, text.begin(), SkToSizeT(text.count())); in make_fuzz_textblob()
1147 memcpy(buffer->glyphs, text.begin(), SkToSizeT(text.count())); in make_fuzz_textblob()
1153 memcpy(buffer->glyphs, text.begin(), SkToSizeT(text.count())); in make_fuzz_textblob()
1599 canvas->drawText(text.begin(), SkToSizeT(text.count()), x, y, paint); in fuzz_canvas()
1607 int glyphCount = paint.countText(text.begin(), SkToSizeT(text.count())); in fuzz_canvas()
1613 paint.getTextWidths(text.begin(), SkToSizeT(text.count()), widths.get()); in fuzz_canvas()
1620 canvas->drawPosText(text.begin(), SkToSizeT(text.count()), pos.get(), paint); in fuzz_canvas()
1628 int glyphCount = paint.countText(text.begin(), SkToSizeT(text.count())); in fuzz_canvas()
1633 paint.getTextWidths(text.begin(), SkToSizeT(text.count()), widths.get()); in fuzz_canvas()
[all …]
/external/skia/include/core/
DSkTypes.h223 #define SkToSizeT(x) SkTo<size_t>(x) macro