Lines Matching defs:mask
47 #include "sp-mask.h"
89 // FIXME: expose these from sp-clippath/mask.cpp
531 state->mask = NULL;
561 At this point, the Cairo source is ready. A Cairo mask must be created if required.
566 1. An SVG object may have both a clip path and a mask!
571 5. Cairo expects a mask to use only the alpha channel. SVG masks combine the RGB luminance with
576 SPMask *mask = _state->mask;
577 if (clip_path || mask) {
586 mask = NULL; // disable mask when performing nested clipping
590 if (!mask) {
622 // If a mask won't be applied set opacity too. (The clip is represented by a solid Cairo mask.)
623 if (!mask)
645 if (!mask) {
653 // Apply any mask second
654 if (mask) {
655 TRACE((" Applying mask\n"));
656 // create rendering context for mask
660 // Cairo surface is expecting the mask to be 96 dpi.
668 TRACE(("mask: setupSurface failed\n"));
672 TRACE(("mask surface: %f x %f at %i dpi\n", surface_width, surface_height, _dpi ));
682 // copy the correct CTM to mask context
692 // render mask contents to mask_ctx
693 _renderer->applyMask(mask_ctx, mask);
695 TEST(mask_ctx->saveAsPng("mask.png"));
697 // composite with clip mask
738 // apply the mask onto the layer
743 // No clip path or mask
1491 ( _state->opacity != 1.0 || _state->clip_path != NULL || _state->mask != NULL ) );