Lines Matching defs:mask
85 // this aligns with the masks, so we can compute a mask from a variable 0/1
103 // the rule that the type mask must be conservative, and speeds up
104 // type mask computation.
112 unsigned mask = 0;
121 mask |= kTranslate_Mask;
136 mask |= kAffine_Mask | kScale_Mask;
149 mask |= (dp0 & ds1) << kRectStaysRect_Shift;
154 mask |= kScale_Mask;
166 mask |= (m00 & m11) << kRectStaysRect_Shift;
169 return SkToU8(mask);
196 TypeMask mask = this->getType();
197 if (mask <= kTranslate_Mask) {
200 if (mask & kPerspective_Mask) {
207 if (!(mask & kAffine_Mask)) {
224 TypeMask mask = this->getType();
226 if (mask <= kTranslate_Mask) {
230 if (mask & kPerspective_Mask) {
234 SkASSERT(mask & (kAffine_Mask | kScale_Mask));
278 const unsigned mask = this->getType();
280 if (mask <= kTranslate_Mask) {
283 } else if (mask & kPerspective_Mask) {
357 // TODO: The persp/affine preconditions are in place to keep the mask consistent with
608 static bool only_scale_and_translate(unsigned mask) {
609 return 0 == (mask & (SkMatrix::kAffine_Mask | SkMatrix::kPerspective_Mask));
825 TypeMask mask = this->getType();
827 if (0 == (mask & ~(kScale_Mask | kTranslate_Mask))) {
830 if (mask & kScale_Mask) {
851 inv->setTypeMask(mask | kRectStaysRect_Mask);
864 int isPersp = mask & kPerspective_Mask;