This class is responsible for aggregating multiple invalidation and scroll commands to produce a scroll and repaint sequence. More...
|void||set_max_redundant_paint_to_scroll_area (float area)|
|void||set_max_paint_rects (size_t max_rects)|
|bool||HasPendingUpdate () const|
|PaintUpdate||GetPendingUpdate () const|
|void||InvalidateRect (const Rect &rect)|
|void||ScrollRect (const Rect &clip_rect, const Point &amount)|
This class is responsible for aggregating multiple invalidation and scroll commands to produce a scroll and repaint sequence.
http://code.google.com/p/ppapi/wiki/2DPaintingModel for further information.
Constructor and Destructor Details
This function clears a pending update.
This function gets a pending update.
- A PaintUpdate containing the pending update.
This function determines if there is a pending update.
There is a PendingUpdate if InvalidateRect or ScrollRect were called and ClearPendingUpdate was not called.
- true if there is a pending update, otherwise false.
|void pp::PaintAggregator::InvalidateRect||(||const Rect &||rect||)|
This function invalidates the rect so it will be repainted.
[in] rect A rect to be repainted.
This function adds a pending scroll update.
[in] clip_rect The rect to scroll. [in] amount A Point amount to scroll
Setter function for setting the maximum number of paint rects.
If we exceed this limit, then we'll start combining paint rects (see CombinePaintRects). This limiting can be important since there is typically some overhead in deciding what to paint. If your module is fast at doing these computations, raise this threshold, if your module is slow, lower it (probably requires some tuning to find the right value).
[in] max_rects The maximum number of paint rects.
Setter function setting the max ratio of paint rect area to scroll rect area that we will tolerate before downgrading the scroll into a repaint.
If the combined area of paint rects contained within the scroll rect grows too large, then we might as well just treat the scroll rect as a paint rect.
[in] area The max ratio of paint rect area to scroll rect area that we will tolerate before downgrading the scroll into a repaint.
The documentation for this class was generated from the following file: