8#ifndef skgpu_SingleOwner_DEFINED
9#define skgpu_SingleOwner_DEFINED
25#define SKGPU_ASSERT_SINGLE_OWNER(obj) \
26 skgpu::SingleOwner::AutoEnforce debug_SingleOwner(obj, __FILE__, __LINE__);
34 AutoEnforce(SingleOwner* so,
const char*
file,
int line)
35 : fFile(
file), fLine(
line), fSO(so) {
38 ~AutoEnforce() { fSO->exit(fFile, fLine); }
46 void enter(
const char*
file,
int line) {
59 if (fReentranceCount == 0) {
69#define SKGPU_ASSERT_SINGLE_OWNER(obj)
#define SkASSERTF(cond, fmt,...)
SkThreadID SkGetThreadID()
const SkThreadID kIllegalThreadID