Lines Matching refs:safe
292 static uint32_t unpack_v68(SkPaint* paint, uint32_t packed, SkSafeRange& safe) { in unpack_v68() argument
296 paint->setBlendMode(safe.checkLE(packed & 0xFF, SkBlendMode::kLastMode)); in unpack_v68()
298 paint->setStrokeCap(safe.checkLE(packed & 0x3, SkPaint::kLast_Cap)); in unpack_v68()
300 paint->setStrokeJoin(safe.checkLE(packed & 0x3, SkPaint::kLast_Join)); in unpack_v68()
302 paint->setStyle(safe.checkLE(packed & 0x3, SkPaint::kStrokeAndFill_Style)); in unpack_v68()
304 paint->setFilterQuality(safe.checkLE(packed & 0x3, kLast_SkFilterQuality)); in unpack_v68()
341 SkSafeRange safe; in Unflatten_PreV68() local
367 paint->setStrokeCap(safe.checkLE((tmp >> 24) & 0xFF, SkPaint::kLast_Cap)); in Unflatten_PreV68()
368 paint->setStrokeJoin(safe.checkLE((tmp >> 16) & 0xFF, SkPaint::kLast_Join)); in Unflatten_PreV68()
369 paint->setStyle(safe.checkLE((tmp >> 12) & 0xF, SkPaint::kStrokeAndFill_Style)); in Unflatten_PreV68()
370 paint->setBlendMode(safe.checkLE(tmp & 0xFF, SkBlendMode::kLastMode)); in Unflatten_PreV68()
397 if (!buffer.validate(safe)) { in Unflatten_PreV68()
409 SkSafeRange safe; in Unflatten() local
419 unsigned flatFlags = unpack_v68(paint, buffer.readUInt(), safe); in Unflatten()
437 if (!buffer.validate(safe)) { in Unflatten()