Home
last modified time | relevance | path

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

12345

/external/skqp/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;
113 CombineResult combineIfPossible(GrOp* that, const GrCaps& caps);
203 template <typename OpSubclass = GrOp> class ChainRange {
229 void chainConcat(std::unique_ptr<GrOp>);
235 GrOp* nextInChain() const { return fNextInChain.get(); } in nextInChain()
237 GrOp* prevInChain() const { return fPrevInChain; } in prevInChain()
242 std::unique_ptr<GrOp> cutChain();
243 SkDEBUGCODE(void validateChain(GrOp* expectedTail = nullptr) const);
250 GrOp(uint32_t classID);
[all …]
DGrSemaphoreOp.h17 class GrSemaphoreOp : public GrOp {
19 static std::unique_ptr<GrOp> MakeWait(GrContext*,
34 typedef GrOp INHERITED;
DGrDebugMarkerOp.h16 class GrDebugMarkerOp final : public GrOp {
20 static std::unique_ptr<GrOp> Make(GrContext*,
50 typedef GrOp INHERITED;
DGrDrawableOp.h17 class GrDrawableOp final : public GrOp {
38 CombineResult onCombineIfPossible(GrOp* that, const GrCaps& caps) override { in onCombineIfPossible()
47 typedef GrOp INHERITED;
DGrClearStencilClipOp.h17 class GrClearStencilClipOp final : public GrOp {
21 static std::unique_ptr<GrOp> Make(GrContext* context,
64 typedef GrOp INHERITED;
DGrStencilPathOp.h19 class GrStencilPathOp final : public GrOp {
23 static std::unique_ptr<GrOp> Make(GrContext* context,
72 typedef GrOp INHERITED;
/external/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;
113 CombineResult combineIfPossible(GrOp* that, const GrCaps& caps);
203 template <typename OpSubclass = GrOp> class ChainRange {
229 void chainConcat(std::unique_ptr<GrOp>);
235 GrOp* nextInChain() const { return fNextInChain.get(); } in nextInChain()
237 GrOp* prevInChain() const { return fPrevInChain; } in prevInChain()
242 std::unique_ptr<GrOp> cutChain();
243 SkDEBUGCODE(void validateChain(GrOp* expectedTail = nullptr) const);
250 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;
DGrStencilPathOp.h19 class GrStencilPathOp final : public GrOp {
23 static std::unique_ptr<GrOp> Make(GrRecordingContext* context,
72 typedef GrOp INHERITED;
DGrClearStencilClipOp.h18 class GrClearStencilClipOp final : public GrOp {
22 static std::unique_ptr<GrOp> Make(GrRecordingContext* context,
65 typedef GrOp INHERITED;
/external/skia/src/gpu/
DGrRenderTargetOpList.h65 void addOp(std::unique_ptr<GrOp> op, const GrCaps& caps) { in addOp()
75 void addWaitOp(std::unique_ptr<GrOp> op, const GrCaps& caps) { in addWaitOp()
118 SkDEBUGCODE(void visitProxies_debugOnly(const GrOp::VisitProxyFunc&) const;)
150 OpChain(std::unique_ptr<GrOp>, GrProcessorSet::Analysis, GrAppliedClip*, const DstProxy*);
157 void visitProxies(const GrOp::VisitProxyFunc&, GrOp::VisitorType) const;
159 GrOp* head() const { return fList.head(); } in head()
176 std::unique_ptr<GrOp> appendOp(std::unique_ptr<GrOp> op, GrProcessorSet::Analysis,
184 List(std::unique_ptr<GrOp>);
189 GrOp* head() const { return fHead.get(); } in head()
190 GrOp* tail() const { return fTail; } in tail()
[all …]
DGrRenderTargetOpList.cpp41 inline GrRenderTargetOpList::OpChain::List::List(std::unique_ptr<GrOp> op) in List()
57 inline std::unique_ptr<GrOp> GrRenderTargetOpList::OpChain::List::popHead() { in popHead()
68 inline std::unique_ptr<GrOp> GrRenderTargetOpList::OpChain::List::removeOp(GrOp* op) { in removeOp()
90 inline void GrRenderTargetOpList::OpChain::List::pushHead(std::unique_ptr<GrOp> op) { in pushHead()
103 inline void GrRenderTargetOpList::OpChain::List::pushTail(std::unique_ptr<GrOp> op) { in pushTail()
120 GrRenderTargetOpList::OpChain::OpChain(std::unique_ptr<GrOp> op, in OpChain()
133 void GrRenderTargetOpList::OpChain::visitProxies(const GrOp::VisitProxyFunc& func, in visitProxies()
134 GrOp::VisitorType visitor) const { in visitProxies()
138 for (const auto& op : GrOp::ChainRange<>(fList.head())) { in visitProxies()
170 GrOp* origATail = chainA.tail(); in DoConcat()
[all …]
DGrTextureOpList.h19 class GrOp; variable
69 void recordOp(std::unique_ptr<GrOp>);
72 SkSTArray<2, std::unique_ptr<GrOp>, true> fRecordedOps;
DGrTextureOpList.cpp148 std::unique_ptr<GrOp> op = GrCopySurfaceOp::Make(context, dst, src, srcRect, dstPoint); in copySurface()
171 const GrOp* op = fRecordedOps[i].get(); // only diff from the GrRenderTargetOpList version in purgeOpsWithUninstantiatedProxies()
201 const GrOp* op = fRecordedOps[i].get(); // only diff from the GrRenderTargetOpList version in gatherProxyIntervals()
203 op->visitProxies(gather, GrOp::VisitorType::kAllocatorGather); in gatherProxyIntervals()
212 void GrTextureOpList::recordOp(std::unique_ptr<GrOp> op) { in recordOp()
/external/skqp/src/gpu/
DGrRenderTargetOpList.h65 void addOp(std::unique_ptr<GrOp> op, const GrCaps& caps) { in addOp()
113 SkDEBUGCODE(void visitProxies_debugOnly(const GrOp::VisitProxyFunc&) const;)
145 OpChain(std::unique_ptr<GrOp>, GrProcessorSet::Analysis, GrAppliedClip*, const DstProxy*);
152 void visitProxies(const GrOp::VisitProxyFunc&, GrOp::VisitorType) const;
154 GrOp* head() const { return fList.head(); } in head()
171 std::unique_ptr<GrOp> appendOp(std::unique_ptr<GrOp> op, GrProcessorSet::Analysis,
179 List(std::unique_ptr<GrOp>);
184 GrOp* head() const { return fHead.get(); } in head()
185 GrOp* tail() const { return fTail; } in tail()
187 std::unique_ptr<GrOp> popHead();
[all …]
DGrRenderTargetOpList.cpp39 inline GrRenderTargetOpList::OpChain::List::List(std::unique_ptr<GrOp> op) in List()
55 inline std::unique_ptr<GrOp> GrRenderTargetOpList::OpChain::List::popHead() { in popHead()
66 inline std::unique_ptr<GrOp> GrRenderTargetOpList::OpChain::List::removeOp(GrOp* op) { in removeOp()
88 inline void GrRenderTargetOpList::OpChain::List::pushHead(std::unique_ptr<GrOp> op) { in pushHead()
101 inline void GrRenderTargetOpList::OpChain::List::pushTail(std::unique_ptr<GrOp> op) { in pushTail()
118 GrRenderTargetOpList::OpChain::OpChain(std::unique_ptr<GrOp> op, in OpChain()
131 void GrRenderTargetOpList::OpChain::visitProxies(const GrOp::VisitProxyFunc& func, in visitProxies()
132 GrOp::VisitorType visitor) const { in visitProxies()
136 for (const auto& op : GrOp::ChainRange<>(fList.head())) { in visitProxies()
168 GrOp* origATail = chainA.tail(); in DoConcat()
[all …]
DGrTextureOpList.h19 class GrOp; variable
69 void recordOp(std::unique_ptr<GrOp>);
72 SkSTArray<2, std::unique_ptr<GrOp>, true> fRecordedOps;
/external/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;
/external/skqp/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;
/external/skia/include/private/
DGrAuditTrail.h19 class GrOp; variable
85 void addOp(const GrOp*, GrRenderTargetProxy::UniqueID proxyID);
87 void opsCombined(const GrOp* consumer, const GrOp* consumed);
/external/skqp/include/private/
DGrAuditTrail.h19 class GrOp; variable
85 void addOp(const GrOp*, GrRenderTargetProxy::UniqueID proxyID);
87 void opsCombined(const GrOp* consumer, const GrOp* consumed);

12345