Lines Matching refs:fScratch
348 , fScratch(AllocScratch(fScratchSize))
367 sk_free(fScratch);
523 // Flatten element into fWriteBuffer (using fScratch as storage).
524 fWriteBuffer.reset(fScratch->data(), fScratchSize);
528 // If all the flattened bytes fit into fScratch, we can skip a call to writeToMemory.
537 sk_free(fScratch);
539 fScratch = larger;
542 // The data is in fScratch now but we need to stamp its header.
543 fScratch->stampHeader(index, bytesWritten);
544 return *fScratch;
552 const size_t paddedSize = SizeWithPadding(fScratch->flatSize());
556 memcpy(detached, fScratch, paddedSize);
558 // We can now reuse fScratch, and detached will live until fController dies.
571 size_t fScratchSize; // How many bytes fScratch has allocated for data itself.
572 SkFlatData* fScratch; // Owned, must be freed with sk_free.