Flutter Engine
The Flutter Engine
|
#include <SkBigPicture.h>
Classes | |
class | SnapshotArray |
Public Member Functions | |
SkBigPicture (const SkRect &cull, sk_sp< SkRecord >, std::unique_ptr< SnapshotArray >, sk_sp< SkBBoxHierarchy >, size_t approxBytesUsedBySubPictures) | |
void | playback (SkCanvas *, AbortCallback *) const override |
SkRect | cullRect () const override |
int | approximateOpCount (bool nested) const override |
size_t | approximateBytesUsed () const override |
const SkBigPicture * | asSkBigPicture () const override |
const SkBBoxHierarchy * | bbh () const |
const SkRecord * | record () const |
Public Member Functions inherited from SkPicture | |
~SkPicture () override | |
virtual void | playback (SkCanvas *canvas, AbortCallback *callback=nullptr) const =0 |
virtual SkRect | cullRect () const =0 |
uint32_t | uniqueID () const |
sk_sp< SkData > | serialize (const SkSerialProcs *procs=nullptr) const |
void | serialize (SkWStream *stream, const SkSerialProcs *procs=nullptr) const |
virtual int | approximateOpCount (bool nested=false) const =0 |
virtual size_t | approximateBytesUsed () const =0 |
sk_sp< SkShader > | makeShader (SkTileMode tmx, SkTileMode tmy, SkFilterMode mode, const SkMatrix *localMatrix, const SkRect *tileRect) const |
sk_sp< SkShader > | makeShader (SkTileMode tmx, SkTileMode tmy, SkFilterMode mode) const |
Public Member Functions inherited from SkRefCntBase | |
SkRefCntBase () | |
virtual | ~SkRefCntBase () |
bool | unique () const |
void | ref () const |
void | unref () const |
Additional Inherited Members | |
Static Public Member Functions inherited from SkPicture | |
static sk_sp< SkPicture > | MakeFromStream (SkStream *stream, const SkDeserialProcs *procs=nullptr) |
static sk_sp< SkPicture > | MakeFromData (const SkData *data, const SkDeserialProcs *procs=nullptr) |
static sk_sp< SkPicture > | MakeFromData (const void *data, size_t size, const SkDeserialProcs *procs=nullptr) |
static sk_sp< SkPicture > | MakePlaceholder (SkRect cull) |
Definition at line 27 of file SkBigPicture.h.
SkBigPicture::SkBigPicture | ( | const SkRect & | cull, |
sk_sp< SkRecord > | record, | ||
std::unique_ptr< SnapshotArray > | drawablePicts, | ||
sk_sp< SkBBoxHierarchy > | bbh, | ||
size_t | approxBytesUsedBySubPictures | ||
) |
Definition at line 19 of file SkBigPicture.cpp.
|
overridevirtual |
Returns the approximate byte size of SkPicture. Does not include large objects referenced by SkPicture.
example: https://fiddle.skia.org/c/@Picture_approximateBytesUsed
Implements SkPicture.
Definition at line 69 of file SkBigPicture.cpp.
|
overridevirtual |
Returns the approximate number of operations in SkPicture. Returned value may be greater or less than the number of SkCanvas calls recorded: some calls may be recorded as more than one operation, other calls may be optimized away.
nested | if true, include the op-counts of nested pictures as well, else just return count the ops in the top-level picture. |
example: https://fiddle.skia.org/c/@Picture_approximateOpCount
Implements SkPicture.
Definition at line 58 of file SkBigPicture.cpp.
|
inlineoverridevirtual |
|
inline |
Definition at line 57 of file SkBigPicture.h.
|
overridevirtual |
Returns cull SkRect for this picture, passed in when SkPicture was created. Returned SkRect does not specify clipping SkRect for SkPicture; cull is hint of SkPicture bounds.
SkPicture is free to discard recorded drawing commands that fall outside cull.
example: https://fiddle.skia.org/c/@Picture_cullRect
Implements SkPicture.
Definition at line 57 of file SkBigPicture.cpp.
|
overridevirtual |
Replays the drawing commands on the specified canvas. In the case that the commands are recorded, each command in the SkPicture is sent separately to canvas.
To add a single command to draw SkPicture to recording canvas, call SkCanvas::drawPicture instead.
canvas | receiver of drawing commands |
callback | allows interruption of playback |
example: https://fiddle.skia.org/c/@Picture_playback
Implements SkPicture.
Definition at line 31 of file SkBigPicture.cpp.
|
inline |
Definition at line 58 of file SkBigPicture.h.