Lines Matching refs:safe
358 static uint32_t unpack_v68(SkPaint* paint, uint32_t packed, SkSafeRange& safe) { in unpack_v68() argument
362 paint->setBlendMode(safe.checkLE(packed & 0xFF, SkBlendMode::kLastMode)); in unpack_v68()
364 paint->setStrokeCap(safe.checkLE(packed & 0x3, SkPaint::kLast_Cap)); in unpack_v68()
366 paint->setStrokeJoin(safe.checkLE(packed & 0x3, SkPaint::kLast_Join)); in unpack_v68()
368 paint->setStyle(safe.checkLE(packed & 0x3, SkPaint::kStrokeAndFill_Style)); in unpack_v68()
370 paint->setFilterQuality(safe.checkLE(packed & 0x3, kLast_SkFilterQuality)); in unpack_v68()
407 SkSafeRange safe; in Unflatten_PreV68() local
433 paint->setStrokeCap(safe.checkLE((tmp >> 24) & 0xFF, SkPaint::kLast_Cap)); in Unflatten_PreV68()
434 paint->setStrokeJoin(safe.checkLE((tmp >> 16) & 0xFF, SkPaint::kLast_Join)); in Unflatten_PreV68()
435 paint->setStyle(safe.checkLE((tmp >> 12) & 0xF, SkPaint::kStrokeAndFill_Style)); in Unflatten_PreV68()
436 paint->setBlendMode(safe.checkLE(tmp & 0xFF, SkBlendMode::kLastMode)); in Unflatten_PreV68()
463 if (!buffer.validate(safe)) { in Unflatten_PreV68()
475 SkSafeRange safe; in Unflatten() local
485 unsigned flatFlags = unpack_v68(paint, buffer.readUInt(), safe); in Unflatten()
503 if (!buffer.validate(safe)) { in Unflatten()