Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Classes | Public Member Functions | List of all members
SkAAClip::Builder Class Reference

Classes

class  Blitter
 

Public Member Functions

 Builder (const SkIRect &bounds)
 
 ~Builder ()
 
bool applyClipOp (SkAAClip *target, const SkAAClip &other, SkClipOp op)
 
bool blitPath (SkAAClip *target, const SkPath &path, bool doAA)
 

Detailed Description

Definition at line 246 of file SkAAClip.cpp.

Constructor & Destructor Documentation

◆ Builder()

SkAAClip::Builder::Builder ( const SkIRect bounds)
inline

Definition at line 262 of file SkAAClip.cpp.

262 : fBounds(bounds) {
263 fPrevY = -1;
264 fWidth = bounds.width();
265 fCurrRow = nullptr;
266 fMinY = bounds.fTop;
267 }
Optional< SkRect > bounds
Definition SkRecords.h:189

◆ ~Builder()

SkAAClip::Builder::~Builder ( )
inline

Definition at line 269 of file SkAAClip.cpp.

269 {
270 Row* row = fRows.begin();
271 Row* stop = fRows.end();
272 while (row < stop) {
273 delete row->fData;
274 row += 1;
275 }
276 }
T * end()
Definition SkTDArray.h:152
T * begin()
Definition SkTDArray.h:150

Member Function Documentation

◆ applyClipOp()

bool SkAAClip::Builder::applyClipOp ( SkAAClip target,
const SkAAClip other,
SkClipOp  op 
)

Definition at line 830 of file SkAAClip.cpp.

830 {
831 this->operateY(*target, other, op);
832 return this->finish(target);
833}
bool op(const SkIRect &, SkClipOp)
uint32_t * target

◆ blitPath()

bool SkAAClip::Builder::blitPath ( SkAAClip target,
const SkPath path,
bool  doAA 
)

Definition at line 835 of file SkAAClip.cpp.

835 {
836 Blitter blitter(this);
837 SkRegion clip(fBounds);
838
839 if (doAA) {
840 SkScan::AntiFillPath(path, clip, &blitter, true);
841 } else {
842 SkScan::FillPath(path, clip, &blitter);
843 }
844
845 blitter.finish();
846 return this->finish(target);
847}
static SkPath clip(const SkPath &path, const SkHalfPlane &plane)
Definition SkPath.cpp:3824
static void AntiFillPath(const SkPath &, const SkRasterClip &, SkBlitter *)
static void FillPath(const SkPath &, const SkIRect &, SkBlitter *)

The documentation for this class was generated from the following file: