Lines Matching refs:cpe
41 const GrConvexPolyEffect& cpe = args.fFp.cast<GrConvexPolyEffect>(); in emitCode() local
45 Var edgeArray(kUniform_Modifier, Array(kHalf3_Type, cpe.getEdgeCount()), "edgeArray"); in emitCode()
52 for (int i = 0; i < cpe.getEdgeCount(); ++i) { in emitCode()
54 if (GrProcessorEdgeTypeIsAA(cpe.getEdgeType())) { in emitCode()
62 if (GrProcessorEdgeTypeIsInverseFill(cpe.getEdgeType())) { in emitCode()
72 const GrConvexPolyEffect& cpe = effect.cast<GrConvexPolyEffect>(); in onSetData() local
73 size_t byteSize = 3 * cpe.getEdgeCount() * sizeof(SkScalar); in onSetData()
74 if (0 != memcmp(fPrevEdges, cpe.getEdges(), byteSize)) { in onSetData()
75 pdman.set3fv(fEdgeUniform, cpe.getEdgeCount(), cpe.getEdges()); in onSetData()
76 memcpy(fPrevEdges, cpe.getEdges(), byteSize); in onSetData()
82 const GrConvexPolyEffect& cpe = processor.cast<GrConvexPolyEffect>(); in GenKey() local
84 uint32_t key = (cpe.getEdgeCount() << 3) | (int) cpe.getEdgeType(); in GenKey()
205 const GrConvexPolyEffect& cpe = other.cast<GrConvexPolyEffect>(); in onIsEqual() local
207 return (cpe.fEdgeType == fEdgeType && cpe.fEdgeCount == fEdgeCount && in onIsEqual()
208 0 == memcmp(cpe.fEdges, fEdges, 3 * fEdgeCount * sizeof(SkScalar))); in onIsEqual()