Go to the source code of this file.
|
| REG_FIDDLE (Picture_MakeFromStream, 256, 256, false, 0) |
|
◆ REG_FIDDLE()
REG_FIDDLE |
( |
Picture_MakeFromStream |
, |
|
|
256 |
, |
|
|
256 |
, |
|
|
false |
, |
|
|
0 |
|
|
) |
| |
Definition at line 4 of file Picture_MakeFromStream.cpp.
4 {
15 std::unique_ptr<SkStreamAsset> readableStream = writableStream.
detachAsStream();
17 copy->playback(canvas);
18}
19}
constexpr SkColor SK_ColorWHITE
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
void drawRect(const SkRect &rect, const SkPaint &paint)
std::unique_ptr< SkStreamAsset > detachAsStream()
SkCanvas * beginRecording(const SkRect &bounds, sk_sp< SkBBoxHierarchy > bbh)
sk_sp< SkPicture > finishRecordingAsPicture()
sk_sp< SkData > serialize(const SkSerialProcs *procs=nullptr) const
static sk_sp< SkPicture > MakeFromStream(SkStream *stream, const SkDeserialProcs *procs=nullptr)
sk_sp< const SkPicture > picture
static constexpr SkRect MakeWH(float w, float h)
static constexpr SkRect MakeLTRB(float l, float t, float r, float b)