8#ifndef GrResourceHandle_DEFINED
9#define GrResourceHandle_DEFINED
24 bool isValid()
const {
return kInvalid_ResourceHandle != fValue; }
28 static const int kInvalid_ResourceHandle = -1;
33#define GR_DEFINE_RESOURCE_HANDLE_CLASS(name) \
34 struct name##Kind {}; \
35 using name = GrResourceHandle<name##Kind>;
GrResourceHandle(int value)
bool operator==(const GrResourceHandle &other) const