Lines Matching defs:stream
43 std::unique_ptr<SkCodec> SkWebpCodec::MakeFromStream(std::unique_ptr<SkStream> stream,
47 if (stream->getMemoryBase()) {
48 // It is safe to make without copy because we'll hold onto the stream.
49 data = SkData::MakeWithoutCopy(stream->getMemoryBase(), stream->getLength());
51 data = SkCopyStreamToData(stream.get());
53 // If we are forced to copy the stream to a data, we can go ahead and delete the stream.
54 stream.reset(nullptr);
174 return std::unique_ptr<SkCodec>(new SkWebpCodec(std::move(info), std::move(stream),
550 SkWebpCodec::SkWebpCodec(SkEncodedInfo&& info, std::unique_ptr<SkStream> stream,
552 : INHERITED(std::move(info), skcms_PixelFormat_BGRA_8888, std::move(stream),