Definition at line 65 of file pictureimagefilter.cpp.
◆ PictureImageFilterGM()
PictureImageFilterGM::PictureImageFilterGM |
( |
| ) |
|
|
inline |
◆ getISize()
SkISize PictureImageFilterGM::getISize |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
◆ getName()
SkString PictureImageFilterGM::getName |
( |
| ) |
const |
|
inlineoverrideprotectedvirtual |
◆ make() [1/2]
Definition at line 85 of file pictureimagefilter.cpp.
85 {
87 }
sk_sp< SkImageFilter > make(sk_sp< SkPicture > pic, SkRect r, const SkSamplingOptions &sampling)
virtual SkRect cullRect() const =0
SkSamplingOptions sampling
◆ make() [2/2]
Definition at line 79 of file pictureimagefilter.cpp.
79 {
84 }
#define SkScalarRoundToInt(x)
static sk_sp< SkColorSpace > MakeSRGB()
static sk_sp< SkImageFilter > Image(sk_sp< SkImage > image, const SkRect &srcRect, const SkRect &dstRect, const SkSamplingOptions &sampling)
SK_API sk_sp< SkImage > DeferredFromPicture(sk_sp< SkPicture > picture, const SkISize &dimensions, const SkMatrix *matrix, const SkPaint *paint, BitDepth bitDepth, sk_sp< SkColorSpace > colorSpace, SkSurfaceProps props)
@ kU8
uses 8-bit unsigned int per color component
constexpr float height() const
constexpr float width() const
◆ onDraw()
void PictureImageFilterGM::onDraw |
( |
SkCanvas * |
canvas | ) |
|
|
inlineoverrideprotectedvirtual |
Reimplemented from skiagm::GM.
Definition at line 89 of file pictureimagefilter.cpp.
89 {
91 {
98 emptyRect));
101
103
106
107
110
111
114
115
116 {
119
121
124
127
130 }
131
133
134
139
140
143
144
147 }
148 }
constexpr SkColor SK_ColorGRAY
int saveLayer(const SkRect *bounds, const SkPaint *paint)
void drawRect(const SkRect &rect, const SkPaint &paint)
void translate(SkScalar dx, SkScalar dy)
void clear(SkColor color)
void scale(SkScalar sx, SkScalar sy)
static sk_sp< SkImageFilter > Picture(sk_sp< SkPicture > pic, const SkRect &targetRect)
@ kStroke_Style
set to stroke geometry
Optional< SkRect > bounds
SkSamplingOptions(SkFilterMode::kLinear))
static void fill_rect_filtered(SkCanvas *canvas, const SkRect &clipRect, sk_sp< SkImageFilter > filter)
SkScalar fLeft
smaller x-axis bounds
static constexpr SkRect MakeXYWH(float x, float y, float w, float h)
SkScalar fTop
smaller y-axis bounds
◆ onOnceBeforeDraw()
void PictureImageFilterGM::onOnceBeforeDraw |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
Reimplemented from skiagm::GM.
Definition at line 74 of file pictureimagefilter.cpp.
74 {
77 }
static sk_sp< SkPicture > make_picture()
static sk_sp< SkPicture > make_LCD_picture()
The documentation for this class was generated from the following file: