Home
last modified time | relevance | path

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

123

/external/skia/gm/
Dpdf_never_embed.cpp17 SkAutoTArray<SkScalar> widths(SkToInt(textLen)); in excercise_draw_pos_text()
19 SkAutoTArray<SkPoint> pos(SkToInt(textLen)); in excercise_draw_pos_text()
20 for (int i = 0; i < SkToInt(textLen); ++i) { in excercise_draw_pos_text()
Ddftext.cpp123 SkAutoTArray<SkPoint> pos(SkToInt(textLen)); in onDraw()
124 SkAutoTArray<SkScalar> widths(SkToInt(textLen)); in onDraw()
Dgetpostextpath.cpp25 int len = SkToInt(strlen(text));
Dglyph_pos_align.cpp48 int length = SkToInt(strlen(text)); in drawTestCase()
/external/skia/src/effects/
DSkPackBits.cpp63 dst = flush_same8(dst, value, SkToInt(s - src)); in Pack8()
74 dst = flush_diff8(dst, src, SkToInt(s - src)); in Pack8()
106 return SkToInt(dst - origDst); in Unpack8()
/external/skia/src/core/
DSkFont.cpp76 count = SkUTF16_CountUnichars((const uint16_t*)text, SkToInt(byteLength >> 1)); in textToGlyphs()
79 count = SkToInt(byteLength >> 2); in textToGlyphs()
82 count = SkToInt(byteLength >> 1); in textToGlyphs()
DSkRegionPriv.h32 return SkToInt((curr - runs) >> 1); in compute_intervalcount()
219 int runCount = SkToInt(runs - this->writable_runs() + 1); in computeRunBounds()
DSkDebug.cpp44 int SkToInt(intmax_t x) { in SkToInt() function
DSkMetaData.cpp94 (void)this->set(name, value, sizeof(char), kString_Type, SkToInt(strlen(value) + 1)); in setString()
108 (void)this->set(name, data, sizeof(char), kData_Type, SkToInt(byteCount)); in setData()
DSkError.cpp121 int string_left = SkToInt(ERROR_STRING_LENGTH - strlen(str)); in SetError()
DSkTime.cpp15 int timeZoneMinutes = SkToInt(fTimeZoneMinutes); in toISO8601()
DSkString.cpp34 SkASSERT(written >= 0 && written < SkToInt(size)); \
574 SkASSERT(length >= 0 && length < SkToInt(kBufferSize)); in appendVAList()
590 SkASSERT(length >= 0 && length < SkToInt(kBufferSize)); in prependVAList()
DSkPictureData.cpp382 const int count = SkToInt(size); in parseStreamTag()
493 const int count = SkToInt(size); in parseBufferTag()
505 const int count = SkToInt(size); in parseBufferTag()
/external/skia/tests/
DSVGDeviceTest.cpp46 int textLen = SkToInt(strlen(expected)); in check_text_node()
102 for (int i = 0; i < SkToInt(len); ++i) { in test_whitespace_pos()
115 for (int i = 0; i < SkToInt(len); ++i) { in test_whitespace_pos()
DSkBase64Test.cpp23 src[SkToInt(encodeLength)] = '\0'; in DEF_TEST()
DTime.cpp47 REPORTER_ASSERT(r, SkTAbs(SkToInt(dateTime.fTimeZoneMinutes)) <= 14 * 60); in DEF_TEST()
/external/skia/src/gpu/
DGrPathProcessor.cpp24 b->add32(SkToInt(pathProc.overrides().readsColor()) | in GenKey()
25 (SkToInt(pathProc.overrides().readsCoverage()) << 1) | in GenKey()
26 (SkToInt(pathProc.viewMatrix().hasPerspective()) << 2)); in GenKey()
DGrTest.cpp231 SkToInt(fBytes), SkToInt(fBudgetedBytes), byteUtilization, in dumpStats()
232 SkToInt(stats.fUnbudgetedSize), SkToInt(fHighWaterBytes)); in dumpStats()
/external/skia/src/utils/mac/
DSkCreateCGImageRef.cpp282 const int width = scaleToFit ? scaleToFit->width() : SkToInt(CGImageGetWidth(image)); in SkCreateBitmapFromCGImage()
283 const int height = scaleToFit ? scaleToFit->height() : SkToInt(CGImageGetHeight(image)); in SkCreateBitmapFromCGImage()
/external/skia/samplecode/
DSampleHairline.cpp62 if (!check_zeros(bm.getAddr32(i, 0), bm.height(), SkToInt(rb >> 2))) { in check_bitmap_margin()
67 SkToInt(rb >> 2))) { in check_bitmap_margin()
/external/skia/include/gpu/
DGrResourceKey.h61 fKey.reset(SkToInt(bytes / sizeof(uint32_t)));
278 return SkToInt((innerKey.dataSize() >> 2) + 1); in Data32CntForInnerKey()
/external/skia/src/ports/
DSkImageDecoder_CG.cpp154 const int width = SkToInt(CGImageGetWidth(image)); in onDecode()
155 const int height = SkToInt(CGImageGetHeight(image)); in onDecode()
/external/skia/src/utils/
DSkLuaCanvas.cpp60 this->pushArrayU16((const uint16_t*)text, SkToInt(length >> 1), in pushEncodedText()
172 lua.pushArrayPoint(pts, SkToInt(count), "points"); in onDrawPoints()
/external/skia/include/private/
DSkTDArray.h221 return SkToInt(iter - fArray); in find()
233 return SkToInt(iter - stop); in rfind()
/external/skia/tools/
Dskpinfo.cpp116 const int count = SkToInt(chunkSize); in tool_main()

123