MCPcopy Create free account
hub / github.com/Tencent/tgfx / AtlasTextOp

Method AtlasTextOp

src/gpu/ops/AtlasTextOp.cpp:53–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53AtlasTextOp::AtlasTextOp(RectsVertexProvider* provider, std::shared_ptr<TextureProxy> textureProxy,
54 const SamplingOptions& sampling)
55 : DrawOp(provider->aaType()), rectCount(provider->rectCount()),
56 textureProxy(std::move(textureProxy)), sampling(sampling) {
57 if (!provider->hasColor()) {
58 commonColor = provider->firstColor();
59 }
60}
61
62PlacementPtr<GeometryProcessor> AtlasTextOp::onMakeGeometryProcessor(RenderTarget* renderTarget) {
63 OPERATE_MARK(tgfx::inspect::OpTaskType::RRectDrawOp);

Callers

nothing calls this directly

Calls 3

aaTypeMethod · 0.45
rectCountMethod · 0.45
hasColorMethod · 0.45

Tested by

no test coverage detected