Lines Matching defs:buffer
107 char buffer[bytesToRead];
108 size_t bytesRead = stream->peek(buffer, bytesToRead);
114 // It also is possible the stream uses too small a buffer for peeking, but
115 // we trust the caller to use a large enough buffer.
125 bytesRead = stream->read(buffer, bytesToRead);
136 if (SkPngCodec::IsPng(buffer, bytesRead)) {
142 if (proc.IsFormat(buffer, bytesRead)) {
149 if (SkHeifCodec::IsSupported(buffer, bytesRead, &format)) {
841 // require first preparing the pixel buffer based on another frame. Instead,
842 // drawing can start from an uninitialized pixel buffer.
846 // will typically fill the buffer with a uniform background color (e.g.