33 constexpr int value()
const {
return fValue; }
42#define GR_MAKE_BITFIELD_CLASS_OPS(X) \
43 [[maybe_unused]] constexpr GrTFlagsMask<X> operator~(X a) { \
44 return GrTFlagsMask<X>(~static_cast<int>(a)); \
46 [[maybe_unused]] constexpr X operator|(X a, X b) { \
47 return static_cast<X>(static_cast<int>(a) | static_cast<int>(b)); \
49 [[maybe_unused]] inline X& operator|=(X& a, X b) { \
52 [[maybe_unused]] constexpr bool operator&(X a, X b) { \
53 return SkToBool(static_cast<int>(a) & static_cast<int>(b)); \
55 [[maybe_unused]] constexpr GrTFlagsMask<X> operator|(GrTFlagsMask<X> a, GrTFlagsMask<X> b) { \
56 return GrTFlagsMask<X>(a.value() | b.value()); \
58 [[maybe_unused]] constexpr GrTFlagsMask<X> operator|(GrTFlagsMask<X> a, X b) { \
59 return GrTFlagsMask<X>(a.value() | static_cast<int>(b)); \
61 [[maybe_unused]] constexpr GrTFlagsMask<X> operator|(X a, GrTFlagsMask<X> b) { \
62 return GrTFlagsMask<X>(static_cast<int>(a) | b.value()); \
64 [[maybe_unused]] constexpr X operator&(GrTFlagsMask<X> a, GrTFlagsMask<X> b) { \
65 return static_cast<X>(a.value() & b.value()); \
67 [[maybe_unused]] constexpr X operator&(GrTFlagsMask<X> a, X b) { \
68 return static_cast<X>(a.value() & static_cast<int>(b)); \
70 [[maybe_unused]] constexpr X operator&(X a, GrTFlagsMask<X> b) { \
71 return static_cast<X>(static_cast<int>(a) & b.value()); \
73 [[maybe_unused]] inline X& operator&=(X& a, GrTFlagsMask<X> b) { \
77#define GR_DECL_BITFIELD_CLASS_OPS_FRIENDS(X) \
78 friend constexpr GrTFlagsMask<X> operator ~(X); \
79 friend constexpr X operator |(X, X); \
80 friend X& operator |=(X&, X); \
81 friend constexpr bool operator &(X, X); \
82 friend constexpr GrTFlagsMask<X> operator|(GrTFlagsMask<X>, GrTFlagsMask<X>); \
83 friend constexpr GrTFlagsMask<X> operator|(GrTFlagsMask<X>, X); \
84 friend constexpr GrTFlagsMask<X> operator|(X, GrTFlagsMask<X>); \
85 friend constexpr X operator&(GrTFlagsMask<X>, GrTFlagsMask<X>); \
86 friend constexpr X operator&(GrTFlagsMask<X>, X); \
87 friend constexpr X operator&(X, GrTFlagsMask<X>); \
88 friend X& operator &=(X&, GrTFlagsMask<X>)
@ kBottomLeft_GrSurfaceOrigin
@ kTopLeft_GrSurfaceOrigin
static const uint32_t kAll_GrBackendState
static constexpr GrBackendApi kVulkan_GrBackend
static constexpr GrBackendApi kMock_GrBackend
void * GrDirectContextDestroyedContext
void * GrGpuSubmittedContext
void * GrGpuFinishedContext
void(* GrGpuSubmittedProc)(GrGpuSubmittedContext submittedContext, bool success)
void(* GrDirectContextDestroyedProc)(GrDirectContextDestroyedContext destroyedContext)
void(* GrGpuFinishedProc)(GrGpuFinishedContext finishedContext)
@ kProgram_GrGLBackendState
@ kTextureBinding_GrGLBackendState
@ kVertex_GrGLBackendState
@ kBlend_GrGLBackendState
@ kMSAAEnable_GrGLBackendState
@ kFixedFunction_GrGLBackendState
@ kPixelStore_GrGLBackendState
@ kStencil_GrGLBackendState
@ kRenderTarget_GrGLBackendState
static constexpr GrBackendApi kMetal_GrBackend
@ kYes
Do pre-clip the geometry before applying the (perspective) matrix.
@ kNo
Don't pre-clip the geometry before applying the (perspective) matrix.
constexpr GrTFlagsMask(TFlags value)
constexpr GrTFlagsMask(int value)
constexpr int value() const
GrGpuFinishedContext fFinishedContext
GrBackendSemaphore * fSignalSemaphores
GrGpuFinishedProc fFinishedProc
GrGpuSubmittedContext fSubmittedContext
GrGpuSubmittedProc fSubmittedProc