#include <SkRasterClipStack.h>
|
| SkRasterClipStack (int width, int height) |
|
void | setNewSize (int w, int h) |
|
const SkRasterClip & | rc () const |
|
void | save () |
|
void | restore () |
|
void | clipRect (const SkMatrix &ctm, const SkRect &rect, SkClipOp op, bool aa) |
|
void | clipRRect (const SkMatrix &ctm, const SkRRect &rrect, SkClipOp op, bool aa) |
|
void | clipPath (const SkMatrix &ctm, const SkPath &path, SkClipOp op, bool aa) |
|
void | clipShader (sk_sp< SkShader > sh) |
|
void | clipRegion (const SkRegion &rgn, SkClipOp op) |
|
void | replaceClip (const SkIRect &rect) |
|
void | validate () const |
|
Definition at line 16 of file SkRasterClipStack.h.
◆ SkRasterClipStack()
SkRasterClipStack::SkRasterClipStack |
( |
int |
width, |
|
|
int |
height |
|
) |
| |
|
inline |
Definition at line 18 of file SkRasterClipStack.h.
23 }
static bool PathRequiresTiling(const SkIRect &bounds)
T & emplace_back(Args &&... args)
static constexpr SkIRect MakeWH(int32_t w, int32_t h)
◆ clipPath()
Definition at line 63 of file SkRasterClipStack.h.
63 {
64 this->writable_rc().op(path, ctm, op, this->finalAA(aa));
66 }
◆ clipRect()
Definition at line 53 of file SkRasterClipStack.h.
53 {
54 this->writable_rc().op(rect, ctm, op, this->finalAA(aa));
56 }
◆ clipRegion()
◆ clipRRect()
Definition at line 58 of file SkRasterClipStack.h.
58 {
59 this->writable_rc().op(rrect, ctm, op, this->finalAA(aa));
61 }
◆ clipShader()
◆ rc()
◆ replaceClip()
void SkRasterClipStack::replaceClip |
( |
const SkIRect & |
rect | ) |
|
|
inline |
Definition at line 78 of file SkRasterClipStack.h.
78 {
81 this->writable_rc().setEmpty();
82 } else {
83 this->writable_rc().setRect(devRect);
84 }
85 }
sk_sp< SkBlender > blender SkRect rect
bool intersect(const SkIRect &r)
◆ restore()
void SkRasterClipStack::restore |
( |
| ) |
|
|
inline |
◆ save()
void SkRasterClipStack::save |
( |
| ) |
|
|
inline |
◆ setNewSize()
void SkRasterClipStack::setNewSize |
( |
int |
w, |
|
|
int |
h |
|
) |
| |
|
inline |
Definition at line 25 of file SkRasterClipStack.h.
25 {
27
29 Rec& rec = fStack.
back();
31 rec.fRC.setRect(fRootBounds);
32 }
void setXYWH(int32_t x, int32_t y, int32_t width, int32_t height)
◆ validate()
void SkRasterClipStack::validate |
( |
| ) |
const |
|
inline |
Definition at line 87 of file SkRasterClipStack.h.
87 {
88#ifdef SK_DEBUG
94 }
95#endif
96 }
static SkPath clip(const SkPath &path, const SkHalfPlane &plane)
const SkRect & getBounds() const
const SkRasterClip & rc() const
bool contains(int32_t x, int32_t y) const
The documentation for this class was generated from the following file: