Flutter Engine
The Flutter Engine
Classes | Macros
SkFlattenable.h File Reference
#include "include/core/SkRefCnt.h"
#include "include/core/SkTypes.h"
#include <cstddef>

Go to the source code of this file.

Classes

class  SkFlattenable
 
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; }
GLenum type
virtual const char * getTypeName() const =0
virtual Factory getFactory() const =0

Definition at line 108 of file SkFlattenable.h.

◆ SK_REGISTER_FLATTENABLE

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

Definition at line 105 of file SkFlattenable.h.