| 51 | } |
| 52 | |
| 53 | AtlasTextOp::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 | |
| 62 | PlacementPtr<GeometryProcessor> AtlasTextOp::onMakeGeometryProcessor(RenderTarget* renderTarget) { |
| 63 | OPERATE_MARK(tgfx::inspect::OpTaskType::RRectDrawOp); |