Definition at line 69 of file image_pict.cpp.
◆ ImagePictGM()
ImagePictGM::ImagePictGM |
( |
| ) |
|
|
inline |
◆ drawSet()
void ImagePictGM::drawSet |
( |
SkCanvas * |
canvas | ) |
const |
|
inlineprotected |
Definition at line 102 of file image_pict.cpp.
102 {
107 }
void drawPicture(const SkPicture *picture)
void drawImage(const SkImage *image, SkScalar left, SkScalar top)
static SkMatrix Translate(SkScalar dx, SkScalar dy)
unsigned useCenter Optional< SkMatrix > matrix
◆ getISize()
|
inlineoverrideprotectedvirtual |
◆ getName()
|
inlineoverrideprotectedvirtual |
◆ onDraw()
void ImagePictGM::onDraw |
( |
SkCanvas * |
canvas | ) |
|
|
inlineoverrideprotectedvirtual |
Reimplemented from skiagm::GM.
Definition at line 109 of file image_pict.cpp.
109 {
111
113
116 canvas->
scale(0.25f, 0.25f);
119
125 }
void drawSet(SkCanvas *canvas) const
void translate(SkScalar dx, SkScalar dy)
void scale(SkScalar sx, SkScalar sy)
◆ onOnceBeforeDraw()
void ImagePictGM::onOnceBeforeDraw |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
Reimplemented from skiagm::GM.
Definition at line 81 of file image_pict.cpp.
81 {
86
87
90
92 matrix.setTranslate(-100, -100);
95 matrix.postTranslate(-50, -50);
97 matrix.postTranslate(50, 50);
100 }
static sk_sp< SkColorSpace > MakeSRGB()
SkCanvas * beginRecording(const SkRect &bounds, sk_sp< SkBBoxHierarchy > bbh)
sk_sp< SkPicture > finishRecordingAsPicture()
static void draw_something(SkCanvas *canvas, const SkRect &bounds)
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
Optional< SkRect > bounds
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 constexpr SkRect MakeXYWH(float x, float y, float w, float h)
The documentation for this class was generated from the following file: