Lines Matching full:alignment
45 * Returns a type's required alignment when used as a standalone variable.
47 size_t alignment(const Type& type) const { in alignment() function
58 return this->roundUpIfNeeded(this->alignment(type.componentType())); in alignment()
62 size_t alignment = this->alignment(*f.fType); in alignment() local
63 if (alignment > result) { in alignment()
64 result = alignment; in alignment()
85 int align = this->alignment(type.componentType()); in stride()
118 size_t alignment = this->alignment(*f.fType); in size() local
119 if (total % alignment != 0) { in size()
120 total += alignment - total % alignment; in size()
122 SkASSERT(total % alignment == 0); in size()
125 size_t alignment = this->alignment(type); in size() local
127 (0 == alignment % this->alignment(*type.fields()[0].fType))); in size()
128 return (total + alignment - 1) & ~(alignment - 1); in size()