Definition at line 226 of file imagefiltersbase.cpp.
◆ ImageFiltersTextBaseGM()
ImageFiltersTextBaseGM::ImageFiltersTextBaseGM |
( |
const char |
suffix[] | ) |
|
|
inline |
◆ drawWaterfall()
void ImageFiltersTextBaseGM::drawWaterfall |
( |
SkCanvas * |
canvas, |
|
|
const SkPaint & |
paint |
|
) |
| |
|
inlineprotected |
Definition at line 240 of file imagefiltersbase.cpp.
240 {
245 };
247
250 font.setEdging(edging);
253 }
254 }
void translate(SkScalar dx, SkScalar dy)
void drawString(const char str[], SkScalar x, SkScalar y, const SkFont &font, const SkPaint &paint)
@ kAntiAlias
may have transparent pixels on glyph edges
@ kAlias
no transparent pixels on glyph edges
@ kSubpixelAntiAlias
glyph positioned in pixel using transparency
font
Font Metadata and Metrics.
◆ getISize()
SkISize ImageFiltersTextBaseGM::getISize |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
◆ getName()
SkString ImageFiltersTextBaseGM::getName |
( |
| ) |
const |
|
inlineoverrideprotectedvirtual |
Implements skiagm::GM.
Definition at line 232 of file imagefiltersbase.cpp.
232 {
234 name.printf(
"%s_%s",
"textfilter", fSuffix.
c_str());
236 }
const char * c_str() const
DEF_SWITCHES_START aot vmservice shared library name
◆ installFilter()
virtual void ImageFiltersTextBaseGM::installFilter |
( |
SkPaint * |
paint | ) |
|
|
protectedpure virtual |
◆ onDraw()
void ImageFiltersTextBaseGM::onDraw |
( |
SkCanvas * |
canvas | ) |
|
|
inlineoverrideprotectedvirtual |
Reimplemented from skiagm::GM.
Definition at line 258 of file imagefiltersbase.cpp.
258 {
260
261 for (int doSaveLayer = 0; doSaveLayer <= 1; ++doSaveLayer) {
263 for (int useFilter = 0; useFilter <= 1; ++useFilter) {
265
267 if (useFilter) {
269 }
270 if (doSaveLayer) {
272 paint.setImageFilter(
nullptr);
273 }
275
276 acr2.restore();
278 }
279 acr.restore();
281 }
282 }
virtual void installFilter(SkPaint *paint)=0
void drawWaterfall(SkCanvas *canvas, const SkPaint &paint)
int saveLayer(const SkRect *bounds, const SkPaint *paint)
The documentation for this class was generated from the following file: