8#ifndef skgpu_RefCntedCallback_DEFINED
9#define skgpu_RefCntedCallback_DEFINED
41 fReleaseProc(fReleaseCtx);
44 fResultReleaseProc(fReleaseCtx, fResult);
60 : fResultReleaseProc(proc), fReleaseCtx(ctx) {}
61 RefCntedCallback(
const RefCntedCallback&) =
delete;
62 RefCntedCallback(RefCntedCallback&&) =
delete;
63 RefCntedCallback& operator=(
const RefCntedCallback&) =
delete;
64 RefCntedCallback& operator=(RefCntedCallback&&) =
delete;
void(*)(Context, CallbackResult) ResultCallback
static sk_sp< RefCntedCallback > Make(Callback proc, Context ctx)
static sk_sp< RefCntedCallback > Make(ResultCallback proc, Context ctx)
void(*)(Context) Callback