Lines Matching defs:stream
20 * Checks the start of the stream to see if the image is an Ico or Cur
30 std::unique_ptr<SkCodec> SkIcoCodec::MakeFromStream(std::unique_ptr<SkStream> stream,
32 // It is helpful to have the entire stream in a contiguous buffer. In some cases,
35 // byte size is stored in the stream as a uint32_t, and may result in a large or
38 if (stream->getMemoryBase()) {
39 // It is safe to make without copy because we'll hold onto the stream.
40 data = SkData::MakeWithoutCopy(stream->getMemoryBase(), stream->getLength());
42 data = SkCopyStreamToData(stream.get());
44 // If we are forced to copy the stream to a data, we can go ahead and delete the stream.
45 stream.reset(nullptr);
175 // If we cannot skip, assume we have reached the end of the stream and
184 SkCodecPrintf("Warning: could not create embedded stream.\n");
228 return std::unique_ptr<SkCodec>(new SkIcoCodec(std::move(maxInfo), std::move(stream),
232 SkIcoCodec::SkIcoCodec(SkEncodedInfo&& info, std::unique_ptr<SkStream> stream,
236 : INHERITED(std::move(info), skcms_PixelFormat(), std::move(stream))