Definition at line 27 of file imagesource2.cpp.
◆ ImageSourceGM()
skiagm::ImageSourceGM::ImageSourceGM |
( |
const char * |
suffix, |
|
|
const SkSamplingOptions & |
sampling |
|
) |
| |
|
inline |
◆ getISize()
SkISize skiagm::ImageSourceGM::getISize |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
◆ getName()
SkString skiagm::ImageSourceGM::getName |
( |
| ) |
const |
|
inlineoverrideprotectedvirtual |
◆ onDraw()
void skiagm::ImageSourceGM::onDraw |
( |
SkCanvas * |
canvas | ) |
|
|
inlineoverrideprotectedvirtual |
Reimplemented from skiagm::GM.
Definition at line 73 of file imagesource2.cpp.
73 {
78
81
84 }
int saveLayer(const SkRect *bounds, const SkPaint *paint)
static sk_sp< SkImageFilter > Image(sk_sp< SkImage > image, const SkRect &srcRect, const SkRect &dstRect, const SkSamplingOptions &sampling)
static constexpr SkRect MakeLTRB(float l, float t, float r, float b)
◆ onOnceBeforeDraw()
void skiagm::ImageSourceGM::onOnceBeforeDraw |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
Reimplemented from skiagm::GM.
Definition at line 44 of file imagesource2.cpp.
44 {
53 };
54
57
58 int curColor = 0;
59
60 for (
int x = 0;
x < kImageSize;
x += 3) {
66
68 }
69
70 fImage =
surface->makeImageSnapshot();
71 }
constexpr SkColor SK_ColorYELLOW
constexpr SkColor SK_ColorMAGENTA
constexpr SkColor SK_ColorCYAN
constexpr SkColor SK_ColorGRAY
constexpr SkColor SK_ColorBLUE
constexpr SkColor SK_ColorRED
constexpr SkColor SK_ColorGREEN
constexpr SkColor SK_ColorWHITE
void drawRect(const SkRect &rect, const SkPaint &paint)
SK_API sk_sp< SkSurface > Raster(const SkImageInfo &imageInfo, size_t rowBytes, const SkSurfaceProps *surfaceProps)
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 SkColor gColors[]
static SkImageInfo MakeN32Premul(int width, int height)
static constexpr SkRect MakeXYWH(float x, float y, float w, float h)
The documentation for this class was generated from the following file: