Lines Matching refs:fImpl
70 : fImpl(std::make_unique<SkDeflateWStream::Impl>()) { in SkDeflateWStream()
71 fImpl->fOut = out; in SkDeflateWStream()
72 fImpl->fInBufferIndex = 0; in SkDeflateWStream()
73 if (!fImpl->fOut) { in SkDeflateWStream()
76 fImpl->fZStream.next_in = nullptr; in SkDeflateWStream()
77 fImpl->fZStream.zalloc = &skia_alloc_func; in SkDeflateWStream()
78 fImpl->fZStream.zfree = &skia_free_func; in SkDeflateWStream()
79 fImpl->fZStream.opaque = nullptr; in SkDeflateWStream()
81 SkDEBUGCODE(int r =) deflateInit2(&fImpl->fZStream, compressionLevel, in SkDeflateWStream()
91 if (!fImpl->fOut) { in finalize()
94 do_deflate(Z_FINISH, &fImpl->fZStream, fImpl->fOut, fImpl->fInBuffer, in finalize()
95 fImpl->fInBufferIndex); in finalize()
96 (void)deflateEnd(&fImpl->fZStream); in finalize()
97 fImpl->fOut = nullptr; in finalize()
102 if (!fImpl->fOut) { in write()
108 std::min(len, sizeof(fImpl->fInBuffer) - fImpl->fInBufferIndex); in write()
109 memcpy(fImpl->fInBuffer + fImpl->fInBufferIndex, buffer, tocopy); in write()
112 fImpl->fInBufferIndex += tocopy; in write()
113 SkASSERT(fImpl->fInBufferIndex <= sizeof(fImpl->fInBuffer)); in write()
116 if (sizeof(fImpl->fInBuffer) == fImpl->fInBufferIndex) { in write()
117 do_deflate(Z_NO_FLUSH, &fImpl->fZStream, fImpl->fOut, in write()
118 fImpl->fInBuffer, fImpl->fInBufferIndex); in write()
119 fImpl->fInBufferIndex = 0; in write()
126 return fImpl->fZStream.total_in + fImpl->fInBufferIndex; in bytesWritten()