Home
last modified time | relevance | path

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

/third_party/skia/src/codec/
DSkStreamBuffer.cpp37 bool SkStreamBuffer::buffer(size_t totalBytesToBuffer) { in buffer() argument
40 SkASSERT(totalBytesToBuffer <= kMaxSize); in buffer()
42 if (totalBytesToBuffer <= fBytesBuffered) { in buffer()
48 fBytesBuffered = std::min(remaining, totalBytesToBuffer); in buffer()
50 const size_t extraBytes = totalBytesToBuffer - fBytesBuffered; in buffer()
54 return fBytesBuffered == totalBytesToBuffer; in buffer()
/third_party/flutter/skia/src/codec/
DSkStreamBuffer.cpp37 bool SkStreamBuffer::buffer(size_t totalBytesToBuffer) { in buffer() argument
40 SkASSERT(totalBytesToBuffer <= kMaxSize); in buffer()
42 if (totalBytesToBuffer <= fBytesBuffered) { in buffer()
48 fBytesBuffered = SkTMin(remaining, totalBytesToBuffer); in buffer()
50 const size_t extraBytes = totalBytesToBuffer - fBytesBuffered; in buffer()
54 return fBytesBuffered == totalBytesToBuffer; in buffer()