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

Method Make

src/core/PixelBufferCodec.cpp:24–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22
23namespace tgfx {
24std::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
31bool PixelBufferCodec::onReadPixels(ColorType colorType, AlphaType alphaType, size_t dstRowBytes,
32 void* dstPixels) const {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected