class SkData; class SkImage; class SkPicture; class SkTypeface; class SkReadBuffer; class SkStream;
enum SkAlphaType : int;
namespace sktext::gpu { class Slug;
}
using SkSerialReturnType = sk_sp<const SkData>; /** *Aserial-procisaskedtoserializethespecifiedobject(e.g.pictureorimage). *Ifadataobjectisreturned,itwillbeused(evenifitiszero-length). *Ifnullisreturned,thenSkiawilltakeitsdefaultaction. * *ThedefaultactionforpicturesistouseSkia'sinternalformat. *ThedefaultactionforimagesistoencodeeitherinitsnativeformatorPNG. *ThedefaultactionfortypefacesistouseSkia'sinternalformat.
*/ using SkSerialPictureProc = SkSerialReturnType (*)(SkPicture*, void* ctx); using SkSerialImageProc = SkSerialReturnType (*)(SkImage*, void* ctx); using SkSerialTypefaceProc = SkSerialReturnType (*)(SkTypeface*, void* ctx);
// This looks like a flag, but it could be considered a proc as well (one that takes no // parameters and returns a bool). Given that there are only two valid implementations of that // proc, we just insert the bool directly. bool fAllowSkSL = true;
};
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.