Lines Matching refs:mask_ctx
657 CairoRenderContext *mask_ctx = _renderer->createContext();
667 if (!mask_ctx->setupSurface( surface_width, surface_height )) {
669 _renderer->destroyContext(mask_ctx);
675 cairo_set_source_rgba(mask_ctx->_cr, 0.0, 0.0, 0.0, 1.0);
676 cairo_rectangle(mask_ctx->_cr, 0, 0, surface_width, surface_height);
677 cairo_fill(mask_ctx->_cr);
685 mask_ctx->setTransform(getParentState()->transform);
687 mask_ctx->setTransform(_state->transform);
690 mask_ctx->setTransform(_state->item_transform);
692 // render mask contents to mask_ctx
693 _renderer->applyMask(mask_ctx, mask);
695 TEST(mask_ctx->saveAsPng("mask.png"));
699 cairo_mask_surface(mask_ctx->_cr, clip_mask, 0, 0);
703 cairo_surface_t *mask_image = mask_ctx->getSurface();
740 _renderer->destroyContext(mask_ctx);