Home
last modified time | relevance | path

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

/external/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()
/external/skqp/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()