#include <SkPictureImageGenerator.h>
Definition at line 23 of file SkPictureImageGenerator.h.
◆ SkPictureImageGenerator()
Definition at line 63 of file SkPictureImageGenerator.cpp.
68 , fProps(props) {
69
72 } else {
74 }
75
78 }
79}
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
SkImageGenerator(const SkImageInfo &info, uint32_t uniqueId=kNeedNewImageUniqueID)
unsigned useCenter Optional< SkMatrix > matrix
sk_sp< const SkPicture > picture
◆ onGetPixels()
bool SkPictureImageGenerator::onGetPixels |
( |
const SkImageInfo & |
info, |
|
|
void * |
pixels, |
|
|
size_t |
rowBytes, |
|
|
const Options & |
opts |
|
) |
| |
|
overrideprotectedvirtual |
Reimplemented from SkImageGenerator.
Definition at line 81 of file SkPictureImageGenerator.cpp.
82 {
84 if (!canvas) {
85 return false;
86 }
87 canvas->clear(0);
88 canvas->drawPicture(fPicture, &fMatrix, fPaint.
getMaybeNull());
89 return true;
90}
static std::unique_ptr< SkCanvas > MakeRasterDirect(const SkImageInfo &info, void *pixels, size_t rowBytes, const SkSurfaceProps *props=nullptr)
const T * getMaybeNull() const
◆ SkImage_Picture
The documentation for this class was generated from the following files: