Lines Matching refs:hasStencilClip
187 uint16_t flags(bool hasStencilClip) const { in flags()
188 return fCWFlags[hasStencilClip] & fCCWFlags[hasStencilClip]; in flags()
190 bool isDisabled(bool hasStencilClip) const { in isDisabled()
191 return this->flags(hasStencilClip) & kDisabled_StencilFlag; in isDisabled()
193 bool testAlwaysPasses(bool hasStencilClip) const { in testAlwaysPasses()
194 return this->flags(hasStencilClip) & kTestAlwaysPasses_StencilFlag; in testAlwaysPasses()
196 bool isTwoSided(bool hasStencilClip) const { in isTwoSided()
197 return !(this->flags(hasStencilClip) & kSingleSided_StencilFlag); in isTwoSided()
199 bool usesWrapOp(bool hasStencilClip) const { in usesWrapOp()
200 return !(this->flags(hasStencilClip) & kNoWrapOps_StencilFlag); in usesWrapOp()
222 constexpr static bool TestAlwaysPasses(bool hasStencilClip) { in TestAlwaysPasses()
223 return (!hasStencilClip && GrUserStencilTest::kAlwaysIfInClip == Test) || in TestAlwaysPasses()
226 constexpr static bool DoesNotModifyStencil(bool hasStencilClip) { in DoesNotModifyStencil()
228 (TestAlwaysPasses(hasStencilClip) || GrUserStencilOp::kKeep == FailOp); in DoesNotModifyStencil()
230 constexpr static bool IsDisabled(bool hasStencilClip) { in IsDisabled()
231 return TestAlwaysPasses(hasStencilClip) && DoesNotModifyStencil(hasStencilClip); in IsDisabled()
241 constexpr static uint16_t Flags(bool hasStencilClip) { in Flags()
242 return (IsDisabled(hasStencilClip) ? kDisabled_StencilFlag : 0) | in Flags()
243 (TestAlwaysPasses(hasStencilClip) ? kTestAlwaysPasses_StencilFlag : 0) | in Flags()
244 (DoesNotModifyStencil(hasStencilClip) ? kNoModifyStencil_StencilFlag : 0) | in Flags()