gfxPattern(gfxASurface& surface) { mPattern = cairo_pattern_create_for_surface(surface.CairoSurface()); }
gfxPattern(cairo_pattern_t *pattern) : mPattern(pattern) {}
    gfxPattern(gfxASurface& surface) {        mPattern = cairo_pattern_create_for_surface(surface.CairoSurface());    }