Lines Matching refs:GrOp
50 using Combinable = std::array<GrOp::CombineResult, kNumCombinableValues>;
71 std::fill_n(combinable->begin(), kNumCombinableValues, GrOp::CombineResult::kCannotCombine); in init_combinable()
78 (*combinable)[combinable_index(i, j)] = GrOp::CombineResult::kMerged; in init_combinable()
80 (*combinable)[combinable_index(i, j)] = GrOp::CombineResult::kMayChain; in init_combinable()
83 (*combinable)[combinable_index(j, i)] = GrOp::CombineResult::kMerged; in init_combinable()
85 (*combinable)[combinable_index(j, i)] = GrOp::CombineResult::kMayChain; in init_combinable()
96 class TestOp : public GrOp {
100 static GrOp::Owner Make(GrRecordingContext* context, int value, const Range& range, in Make()
102 return GrOp::Make<TestOp>(context, value, range, result, combinable); in Make()
118 friend class ::GrOp; // for ctor
142 CombineResult onCombineIfPossible(GrOp* t, SkArenaAlloc* arenas, const GrCaps&) override { in onCombineIfPossible()
150 if (result == GrOp::CombineResult::kMerged) { in onCombineIfPossible()
165 using INHERITED = GrOp;