void SkPaintOptionsAndroid::flatten(SkWriteBuffer& buffer) const { buffer.writeUInt(fFontVariant); #ifdef SKLANG_OPT buffer.writeString(getLanguage().getTag().c_str()); #else buffer.writeString(fLanguage.getTag().c_str()); #endif buffer.writeBool(fUseFontFallbacks); }
static void Write(SkWriteBuffer& writer, const SkString* string) { writer.writeString(string->c_str()); }
void SkImageRef_ashmem::flatten(SkWriteBuffer& buffer) const { this->INHERITED::flatten(buffer); buffer.writeString(getURI()); }
void SkAnnotation::writeToBuffer(SkWriteBuffer& buffer) const { buffer.writeString(fKey.c_str()); buffer.writeDataAsByteArray(fData); }