Home
last modified time | relevance | path

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

/external/skqp/src/utils/
DSkFrontBufferedStream.cpp39 size_t fBufferedSoFar; member in FrontBufferedStream
78 , fBufferedSoFar(0) in FrontBufferedStream()
83 if (fOffset < fBufferedSoFar) { in isAtEnd()
102 SkASSERT(fOffset < fBufferedSoFar); in readFromBuffer()
106 const size_t bytesToCopy = SkTMin(size, fBufferedSoFar - fOffset); in readFromBuffer()
114 SkASSERT(fOffset <= fBufferedSoFar); in readFromBuffer()
121 SkASSERT(fOffset >= fBufferedSoFar); in bufferAndWriteTo()
125 const size_t bytesToBuffer = SkTMin(size, fBufferSize - fBufferedSoFar); in bufferAndWriteTo()
129 fBufferedSoFar += buffered; in bufferAndWriteTo()
130 fOffset = fBufferedSoFar; in bufferAndWriteTo()
[all …]
/external/skia/client_utils/android/
DFrontBufferedStream.cpp46 size_t fBufferedSoFar; member in __anond560371f0111::FrontBufferedStream
98 , fBufferedSoFar(0) in FrontBufferedStream()
110 if (fOffset < fBufferedSoFar) { in isAtEnd()
129 SkASSERT(fOffset < fBufferedSoFar); in readFromBuffer()
133 const size_t bytesToCopy = std::min(size, fBufferedSoFar - fOffset); in readFromBuffer()
141 SkASSERT(fOffset <= fBufferedSoFar); in readFromBuffer()
148 SkASSERT(fOffset >= fBufferedSoFar); in bufferAndWriteTo()
152 const size_t bytesToBuffer = std::min(size, fBufferSize - fBufferedSoFar); in bufferAndWriteTo()
156 fBufferedSoFar += buffered; in bufferAndWriteTo()
157 fOffset = fBufferedSoFar; in bufferAndWriteTo()
[all …]