Flutter Engine
The Flutter Engine
|
#include <SkRecordedDrawable.h>
Public Member Functions | |
SkRecordedDrawable (sk_sp< SkRecord > record, sk_sp< SkBBoxHierarchy > bbh, std::unique_ptr< SkDrawableList > drawableList, const SkRect &bounds) | |
void | flatten (SkWriteBuffer &buffer) const override |
Public Member Functions inherited from SkDrawable | |
void | draw (SkCanvas *, const SkMatrix *=nullptr) |
void | draw (SkCanvas *, SkScalar x, SkScalar y) |
std::unique_ptr< GpuDrawHandler > | snapGpuDrawHandler (GrBackendApi backendApi, const SkMatrix &matrix, const SkIRect &clipBounds, const SkImageInfo &bufferInfo) |
sk_sp< SkPicture > | makePictureSnapshot () |
uint32_t | getGenerationID () |
SkRect | getBounds () |
size_t | approximateBytesUsed () |
void | notifyDrawingChanged () |
SkFlattenable::Type | getFlattenableType () const override |
Factory | getFactory () const override |
const char * | getTypeName () const override |
Public Member Functions inherited from SkFlattenable | |
SkFlattenable () | |
virtual Factory | getFactory () const =0 |
virtual const char * | getTypeName () const =0 |
virtual void | flatten (SkWriteBuffer &) const |
virtual Type | getFlattenableType () const =0 |
sk_sp< SkData > | serialize (const SkSerialProcs *=nullptr) const |
size_t | serialize (void *memory, size_t memory_size, const SkSerialProcs *=nullptr) const |
Public Member Functions inherited from SkRefCntBase | |
SkRefCntBase () | |
virtual | ~SkRefCntBase () |
bool | unique () const |
void | ref () const |
void | unref () const |
Protected Member Functions | |
SkRect | onGetBounds () override |
size_t | onApproximateBytesUsed () override |
void | onDraw (SkCanvas *canvas) override |
sk_sp< SkPicture > | onMakePictureSnapshot () override |
Protected Member Functions inherited from SkDrawable | |
SkDrawable () | |
virtual SkRect | onGetBounds ()=0 |
virtual size_t | onApproximateBytesUsed () |
virtual void | onDraw (SkCanvas *)=0 |
virtual std::unique_ptr< GpuDrawHandler > | onSnapGpuDrawHandler (GrBackendApi, const SkMatrix &, const SkIRect &, const SkImageInfo &) |
virtual std::unique_ptr< GpuDrawHandler > | onSnapGpuDrawHandler (GrBackendApi, const SkMatrix &) |
virtual sk_sp< SkPicture > | onMakePictureSnapshot () |
Additional Inherited Members | |
Public Types inherited from SkFlattenable | |
enum | Type { kSkColorFilter_Type , kSkBlender_Type , kSkDrawable_Type , kSkDrawLooper_Type , kSkImageFilter_Type , kSkMaskFilter_Type , kSkPathEffect_Type , kSkShader_Type } |
typedef sk_sp< SkFlattenable >(* | Factory) (SkReadBuffer &) |
Static Public Member Functions inherited from SkDrawable | |
static SkFlattenable::Type | GetFlattenableType () |
static sk_sp< SkDrawable > | Deserialize (const void *data, size_t size, const SkDeserialProcs *procs=nullptr) |
Static Public Member Functions inherited from SkFlattenable | |
static Factory | NameToFactory (const char name[]) |
static const char * | FactoryToName (Factory) |
static void | Register (const char name[], Factory) |
static sk_sp< SkFlattenable > | Deserialize (Type, const void *data, size_t length, const SkDeserialProcs *procs=nullptr) |
Definition at line 27 of file SkRecordedDrawable.h.
|
inline |
Definition at line 29 of file SkRecordedDrawable.h.
|
overridevirtual |
Override this if your subclass needs to record data that it will need to recreate itself from its CreateProc (returned by getFactory()).
DEPRECATED public : will move to protected ... use serialize() instead
Reimplemented from SkFlattenable.
Definition at line 60 of file SkRecordedDrawable.cpp.
|
overrideprotectedvirtual |
Reimplemented from SkDrawable.
Definition at line 23 of file SkRecordedDrawable.cpp.
|
overrideprotectedvirtual |
Implements SkDrawable.
Definition at line 36 of file SkRecordedDrawable.cpp.
|
inlineoverrideprotectedvirtual |
Default implementation calls onDraw() with a canvas that records into a picture. Subclasses may override if they have a more efficient way to return a picture for the current state of their drawable. Note: this picture must draw the same as what would be drawn from onDraw().
Reimplemented from SkDrawable.
Definition at line 46 of file SkRecordedDrawable.cpp.