2D Graphics Library
SkFlattenable.h File Reference
#include "include/core/SkRefCnt.h"
#include "include/core/SkTypes.h"
#include <cstddef>
Include dependency graph for SkFlattenable.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


class  SkFlattenable
 SkFlattenable is the base class for objects that need to be flattened into a data stream for either transport or as part of the key to the font cache. More...
class  SkFlattenable::PrivateInitializer


#define SK_REGISTER_FLATTENABLE(type)    SkFlattenable::Register(#type, type::CreateProc)

Macro Definition Documentation


#define SK_FLATTENABLE_HOOKS (   type)
static sk_sp<SkFlattenable> CreateProc(SkReadBuffer&); \
Factory getFactory() const override { return type::CreateProc; } \
const char* getTypeName() const override { return #type; }
Definition: SkFlattenable.h:81
virtual const char * getTypeName() const =0
Returns the name of the object's class.
virtual Factory getFactory() const =0
Implement this to return a factory function pointer that can be called to recreate your class given a...
Shared pointer class to wrap classes that support a ref()/unref() interface.
Definition: SkRefCnt.h:220


#define SK_REGISTER_FLATTENABLE (   type)     SkFlattenable::Register(#type, type::CreateProc)