8#ifndef SkRasterPipelineContextUtils_DEFINED
9#define SkRasterPipelineContextUtils_DEFINED
30 if constexpr (
sizeof(
T) <=
sizeof(
void*)) {
31 return sk_bit_cast<void*>(ctx);
33 return alloc->
make<
T>(ctx);
46 if constexpr (
sizeof(
T) <=
sizeof(
void*)) {
47 return sk_bit_cast<T>(ctx);
auto make(Ctor &&ctor) -> decltype(ctor(nullptr))
static void * Pack(const T &ctx, SkArenaAlloc *alloc)
typename std::conditional< sizeof(T)<=sizeof(void *), T, const T & >::type UnpackedType
static UnpackedType< T > Unpack(const T *ctx)