SkAndroidCodec* SkAndroidCodec::NewFromData(SkData* data, SkPngChunkReader* chunkReader) { if (!data) { return nullptr; } return NewFromStream(new SkMemoryStream(data), chunkReader); }
SkCodec* SkCodec::NewFromData(SkData* data) { if (!data) { return NULL; } return NewFromStream(new SkMemoryStream(data)); }
SkCodec* SkScaledCodec::NewFromData(SkData* data) { if (!data) { return NULL; } return NewFromStream(SkNEW_ARGS(SkMemoryStream, (data))); }
SkCodec* SkScaledCodec::NewFromData(SkData* data) { if (!data) { return nullptr; } return NewFromStream(new SkMemoryStream(data)); }