Lines Matching full:fscratch
387 , fScratch(controller->getWriteBufferFlags())
489 // We have to delay fScratch's initialization until its first use; fController might not
498 fScratch.setBitmapHeap(fController->getBitmapHeap());
499 fScratch.setTypefaceRecorder(fController->getTypefaceSet());
500 fScratch.setNamedFactoryRecorder(fController->getNamedFactorySet());
525 // Layout of fScratch: [ SkFlatData header, 20 bytes ] [ data ..., 4-byte aligned ]
526 fScratch.reset();
527 fScratch.reserve(sizeof(SkFlatData));
528 Traits::Flatten(fScratch, element);
529 const size_t dataSize = fScratch.bytesWritten() - sizeof(SkFlatData);
531 // Reinterpret data in fScratch as an SkFlatData.
532 SkFlatData* scratch = (SkFlatData*)fScratch.getWriter32()->contiguousArray();
543 SkFlatData* detached = (SkFlatData*)fController->allocThrow(fScratch.bytesWritten());
546 SkFlatData* scratch = (SkFlatData*)fScratch.getWriter32()->contiguousArray();
548 memcpy(detached, scratch, fScratch.bytesWritten());
550 // We can now reuse fScratch, and detached will live until fController dies.
562 SkWriteBuffer fScratch;