Re: Any assignments for "Reduce Flicker" project

From: Martin Sevior <msevior_at_gmail.com>
Date: Mon Apr 12 2010 - 01:48:03 CEST

Hi Shanks,

OK here is an assignment to set out the scope of the reduce flicker project.

1. Find a document of at least 1 page in length.
2. If your build environment is linux run abiword inside gdb with:
  gdb abiword
3. Load the document.
4. Set two break points with gdb. One breakpoint should be in:
src/ar/gr/xp/gr_CairpGraphics.cpp::fillRect(const UT_RGBColor& c,
UT_sint32 x, UT_sint32 y,
                                                           UT_sint32 w, UT_sint32 h)
Line 3124 will work fine.

This method fills an area with a standard UT_RGBColor

Place another breakpoint at:
src/ar/gr/xp/gr_CairpGraphics.cpp::renderChars(GR_RenderInfo & ri)

Line: 1276

Will work fine.

After setting both break points, place the caret somewhere int he
middle of the document ans press a key.

Record all the codepaths the two breakpoints are called.

I'm particularly interested in the calling sequences before each
method is called. Trace the code back to the
src/text/fmt/xp/fp_* and src/text/fmt/xp/FV_View* classes.

You'll need to capture the draws offscreen then then render them to
screen at the appropriate time.

Cheers

Martin

On Sun, Apr 11, 2010 at 9:43 PM, shankhs ch <shankhsps@gmail.com> wrote:
>
> Hi,
> I find these assignments very helpful as it gives a direction to
> proceed to understand the flow of the code and the code itself. Can
> anybody give some kind of assignment related to "reduce flicker"
> project.Please
>
> Thanx
> shankhs
>
Received on Mon Apr 12 01:48:15 2010

This archive was generated by hypermail 2.1.8 : Mon Apr 12 2010 - 01:48:15 CEST