Definition at line 155 of file filterfastbounds.cpp.
◆ ImageFilterFastBoundGM()
skiagm::ImageFilterFastBoundGM::ImageFilterFastBoundGM |
( |
| ) |
|
|
inline |
◆ draw_geom_with_paint()
Definition at line 174 of file filterfastbounds.cpp.
175 {
179
183
186
189 canvas->
scale(1.5f, 1.5f);
190
191 const SkRect& fastBound =
p.computeFastBounds(r, &storage);
192
195 (*draw)(canvas, r,
p);
196 canvas->restore();
197
198 canvas->drawRect(r, redStroked);
199 canvas->drawRect(fastBound, blueStroked);
200 canvas->restore();
201 }
constexpr SkColor SK_ColorBLUE
constexpr SkColor SK_ColorRED
void clipRect(const SkRect &rect, SkClipOp op, bool doAntiAlias)
void translate(SkScalar dx, SkScalar dy)
void scale(SkScalar sx, SkScalar sy)
void setStyle(Style style)
void setColor(SkColor color)
@ kStroke_Style
set to stroke geometry
static constexpr SkRect MakeLTRB(float l, float t, float r, float b)
◆ draw_savelayer_with_paint()
static void skiagm::ImageFilterFastBoundGM::draw_savelayer_with_paint |
( |
const SkIPoint & |
off, |
|
|
SkCanvas * |
canvas, |
|
|
const SkPaint & |
p |
|
) |
| |
|
inlinestaticprotected |
Definition at line 203 of file filterfastbounds.cpp.
205 {
209
213
216
220 canvas->
scale(1.5f, 1.5f);
221
222 const SkRect& fastBound =
p.computeFastBounds(
bounds, &storage);
223
226
228 canvas->
drawRect(fastBound, blueStroked);
230 }
int saveLayer(const SkRect *bounds, const SkPaint *paint)
void drawRect(const SkRect &rect, const SkPaint &paint)
Optional< SkRect > bounds
static constexpr SkRect MakeWH(float w, float h)
◆ getISize()
SkISize skiagm::ImageFilterFastBoundGM::getISize |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
Implements skiagm::GM.
Definition at line 169 of file filterfastbounds.cpp.
169 {
172 }
static constexpr int kTileWidth
static constexpr int kNumXtraCols
static constexpr int kNumVertTiles
static constexpr int kTileHeight
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
constexpr drawMth gDrawMthds[]
static constexpr SkISize Make(int32_t w, int32_t h)
◆ getName()
SkString skiagm::ImageFilterFastBoundGM::getName |
( |
| ) |
const |
|
inlineoverrideprotectedvirtual |
◆ onDraw()
void skiagm::ImageFilterFastBoundGM::onDraw |
( |
SkCanvas * |
canvas | ) |
|
|
inlineoverrideprotectedvirtual |
Reimplemented from skiagm::GM.
Definition at line 232 of file filterfastbounds.cpp.
232 {
233
235
236
237
240
241
242
244
245 {
247
251 }
252
255
256
257
258
260 {
268 }
269
275
276
280
281
282 for (
int i = 1;
i < paints.
size(); ++
i) {
287 blackFill);
288 }
289
292 0,
295 blackFill);
296 }
297
298
299 for (
int i = 0;
i < pifPaints.
size(); ++
i) {
301 canvas, pifPaints[
i]);
302 }
303
304
305 for (
int i = 0;
i < pifPaints.
size(); ++
i) {
307 canvas, bmsPaints[
i]);
308 }
309
310
312 for (
int j = 0; j < paints.
size(); ++j) {
315 canvas, paints[j]);
316 }
317 }
318
319 }
constexpr SkColor SK_ColorYELLOW
constexpr SkColor SK_ColorGREEN
void drawLine(SkScalar x0, SkScalar y0, SkScalar x1, SkScalar y1, const SkPaint &paint)
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 > Picture(sk_sp< SkPicture > pic, const SkRect &targetRect)
SkCanvas * beginRecording(const SkRect &bounds, sk_sp< SkBBoxHierarchy > bbh)
sk_sp< SkPicture > finishRecordingAsPicture()
static void draw_savelayer_with_paint(const SkIPoint &off, SkCanvas *canvas, const SkPaint &p)
static void draw_geom_with_paint(drawMth draw, const SkIPoint &off, SkCanvas *canvas, const SkPaint &p)
sk_sp< const SkImage > image
SK_API sk_sp< SkSurface > Raster(const SkImageInfo &imageInfo, size_t rowBytes, const SkSurfaceProps *surfaceProps)
static void create_paints(TArray< SkPaint > *paints, sk_sp< SkImageFilter > source)
static constexpr SkIPoint Make(int32_t x, int32_t y)
static SkImageInfo MakeN32Premul(int width, int height)
◆ kNumVertTiles
constexpr int skiagm::ImageFilterFastBoundGM::kNumVertTiles = 7 |
|
inlinestaticconstexprprotected |
◆ kNumXtraCols
constexpr int skiagm::ImageFilterFastBoundGM::kNumXtraCols = 2 |
|
inlinestaticconstexprprotected |
◆ kTileHeight
constexpr int skiagm::ImageFilterFastBoundGM::kTileHeight = 100 |
|
inlinestaticconstexprprotected |
◆ kTileWidth
constexpr int skiagm::ImageFilterFastBoundGM::kTileWidth = 100 |
|
inlinestaticconstexprprotected |
The documentation for this class was generated from the following file: