Home
last modified time | relevance | path

Searched refs:hasStencilClip (Results 1 – 25 of 27) sorted by relevance

12

/external/skia/src/gpu/
DGrUserStencilSettings.h187 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()
[all …]
DGrStencilSettings.cpp27 void GrStencilSettings::reset(const GrUserStencilSettings& user, bool hasStencilClip, in reset() argument
29 uint16_t cwFlags = user.fCWFlags[hasStencilClip]; in reset()
31 SkASSERT(cwFlags == user.fCCWFlags[hasStencilClip]); in reset()
34 fCWFace.reset(user.fCWFace, hasStencilClip, numStencilBits); in reset()
39 uint16_t ccwFlags = user.fCCWFlags[hasStencilClip]; in reset()
45 fCWFace.reset(user.fCWFace, hasStencilClip, numStencilBits); in reset()
50 fCCWFace.reset(user.fCCWFace, hasStencilClip, numStencilBits); in reset()
171 void GrStencilSettings::Face::reset(const GrUserStencilSettings::Face& user, bool hasStencilClip, in reset() argument
200 if (!hasStencilClip || user.fTest > kLastClippedStencilTest) { in reset()
DGrStencilClip.h32 bool hasStencilClip() const { return SK_InvalidGenID != fStencilStackID; } in hasStencilClip() function
45 if (this->hasStencilClip()) { in apply()
53 if (this->hasStencilClip()) { in preApply()
DGrAppliedClip.h44 bool hasStencilClip() const { return SkClipStack::kInvalidGenID != fStencilStackID; } in hasStencilClip() function
75 return fScissorState.enabled() || this->hasStencilClip() || fWindowRectsState.enabled(); in doesClip()
110 bool hasStencilClip() const { return fHardClip.hasStencilClip(); } in hasStencilClip() function
DGrStencilSettings.h51 GrStencilSettings(const GrUserStencilSettings& user, bool hasStencilClip, int numStencilBits) { in GrStencilSettings() argument
52 this->reset(user, hasStencilClip, numStencilBits); in GrStencilSettings()
59 void reset(const GrUserStencilSettings&, bool hasStencilClip, int numStencilBits);
DGrProgramInfo.cpp16 stencil.reset(*fUserStencilSettings, this->pipeline().hasStencilClip(), 8); in nonGLStencilSettings()
DGrProgramInfo.h60 fPipeline->hasStencilClip(); in isStencilEnabled()
DGrPipeline.h179 bool hasStencilClip() const { in hasStencilClip() function
DGrPipeline.cpp23 if (hardClip.hasStencilClip()) { in GrPipeline()
DGrOpsRenderPass.cpp79 if (stencil->isTwoSided(programInfo.pipeline().hasStencilClip())) { in bindPipeline()
/external/skqp/src/gpu/
DGrUserStencilSettings.h185 uint16_t flags(bool hasStencilClip) const { in flags()
186 return fFrontFlags[hasStencilClip] & fBackFlags[hasStencilClip]; in flags()
188 bool isDisabled(bool hasStencilClip) const { in isDisabled()
189 return this->flags(hasStencilClip) & kDisabled_StencilFlag; in isDisabled()
191 bool isTwoSided(bool hasStencilClip) const { in isTwoSided()
192 return !(this->flags(hasStencilClip) & kSingleSided_StencilFlag); in isTwoSided()
194 bool usesWrapOp(bool hasStencilClip) const { in usesWrapOp()
195 return !(this->flags(hasStencilClip) & kNoWrapOps_StencilFlag); in usesWrapOp()
217 constexpr static bool TestAlwaysPasses(bool hasStencilClip) { in TestAlwaysPasses()
218 return (!hasStencilClip && GrUserStencilTest::kAlwaysIfInClip == Test) || in TestAlwaysPasses()
[all …]
DGrStencilClip.h30 bool hasStencilClip() const { return SK_InvalidGenID != fStencilStackID; } in hasStencilClip() function
34 return !this->hasStencilClip() && fFixedClip.quickContains(rect); in quickContains()
40 return !this->hasStencilClip() && fFixedClip.isRRect(rtBounds, rr, aa); in isRRect()
46 if (this->hasStencilClip()) { in apply()
DGrAppliedClip.h31 bool hasStencilClip() const { return SkClipStack::kInvalidGenID != fStencilStackID; } in hasStencilClip() function
58 return fScissorState.enabled() || this->hasStencilClip() || fWindowRectsState.enabled(); in doesClip()
86 bool hasStencilClip() const { return fHardClip.hasStencilClip(); } in hasStencilClip() function
DGrStencilSettings.cpp27 void GrStencilSettings::reset(const GrUserStencilSettings& user, bool hasStencilClip, in reset() argument
29 uint16_t frontFlags = user.fFrontFlags[hasStencilClip]; in reset()
31 SkASSERT(frontFlags == user.fBackFlags[hasStencilClip]); in reset()
34 fFront.reset(user.fFront, hasStencilClip, numStencilBits); in reset()
39 uint16_t backFlags = user.fBackFlags[hasStencilClip]; in reset()
45 fFront.reset(user.fFront, hasStencilClip, numStencilBits); in reset()
50 fBack.reset(user.fBack, hasStencilClip, numStencilBits); in reset()
171 void GrStencilSettings::Face::reset(const GrUserStencilSettings::Face& user, bool hasStencilClip, in reset() argument
200 if (!hasStencilClip || user.fTest > kLastClippedStencilTest) { in reset()
DGrStencilSettings.h51 GrStencilSettings(const GrUserStencilSettings& user, bool hasStencilClip, int numStencilBits) { in GrStencilSettings() argument
52 this->reset(user, hasStencilClip, numStencilBits); in GrStencilSettings()
59 void reset(const GrUserStencilSettings&, bool hasStencilClip, int numStencilBits);
DGrPipeline.cpp25 if (appliedClip.hasStencilClip()) { in GrPipeline()
DGrPipeline.h174 bool hasStencilClip() const { in hasStencilClip() function
DGrRenderTargetContext.cpp833 appliedClip.hasStencilClip(), in stencilPath()
1957 appliedClip.hasStencilClip()) { in addDrawOp()
/external/skqp/src/gpu/ops/
DGrStencilPathOp.h27 bool hasStencilClip,
48 bool hasStencilClip, in GrStencilPathOp() argument
55 , fHasStencilClip(hasStencilClip) in GrStencilPathOp()
DGrStencilPathOp.cpp21 bool hasStencilClip, in Make() argument
27 hasStencilClip, scissor, path); in Make()
DGrDrawPathOp.cpp59 bool stencilClip = appliedClip && appliedClip->hasStencilClip(); in init_stencil_pass_settings()
/external/skqp/src/gpu/vk/
DGrVkPipelineStateCache.cpp92 stencil.reset(*pipeline.getUserStencil(), pipeline.hasStencilClip(), in refPipelineState()
/external/skia/src/gpu/tessellate/
DGrPathInnerTriangulateOp.cpp124 } else if (!fPipelineForFills->hasStencilClip()) { in prePreparePrograms()
/external/skqp/src/gpu/mtl/
DGrMtlPipelineState.mm116 fStencil.reset(*pipeline.getUserStencil(), pipeline.hasStencilClip(),
/external/skia/tests/
DGrClipStackTest.cpp1900 REPORTER_ASSERT(r, !out.hardClip().hasStencilClip(), "Clip should not need stencil"); in DEF_TEST()

12