#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 }
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir path
◆ clipRect()
Definition at line 53 of file SkRasterClipStack.h.
53 {
54 this->writable_rc().op(
rect, ctm, op, this->finalAA(aa));
56 }
sk_sp< SkBlender > blender SkRect rect
◆ clipRegion()
◆ clipRRect()
◆ 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 }
bool intersect(const SkIRect &r)
◆ restore()
void SkRasterClipStack::restore |
( |
| ) |
|
|
inline |
Definition at line 42 of file SkRasterClipStack.h.
42 {
43 SkDEBUGCODE(fCounter -= 1);
45
46 if (--fStack.
back().fDeferredCount < 0) {
50 }
51 }
◆ save()
void SkRasterClipStack::save |
( |
| ) |
|
|
inline |
Definition at line 36 of file SkRasterClipStack.h.
36 {
37 SkDEBUGCODE(fCounter += 1);
39 fStack.
back().fDeferredCount += 1;
40 }
◆ 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: