Definition at line 32 of file offsetimagefilter.cpp.
◆ OffsetImageFilterGM()
OffsetImageFilterGM::OffsetImageFilterGM |
( |
| ) |
|
|
inline |
◆ getISize()
SkISize OffsetImageFilterGM::getISize |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
◆ getName()
SkString OffsetImageFilterGM::getName |
( |
| ) |
const |
|
inlineoverrideprotectedvirtual |
◆ onDraw()
void OffsetImageFilterGM::onDraw |
( |
SkCanvas * |
canvas | ) |
|
|
inlineoverrideprotectedvirtual |
Reimplemented from skiagm::GM.
Definition at line 49 of file offsetimagefilter.cpp.
49 {
52
53 for (
int i = 0;
i < 4;
i++) {
65 }
66
69 DrawClippedImage(canvas, fBitmap.
get(),
paint, 2, cropRect);
70 }
constexpr SkColor SK_ColorBLACK
void translate(SkScalar dx, SkScalar dy)
void clear(SkColor color)
static sk_sp< SkImageFilter > Image(sk_sp< SkImage > image, const SkRect &srcRect, const SkRect &dstRect, const SkSamplingOptions &sampling)
static sk_sp< SkImageFilter > Offset(SkScalar dx, SkScalar dy, sk_sp< SkImageFilter > input, const CropRect &cropRect={})
sk_sp< const SkImage > image
skia_private::AutoTArray< sk_sp< SkImageFilter > > filters TypedMatrix matrix TypedMatrix matrix SkScalar dx
static constexpr SkIRect MakeXYWH(int32_t x, int32_t y, int32_t w, int32_t h)
◆ onOnceBeforeDraw()
void OffsetImageFilterGM::onOnceBeforeDraw |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
The documentation for this class was generated from the following file: