Home
last modified time | relevance | path

Searched refs:alreadyBuffered (Results 1 – 1 of 1) sorted by relevance

/external/skia/src/codec/
DSkRawCodec.cpp272 const size_t alreadyBuffered = SkTMin(fStreamBuffer.bytesWritten() - offset, size); in transferBuffer() local
273 if (alreadyBuffered > 0 && in transferBuffer()
274 !fStreamBuffer.read(data->writable_data(), offset, alreadyBuffered)) { in transferBuffer()
278 const size_t remaining = size - alreadyBuffered; in transferBuffer()
280 auto* dst = static_cast<uint8_t*>(data->writable_data()) + alreadyBuffered; in transferBuffer()
284 if (!safe_add_to_size_t(alreadyBuffered, bytesRead, &newSize)) { in transferBuffer()