Flutter Engine
The Flutter Engine
|
#include <dl_bounds_accumulator.h>
Public Member Functions | |
void | accumulate (const SkRect &r, int index) override |
void | save () override |
void | restore () override |
bool | restore (std::function< bool(const SkRect &original, SkRect &modified)> map, const SkRect *clip=nullptr) override |
SkRect | bounds () const override |
sk_sp< DlRTree > | rtree () const override |
BoundsAccumulatorType | type () const override |
Public Member Functions inherited from flutter::BoundsAccumulator | |
virtual | ~BoundsAccumulator ()=default |
Additional Inherited Members | |
Public Types inherited from flutter::BoundsAccumulator | |
typedef bool | BoundsModifier(const SkRect &original, SkRect *dest) |
Definition at line 142 of file dl_bounds_accumulator.h.
Implements flutter::BoundsAccumulator.
Definition at line 76 of file dl_bounds_accumulator.cc.
|
overridevirtual |
Implements flutter::BoundsAccumulator.
Definition at line 119 of file dl_bounds_accumulator.cc.
|
overridevirtual |
Restore to the previous accumulation and incorporate the bounds of the primitives that were recorded since the last save (if needed).
Implements flutter::BoundsAccumulator.
Definition at line 85 of file dl_bounds_accumulator.cc.
|
overridevirtual |
Restore the previous set of accumulation rects/bounds and accumulate the current rects/bounds that were accumulated since the most recent call to |save| into them with modifications specified by the |map| parameter and clipping to the clip parameter if it is not null.
The indicated map function is applied to the various rects and bounds that have been accumulated in this save/restore cycle before they are then accumulated into the previous accumulations. The granularity of the application of the map function to the rectangles that were accumulated during the save period is left up to the implementation.
This method will return true if the map function returned true on every single invocation. A false return value means that the bounds accumulated during this restore may not be trusted (as determined by the map function).
If there are no saved accumulations to restore to, this method will NOP ignoring the map function and the optional clip entirely.
Implements flutter::BoundsAccumulator.
Definition at line 92 of file dl_bounds_accumulator.cc.
Implements flutter::BoundsAccumulator.
Definition at line 128 of file dl_bounds_accumulator.cc.
|
overridevirtual |
Save aside the rects/bounds currently being accumulated and start accumulating a new set of rects/bounds. When restore is called, some additional modifications may be applied to these new bounds before they are accumulated back into the surrounding bounds.
Implements flutter::BoundsAccumulator.
Definition at line 82 of file dl_bounds_accumulator.cc.
|
inlineoverridevirtual |
Implements flutter::BoundsAccumulator.
Definition at line 156 of file dl_bounds_accumulator.h.