Ignore:
Timestamp:
Jul 26, 2009, 9:17:35 PM (11 years ago)
Author:
Sam Hocevar
Message:

Allow to temporarily disable dirty rectangle handling. This allows for huge
speedups when the calling application knows the dirty rectangle covered by
a complex operation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/caca/transform.c

    r3542 r3583  
    5555    }
    5656
    57     caca_add_dirty_rect(cv, 0, 0, cv->width, cv->height);
     57    if(!cv->dirty_disabled)
     58        caca_add_dirty_rect(cv, 0, 0, cv->width, cv->height);
    5859
    5960    return 0;
     
    116117    }
    117118
    118     caca_add_dirty_rect(cv, 0, 0, cv->width, cv->height);
     119    if(!cv->dirty_disabled)
     120        caca_add_dirty_rect(cv, 0, 0, cv->width, cv->height);
    119121
    120122    return 0;
     
    163165    }
    164166
    165     caca_add_dirty_rect(cv, 0, 0, cv->width, cv->height);
     167    if(!cv->dirty_disabled)
     168        caca_add_dirty_rect(cv, 0, 0, cv->width, cv->height);
    166169
    167170    return 0;
     
    222225    }
    223226
    224     caca_add_dirty_rect(cv, 0, 0, cv->width, cv->height);
     227    if(!cv->dirty_disabled)
     228        caca_add_dirty_rect(cv, 0, 0, cv->width, cv->height);
    225229
    226230    return 0;
     
    341345    _caca_load_frame_info(cv);
    342346
    343     caca_add_dirty_rect(cv, 0, 0, cv->width, cv->height);
     347    if(!cv->dirty_disabled)
     348        caca_add_dirty_rect(cv, 0, 0, cv->width, cv->height);
    344349
    345350    return 0;
     
    460465    _caca_load_frame_info(cv);
    461466
    462     caca_add_dirty_rect(cv, 0, 0, cv->width, cv->height);
     467    if(!cv->dirty_disabled)
     468        caca_add_dirty_rect(cv, 0, 0, cv->width, cv->height);
    463469
    464470    return 0;
Note: See TracChangeset for help on using the changeset viewer.