| 22 | |
| 23 | namespace tgfx { |
| 24 | std::shared_ptr<PixelBufferCodec> PixelBufferCodec::Make(std::shared_ptr<PixelBuffer> source) { |
| 25 | if (!source) { |
| 26 | return nullptr; |
| 27 | } |
| 28 | return std::make_shared<PixelBufferCodec>(std::move(source)); |
| 29 | } |
| 30 | |
| 31 | bool PixelBufferCodec::onReadPixels(ColorType colorType, AlphaType alphaType, size_t dstRowBytes, |
| 32 | void* dstPixels) const { |
nothing calls this directly
no outgoing calls
no test coverage detected