Lines Matching refs:alignment
47 * Returns a type's required alignment when used as a standalone variable.
49 size_t alignment(const Type& type) const {
60 return this->roundUpIfNeeded(this->alignment(type.componentType()));
64 size_t alignment = this->alignment(*f.fType);
65 if (alignment > result) {
66 result = alignment;
89 int align = this->alignment(type.componentType());
125 size_t alignment = this->alignment(*f.fType);
126 if (total % alignment != 0) {
127 total += alignment - total % alignment;
129 SkASSERT(total % alignment == 0);
132 size_t alignment = this->alignment(type);
134 (0 == alignment % this->alignment(*type.fields()[0].fType)));
135 return (total + alignment - 1) & ~(alignment - 1);