Lines Matching defs:mask

205 //    size of the element indicates stenciling will be worth it, vs. making a mask.
207 // - Render the element into a SW mask and upload it. If possible, the SW rasterization happens
348 SkDEBUGFAIL("Unable to allocate SW clip mask.");
542 // rect, avoiding an expensive stencil mask generation.
762 // For the same save record, a larger mask will have the same or more elements
804 // If the prior record never needed a mask, this one will insert into the same index
863 // Must explicitly invalidate the key before removing the mask object from the stack
1120 // The mask stack increment size was chosen to be smaller since only 0.2% of the evaluated draw call
1121 // set ever used a mask (which includes stencil masks), or up to 0.3% when the atlas is disabled.
1130 // The number of stack-allocated mask pointers to store before extending the arrays.
1131 // Stack size determined empirically, the maximum number of elements put in a SW mask was 4
1149 // Invalidate all mask keys that remain. Since we're tearing the clip stack down, we don't need
1333 // We tighten it later if any form of mask or atlas element is needed.
1353 // applied by using the stencil buffer or a cached SW mask.
1376 // We don't need to produce a coverage FP or mask for the element
1467 // Now rasterize any remaining elements, either to the stencil or a SW mask. All elements are
1468 // flattened into a single mask.
1476 // Must use a texture mask to represent the combined clip elements since the stencil
1485 SkDebugf("WARNING: Clip mask requires stencil, but stencil unavailable. "
1497 // This will include all analytic FPs, all atlas FPs, and a SW mask FP.
1600 SkIRect maskBounds; // may not be 'bounds' if we reuse a large clip mask
1617 // No existing mask was found, so need to render a new one
1624 // Register the mask for later invalidation
1625 Mask& mask = masks->emplace_back(current, bounds);
1626 proxyProvider->assignUniqueKeyToProxy(mask.key(), maskProxy.asTextureProxy());
1630 // Wrap the mask in an FP that samples it for coverage
1635 // Maps the device coords passed to the texture effect to the top-left corner of the mask, and
1636 // make sure that the draw bounds are pre-mapped into the mask's space as well.
1640 // We scissor to bounds. The mask's texel centers are aligned to device space