Lines Matching refs:packed
321 // storage = packed | vertex_count | index_count | pos[] | texs[] | colors[] | boneIndices[] |
333 // packed has room for addtional flags in the future (e.g. versioning)
334 uint32_t packed = static_cast<uint32_t>(fMode);
335 SkASSERT((packed & ~kMode_Mask) == 0); // our mode fits in the mask bits
337 packed |= kHasTexs_Mask;
340 packed |= kHasColors_Mask;
343 packed |= kHasBones_Mask;
346 packed |= kIsNonVolatile_Mask;
363 writer.write32(packed);
385 const uint32_t packed = reader.readInt();
388 const VertexMode mode = safe.checkLE<VertexMode>(packed & kMode_Mask,
393 const bool hasTexs = SkToBool(packed & kHasTexs_Mask);
394 const bool hasColors = SkToBool(packed & kHasColors_Mask);
395 const bool hasBones = SkToBool(packed & kHasBones_Mask);
396 const bool isVolatile = !SkToBool(packed & kIsNonVolatile_Mask);