Home
last modified time | relevance | path

Searched refs:GrOp (Results 1 – 25 of 159) sorted by relevance

1234567

/third_party/flutter/skia/src/gpu/ops/
DGrOp.cpp10 std::atomic<uint32_t> GrOp::gCurrOpClassID {GrOp::kIllegalOpID + 1};
11 std::atomic<uint32_t> GrOp::gCurrOpUniqueID{GrOp::kIllegalOpID + 1};
14 void* GrOp::operator new(size_t size) { in operator new()
20 void GrOp::operator delete(void* target) { in operator delete()
27 GrOp::GrOp(uint32_t classID) : fClassID(classID) { in GrOp() function in GrOp
33 GrOp::CombineResult GrOp::combineIfPossible(GrOp* that, const GrCaps& caps) { in combineIfPossible()
45 void GrOp::chainConcat(std::unique_ptr<GrOp> next) { in chainConcat()
54 std::unique_ptr<GrOp> GrOp::cutChain() { in cutChain()
63 void GrOp::validateChain(GrOp* expectedTail) const { in validateChain()
66 const GrOp* op = this; in validateChain()
DGrOp.h66 class GrOp : private SkNoncopyable {
68 virtual ~GrOp() = default;
98 CombineResult combineIfPossible(GrOp* that, const GrCaps& caps);
188 template <typename OpSubclass = GrOp> class ChainRange {
214 void chainConcat(std::unique_ptr<GrOp>);
220 GrOp* nextInChain() const { return fNextInChain.get(); } in nextInChain()
222 GrOp* prevInChain() const { return fPrevInChain; } in prevInChain()
227 std::unique_ptr<GrOp> cutChain();
228 SkDEBUGCODE(void validateChain(GrOp* expectedTail = nullptr) const);
239 GrOp(uint32_t classID);
[all …]
DGrSemaphoreOp.h19 class GrSemaphoreOp : public GrOp {
21 static std::unique_ptr<GrOp> MakeWait(GrRecordingContext*,
37 typedef GrOp INHERITED;
DGrDebugMarkerOp.h17 class GrDebugMarkerOp final : public GrOp {
21 static std::unique_ptr<GrOp> Make(GrRecordingContext*,
51 typedef GrOp INHERITED;
DGrDrawableOp.h19 class GrDrawableOp final : public GrOp {
40 CombineResult onCombineIfPossible(GrOp* that, const GrCaps& caps) override { in onCombineIfPossible()
49 typedef GrOp INHERITED;
/third_party/skia/src/gpu/ops/
DGrOp.cpp10 std::atomic<uint32_t> GrOp::gCurrOpClassID {GrOp::kIllegalOpID + 1};
11 std::atomic<uint32_t> GrOp::gCurrOpUniqueID{GrOp::kIllegalOpID + 1};
13 GrOp::GrOp(uint32_t classID) : fClassID(classID) { in GrOp() function in GrOp
19 GrOp::CombineResult GrOp::combineIfPossible(GrOp* that, SkArenaAlloc* alloc, const GrCaps& caps) { in combineIfPossible()
31 void GrOp::chainConcat(GrOp::Owner next) { in chainConcat()
40 GrOp::Owner GrOp::cutChain() { in cutChain()
49 void GrOp::validateChain(GrOp* expectedTail) const { in validateChain()
52 const GrOp* op = this; in validateChain()
DOpsTask.h76 void addOp(GrDrawingManager*, GrOp::Owner, GrTextureResolveManager, const GrCaps&);
78 void addDrawOp(GrDrawingManager*, GrOp::Owner, bool usesMSAA, const GrProcessorSet::Analysis&,
115 const GrOp* getChain(int index) const { return fOpChains[index].head(); } in getChain()
139 void recordOp(GrOp::Owner, bool usesMSAA, GrProcessorSet::Analysis, GrAppliedClip*,
164 OpChain(GrOp::Owner, GrProcessorSet::Analysis, GrAppliedClip*, const GrDstProxyView*);
177 GrOp* head() const { return fList.head(); } in head()
194 GrOp::Owner appendOp(GrOp::Owner op, GrProcessorSet::Analysis, const GrDstProxyView*,
206 List(GrOp::Owner);
211 GrOp* head() const { return fHead.get(); } in head()
212 GrOp* tail() const { return fTail; } in tail()
[all …]
DGrOp.h70 class GrOp : private SkNoncopyable {
72 using Owner = std::unique_ptr<GrOp>;
91 virtual ~GrOp() = default;
120 CombineResult combineIfPossible(GrOp* that, SkArenaAlloc* alloc, const GrCaps& caps);
212 template <typename OpSubclass = GrOp> class ChainRange {
238 void chainConcat(GrOp::Owner);
244 GrOp* nextInChain() const { return fNextInChain.get(); } in nextInChain()
246 GrOp* prevInChain() const { return fPrevInChain; } in prevInChain()
251 GrOp::Owner cutChain();
252 SkDEBUGCODE(void validateChain(GrOp* expectedTail = nullptr) const);
[all …]
DClearOp.cpp27 GrOp::Owner ClearOp::MakeColor(GrRecordingContext* context, in MakeColor()
30 return GrOp::Make<ClearOp>(context, Buffer::kColor, scissor, color, false); in MakeColor()
33 GrOp::Owner ClearOp::MakeStencilClip(GrRecordingContext* context, in MakeStencilClip()
36 return GrOp::Make<ClearOp>(context, in MakeStencilClip()
47 : GrOp(ClassID()) in ClearOp()
55 GrOp::CombineResult ClearOp::onCombineIfPossible(GrOp* t, SkArenaAlloc*, const GrCaps& caps) { in onCombineIfPossible()
DGrOvalOpFactory.h30 static GrOp::Owner MakeCircleOp(GrRecordingContext*,
37 static GrOp::Owner MakeOvalOp(GrRecordingContext*,
44 static GrOp::Owner MakeCircularRRectOp(GrRecordingContext*,
51 static GrOp::Owner MakeRRectOp(GrRecordingContext*,
58 static GrOp::Owner MakeArcOp(GrRecordingContext*,
DClearOp.h20 class ClearOp final : public GrOp {
25 static GrOp::Owner MakeColor(GrRecordingContext* context,
29 static GrOp::Owner MakeStencilClip(GrRecordingContext* context,
38 friend class GrOp; // for ctors
53 CombineResult onCombineIfPossible(GrOp* t, SkArenaAlloc*, const GrCaps& caps) override;
DOpsTask.cpp78 inline OpsTask::OpChain::List::List(GrOp::Owner op) in List()
93 inline GrOp::Owner OpsTask::OpChain::List::popHead() { in popHead()
104 inline GrOp::Owner OpsTask::OpChain::List::removeOp(GrOp* op) { in removeOp()
126 inline void OpsTask::OpChain::List::pushHead(GrOp::Owner op) { in pushHead()
139 inline void OpsTask::OpChain::List::pushTail(GrOp::Owner op) { in pushTail()
156 OpsTask::OpChain::OpChain(GrOp::Owner op, GrProcessorSet::Analysis processorAnalysis, in OpChain()
172 for (const auto& op : GrOp::ChainRange<>(fList.head())) { in visitProxies()
205 GrOp* origATail = chainA.tail(); in DoConcat()
214 GrOp* a = origATail; in DoConcat()
220 SkASSERT(result != GrOp::CombineResult::kCannotCombine); in DoConcat()
[all …]
DDrawableOp.h18 class DrawableOp final : public GrOp {
22 static GrOp::Owner Make(GrRecordingContext*,
29 friend class GrOp; // for ctor
33 CombineResult onCombineIfPossible(GrOp* that, SkArenaAlloc*, const GrCaps& caps) override { in onCombineIfPossible()
DGrSimpleMeshDrawOpHelper.h37 static GrOp::Owner FactoryHelper(GrRecordingContext*, GrPaint&&, OpArgs&&...);
198 GrOp::Owner GrOp::MakeWithProcessorSet( in MakeWithProcessorSet()
208 GrOp::Owner GrSimpleMeshDrawOpHelper::FactoryHelper(GrRecordingContext* context, in FactoryHelper()
213 return GrOp::Make<Op>(context, nullptr, color, std::forward<OpArgs>(opArgs)...); in FactoryHelper()
215 return GrOp::MakeWithProcessorSet<Op>( in FactoryHelper()
DDrawableOp.cpp19 GrOp::Owner DrawableOp::Make(GrRecordingContext* context, in Make()
22 return GrOp::Make<DrawableOp>(context, std::move(drawable), bounds); in Make()
27 : GrOp(ClassID()) in DrawableOp()
DTessellationPathRenderer.cpp28 GrOp::Owner make_non_convex_fill_op(GrRecordingContext* rContext, in make_non_convex_fill_op()
48 return GrOp::Make<skgpu::v1::PathInnerTriangulateOp>(rContext, in make_non_convex_fill_op()
57 return GrOp::Make<skgpu::v1::PathStencilCoverOp>(rContext, in make_non_convex_fill_op()
151 auto op = GrOp::Make<StrokeTessellateOp>(args.fContext, args.fAAType, *args.fViewMatrix, in onDrawPath()
168 auto op = GrOp::Make<PathTessellateOp>(args.fContext, in onDrawPath()
229 auto op = GrOp::Make<PathTessellateOp>(args.fContext, in onStencilPath()
DFillRectOp.h39 static GrOp::Owner Make(GrRecordingContext*,
49 static GrOp::Owner MakeNonAARect(GrRecordingContext*,
74 static GrOp::Owner MakeOp(GrRecordingContext*,
/third_party/flutter/skia/src/gpu/
DGrRenderTargetOpList.h64 void addOp(std::unique_ptr<GrOp> op, GrTextureResolveManager textureResolveManager, in addOp()
76 void addWaitOp(std::unique_ptr<GrOp> op, GrTextureResolveManager textureResolveManager, in addWaitOp()
118 SkDEBUGCODE(void visitProxies_debugOnly(const GrOp::VisitProxyFunc&) const;)
157 OpChain(std::unique_ptr<GrOp>, GrProcessorSet::Analysis, GrAppliedClip*, const DstProxy*);
164 void visitProxies(const GrOp::VisitProxyFunc&) const;
166 GrOp* head() const { return fList.head(); } in head()
183 std::unique_ptr<GrOp> appendOp(std::unique_ptr<GrOp> op, GrProcessorSet::Analysis,
191 List(std::unique_ptr<GrOp>);
196 GrOp* head() const { return fHead.get(); } in head()
197 GrOp* tail() const { return fTail; } in tail()
[all …]
DGrRenderTargetOpList.cpp44 inline GrRenderTargetOpList::OpChain::List::List(std::unique_ptr<GrOp> op) in List()
60 inline std::unique_ptr<GrOp> GrRenderTargetOpList::OpChain::List::popHead() { in popHead()
71 inline std::unique_ptr<GrOp> GrRenderTargetOpList::OpChain::List::removeOp(GrOp* op) { in removeOp()
93 inline void GrRenderTargetOpList::OpChain::List::pushHead(std::unique_ptr<GrOp> op) { in pushHead()
106 inline void GrRenderTargetOpList::OpChain::List::pushTail(std::unique_ptr<GrOp> op) { in pushTail()
123 GrRenderTargetOpList::OpChain::OpChain(std::unique_ptr<GrOp> op, in OpChain()
136 void GrRenderTargetOpList::OpChain::visitProxies(const GrOp::VisitProxyFunc& func) const { in visitProxies()
140 for (const auto& op : GrOp::ChainRange<>(fList.head())) { in visitProxies()
172 GrOp* origATail = chainA.tail(); in DoConcat()
181 GrOp* a = origATail; in DoConcat()
[all …]
DGrTextureOpList.h19 class GrOp; variable
67 void recordOp(std::unique_ptr<GrOp>);
70 SkSTArray<2, std::unique_ptr<GrOp>, true> fRecordedOps;
/third_party/skia/tests/
DOpChainTest.cpp50 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
[all …]
DTextureOpTest.cpp27 for (const auto& op : GrOp::ChainRange<>(chain->head())) { in check_chain()
52 static GrOp::Owner create_op(GrDirectContext* dContext, SkRect rect, in create_op()
104 GrOp::Owner opA = create_op(dContext, kOpARect, proxyViewA, false); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
105 GrOp::Owner opB = create_op(dContext, kOpBRect, proxyViewB, false); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
117 GrOp::Owner opC = create_op(dContext, kOpCRect, proxyViewC, true); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
118 GrOp::Owner opD = create_op(dContext, kOpDRect, proxyViewA, true); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
/third_party/flutter/skia/tests/
DOpChainTest.cpp47 using Combinable = std::array<GrOp::CombineResult, kNumCombinableValues>;
68 std::fill_n(combinable->begin(), kNumCombinableValues, GrOp::CombineResult::kCannotCombine); in init_combinable()
75 (*combinable)[combinable_index(i, j)] = GrOp::CombineResult::kMerged; in init_combinable()
77 (*combinable)[combinable_index(i, j)] = GrOp::CombineResult::kMayChain; in init_combinable()
80 (*combinable)[combinable_index(j, i)] = GrOp::CombineResult::kMerged; in init_combinable()
82 (*combinable)[combinable_index(j, i)] = GrOp::CombineResult::kMayChain; in init_combinable()
93 class TestOp : public GrOp {
133 CombineResult onCombineIfPossible(GrOp* t, const GrCaps&) override { in onCombineIfPossible()
138 if (result == GrOp::CombineResult::kMerged) { in onCombineIfPossible()
153 typedef GrOp INHERITED;
/third_party/skia/tools/gpu/
DTestOps.cpp87 static GrOp::Owner Make(GrRecordingContext*,
142 friend class ::GrOp;
145 GrOp::Owner TestRectOp::Make(GrRecordingContext* context, in Make()
151 return GrOp::Make<TestRectOp>(context, caps, std::move(paint), drawRect, localRect, localM); in Make()
226 GrOp::Owner MakeRect(GrRecordingContext* context, in MakeRect()
234 GrOp::Owner MakeRect(GrRecordingContext* context, in MakeRect()
244 GrOp::Owner MakeRect(GrRecordingContext* context, in MakeRect()
DTestOps.h26 GrOp::Owner MakeRect(GrRecordingContext*,
36 GrOp::Owner MakeRect(GrRecordingContext*,
46 GrOp::Owner MakeRect(GrRecordingContext*, GrPaint&&, const SkRect& rect);

1234567