third_party/cairo/src/cairo-os2-surface.c
void
cairo_os2_surface_set_manual_window_refresh (cairo_surface_t *surface,
                                             cairo_bool_t     manual_refresh)
{
    cairo_os2_surface_t *local_os2_surface;

    local_os2_surface = (cairo_os2_surface_t *) surface;
    if ((!local_os2_surface) ||
        (local_os2_surface->base.backend != &cairo_os2_surface_backend))
    {
        /* Invalid parameter (wrong surface)! */
        return;
    }

    local_os2_surface->blit_as_changes = !manual_refresh;
}
/**
 * cairo_os2_surface_set_manual_window_refresh:
 * @surface: the cairo surface to set the refresh mode for
 * @manual_refresh: the switch for manual surface refresh
 *
 * This API can tell Cairo if it should show every change to this surface
 * immediately in the window or if it should be cached and will only be visible
 * once the user calls cairo_os2_surface_refresh_window() explicitly. If the
 * HWND was not set in the cairo surface, then the HPS will be used to blit the
 * graphics. Otherwise it will invalidate the given window region so the user
 * will get the WM_PAINT message to redraw that area of the window.
 *
 * So, if you're only interested in displaying the final result after several
 * drawing operations, you might get better performance if you put the surface
 * into manual refresh mode by passing a true value to this function. Then call
 * cairo_os2_surface_refresh() whenever desired.
 *
 * Since: 1.4
 **/
@surface: the cairo surface to set the refresh mode for
@manual_refresh: the switch for manual surface refresh

This API can tell Cairo if it should show every change to this surface
immediately in the window or if it should be cached and will only be visible
once the user calls cairo_os2_surface_refresh_window() explicitly. If the
HWND was not set in the cairo surface, then the HPS will be used to blit the
graphics. Otherwise it will invalidate the given window region so the user
will get the WM_PAINT message to redraw that area of the window.

So, if you're only interested in displaying the final result after several
drawing operations, you might get better performance if you put the surface
into manual refresh mode by passing a true value to this function. Then call
cairo_os2_surface_refresh() whenever desired.


@surface : the cairo surface to set the refresh mode for @manual_refresh : the switch for manual surface refresh This API can tell Cairo if it should show every change to this surface immediately in the window or if it should be cached and will only be visible once the user calls cairo_os2_surface_refresh_window () explicitly . If the HWND was not set in the cairo surface then the HPS will be used to blit the graphics . Otherwise it will invalidate the given window region so the user will get the WM_PAINT message to redraw that area of the window . So if you ' re only interested in displaying the final result after several drawing operations you might get better performance if you put the surface into manual refresh mode by passing a true value to this function . Then call cairo_os2_surface_refresh () whenever desired .
void
cairo_os2_surface_set_manual_window_refresh (cairo_surface_t *surface,
                                             cairo_bool_t     manual_refresh)
{
    cairo_os2_surface_t *local_os2_surface;
    local_os2_surface = (cairo_os2_surface_t *) surface;
    if ((!local_os2_surface) ||
        (local_os2_surface->base.backend != &cairo_os2_surface_backend))
    {
        return;
    }
    local_os2_surface->blit_as_changes = !manual_refresh;
}
void cairo_os2_surface_set_manual_window_refresh ( cairo_surface_t * surface , cairo_bool_t manual_refresh ) { cairo_os2_surface_t * local_os2_surface ; local_os2_surface = ( cairo_os2_surface_t * ) surface ; if ( ( ! local_os2_surface ) || ( local_os2_surface -> base . backend != & cairo_os2_surface_backend ) ) { return ; } local_os2_surface -> blit_as_changes = ! manual_refresh ; }
cairo_os2_surface_set_manual_window_refresh:
 @surface: the cairo surface to set the refresh mode for
 @manual_refresh: the switch for manual surface refresh
cairo_os2_surface_set_manual_window_refresh : @surface : the cairo surface to set the refresh mode for @manual_refresh : the switch for manual surface refresh
/* Invalid parameter (wrong surface)! */