Lines Matching refs:cpe
98 const GrConvexPolyEffect& cpe = args.fFp.cast<GrConvexPolyEffect>(); in onMakeProgramImpl() local
102 GlobalVar edgeArray(kUniform_Modifier, Array(kHalf3_Type, cpe.fEdgeCount), "edgeArray"); in onMakeProgramImpl()
109 for (int i = 0; i < cpe.fEdgeCount; ++i) { in onMakeProgramImpl()
111 if (GrClipEdgeTypeIsAA(cpe.fEdgeType)) { in onMakeProgramImpl()
119 if (GrClipEdgeTypeIsInverseFill(cpe.fEdgeType)) { in onMakeProgramImpl()
130 const GrConvexPolyEffect& cpe = fp.cast<GrConvexPolyEffect>(); in onMakeProgramImpl() local
131 size_t n = 3*cpe.fEdgeCount; in onMakeProgramImpl()
132 if (!std::equal(fPrevEdges.begin(), fPrevEdges.begin() + n, cpe.fEdges.begin())) { in onMakeProgramImpl()
133 pdman.set3fv(fEdgeUniform, cpe.fEdgeCount, cpe.fEdges.data()); in onMakeProgramImpl()
134 std::copy_n(cpe.fEdges.begin(), n, fPrevEdges.begin()); in onMakeProgramImpl()
178 const GrConvexPolyEffect& cpe = other.cast<GrConvexPolyEffect>(); in onIsEqual() local
179 int n = 3*cpe.fEdgeCount; in onIsEqual()
180 return cpe.fEdgeType == fEdgeType && in onIsEqual()
181 cpe.fEdgeCount == fEdgeCount && in onIsEqual()
182 std::equal(cpe.fEdges.begin(), cpe.fEdges.begin() + n, fEdges.begin()); in onIsEqual()