Lines Matching refs:fImpl
69 : fImpl(skstd::make_unique<SkDeflateWStream::Impl>()) { in SkDeflateWStream()
70 fImpl->fOut = out; in SkDeflateWStream()
71 fImpl->fInBufferIndex = 0; in SkDeflateWStream()
72 if (!fImpl->fOut) { in SkDeflateWStream()
75 fImpl->fZStream.next_in = nullptr; in SkDeflateWStream()
76 fImpl->fZStream.zalloc = &skia_alloc_func; in SkDeflateWStream()
77 fImpl->fZStream.zfree = &skia_free_func; in SkDeflateWStream()
78 fImpl->fZStream.opaque = nullptr; in SkDeflateWStream()
80 SkDEBUGCODE(int r =) deflateInit2(&fImpl->fZStream, compressionLevel, in SkDeflateWStream()
90 if (!fImpl->fOut) { in finalize()
93 do_deflate(Z_FINISH, &fImpl->fZStream, fImpl->fOut, fImpl->fInBuffer, in finalize()
94 fImpl->fInBufferIndex); in finalize()
95 (void)deflateEnd(&fImpl->fZStream); in finalize()
96 fImpl->fOut = nullptr; in finalize()
101 if (!fImpl->fOut) { in write()
107 SkTMin(len, sizeof(fImpl->fInBuffer) - fImpl->fInBufferIndex); in write()
108 memcpy(fImpl->fInBuffer + fImpl->fInBufferIndex, buffer, tocopy); in write()
111 fImpl->fInBufferIndex += tocopy; in write()
112 SkASSERT(fImpl->fInBufferIndex <= sizeof(fImpl->fInBuffer)); in write()
115 if (sizeof(fImpl->fInBuffer) == fImpl->fInBufferIndex) { in write()
116 do_deflate(Z_NO_FLUSH, &fImpl->fZStream, fImpl->fOut, in write()
117 fImpl->fInBuffer, fImpl->fInBufferIndex); in write()
118 fImpl->fInBufferIndex = 0; in write()
125 return fImpl->fZStream.total_in + fImpl->fInBufferIndex; in bytesWritten()