Lines Matching defs:clip_ctx
579 CairoRenderContext *clip_ctx = 0;
604 clip_ctx = _renderer->createContext();
605 clip_ctx->setImageTarget(CAIRO_FORMAT_A8);
606 clip_ctx->setClipMode(CLIP_MODE_MASK); // Raster
610 if (!clip_ctx->setupSurface(_width, _height)) {
612 _renderer->destroyContext(clip_ctx);
617 cairo_save(clip_ctx->_cr);
618 cairo_set_operator(clip_ctx->_cr, CAIRO_OPERATOR_CLEAR);
619 cairo_paint(clip_ctx->_cr);
620 cairo_restore(clip_ctx->_cr);
624 cairo_set_source_rgba(clip_ctx->_cr, 1.0, 1.0, 1.0, opacity);
626 cairo_set_source_rgba(clip_ctx->_cr, 1.0, 1.0, 1.0, 1.0);
637 clip_ctx->pushState();
638 clip_ctx->getCurrentState()->item_transform = item_transform;
639 _renderer->applyClipPath(clip_ctx, clip_path);
640 clip_ctx->popState();
642 clip_mask = clip_ctx->getSurface();
643 TEST(clip_ctx->saveAsPng("clip_mask.png"));
648 _renderer->destroyContext(clip_ctx);
700 _renderer->destroyContext(clip_ctx);