Definition at line 109 of file image_shader.cpp.
◆ ImageShaderGM()
ImageShaderGM::ImageShaderGM |
( |
| ) |
|
|
inline |
◆ getISize()
SkISize ImageShaderGM::getISize |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
◆ getName()
SkString ImageShaderGM::getName |
( |
| ) |
const |
|
inlineoverrideprotectedvirtual |
◆ onDraw()
void ImageShaderGM::onDraw |
( |
SkCanvas * |
canvas | ) |
|
|
inlineoverrideprotectedvirtual |
Reimplemented from skiagm::GM.
Definition at line 141 of file image_shader.cpp.
141 {
143
145
150 }
152 }
153 }
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
void testImage(SkCanvas *canvas, SkImage *image)
void translate(SkScalar dx, SkScalar dy)
virtual GrRecordingContext * recordingContext() const
const ImageMakerProc gProcs[]
sk_sp< const SkImage > image
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
static SkImageInfo MakeN32Premul(int width, int height)
◆ onOnceBeforeDraw()
void ImageShaderGM::onOnceBeforeDraw |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
Reimplemented from skiagm::GM.
Definition at line 120 of file image_shader.cpp.
120 {
125 }
SkCanvas * beginRecording(const SkRect &bounds, sk_sp< SkBBoxHierarchy > bbh)
sk_sp< SkPicture > finishRecordingAsPicture()
static void draw_something(SkCanvas *canvas, const SkRect &bounds)
Optional< SkRect > bounds
static constexpr SkRect MakeWH(float w, float h)
◆ testImage()
Definition at line 127 of file image_shader.cpp.
127 {
129
132
137 paint.setAntiAlias(
true);
139 }
void drawImage(const SkImage *image, SkScalar left, SkScalar top)
void drawCircle(SkScalar cx, SkScalar cy, SkScalar radius, const SkPaint &paint)
sk_sp< SkShader > makeShader(SkTileMode tmx, SkTileMode tmy, const SkSamplingOptions &, const SkMatrix *localMatrix=nullptr) const
static SkMatrix Translate(SkScalar dx, SkScalar dy)
The documentation for this class was generated from the following file: