GR32_RepaintOpt.pas contains parts of the repaint optimizer used in Graphics32. The contents are not documented as this is mainly used internally. See the source code for details.