Skia
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.

Classes

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
 

Macros

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

Macro Definition Documentation

◆ SK_FLATTENABLE_HOOKS

#define SK_FLATTENABLE_HOOKS (   type)
Value:
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...

◆ SK_REGISTER_FLATTENABLE

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