/* SkTypes.h, the root of the public header files, includes this file SkUserConfig.hafterfirstinitializingcertainSkiadefines,letting thisfilechangeoraugmentthoseflags.
/* Skia has lots of debug-only code. Often this is just null checks or other parameterchecking,butsometimesitcanbequiteintrusive(e.g.checkthat each32bitpixelisinpremultipliedform).Thiscodecanbeveryuseful duringdevelopment,butwillslowthingsdowninashippingproduct.
/* To write debug messages to a console, skia will call SkDebugf(...) following printfconventions(e.g.constchar*format,...).Ifyouwanttoredirect thistosomethingotherthanprintf,defineyourshere
*/ //#define SkDebugf(...) MyFunction(__VA_ARGS__)
/* Skia has both debug and release asserts. When an assert fails SK_ABORT will beusedtoreportanabortmessage.SK_ABORTisexpectednottoreturn.Skia providesadefaultimplementationwhichwillprintthemessagewithSkDebugf andthencallsk_abort_no_print.
*/ //#define SK_ABORT(message, ...)
/* To specify a different default font strike cache memory limit, define this. If this is undefined,skiawilluseabuilt-invalue.
*/ //#define SK_DEFAULT_FONT_CACHE_LIMIT (1024 * 1024)
/* To specify a different default font strike cache count limit, define this. If this is undefined,skiawilluseabuilt-invalue.
*/ // #define SK_DEFAULT_FONT_CACHE_COUNT_LIMIT 2048
/* To specify the default size of the image cache, undefine this and set it to thedesiredvalue(inbytes).SkGraphics.hasaruntimeAPItosetthis valueaswell.Ifthisisundefined,abuilt-invaluewillbeused.
*/ //#define SK_DEFAULT_IMAGE_CACHE_LIMIT (1024 * 1024)
/* Define this to set the upper limit for text to support LCD. Values that areverylargeincreasethecostinthefontcacheanddrawslower,without improvingreadability.Ifthisisundefined,Skiawilluseitsdefault value(e.g.48)
*/ //#define SK_MAX_SIZE_FOR_LCDTEXT 48
/* Change the kN32_SkColorType ordering to BGRA to work in X windows.
*/ //#define SK_R32_SHIFT 16
/* This controls how much space should be pre-allocated in an SkCanvas object tostoretheSkMatrixandclipviacallstoSkCanvas::save()(andbalancedwith SkCanvas::restore()).
*/ //#define SK_CANVAS_SAVE_RESTORE_PREALLOC_COUNT 32
/* Skia makes use of histogram logging macros to trace the frequency of events.Bydefault,Skiaprovidesno-opversionsofthesemacros. Skiaconsumerscanprovidetheirowndefinitionsofthesemacrosto integratewiththeirhistogramcollectionbackend.
*/ //#define SK_HISTOGRAM_BOOLEAN(name, sample) //#define SK_HISTOGRAM_ENUMERATION(name, sampleEnum, enumSize) //#define SK_HISTOGRAM_EXACT_LINEAR(name, sample, valueMax) //#define SK_HISTOGRAM_CUSTOM_EXACT_LINEAR(name, sample, value_min, value_max, bucket_count) //#define SK_HISTOGRAM_MEMORY_KB(name, sample) //#define SK_HISTOGRAM_CUSTOM_COUNTS(name, sample, countMin, countMax, bucketCount) //#define SK_HISTOGRAM_CUSTOM_MICROSECONDS_TIMES(name, sampleUSec, minUSec, maxUSec, bucketCount)
// To use smaller but slower mipmap builder //#define SK_USE_DRAWING_MIPMAP_DOWNSAMPLER
/* Skia tries to make use of some non-standard C++ language extensions. Bydefault,Skiaprovidesmsvcandclang/gccversionsofthesemacros. Skiaconsumerscanprovidetheirowndefinitionsofthesemacrosto integratewiththeirowncompilersandbuildsystem.
*/ //#define SK_ALWAYS_INLINE inline __attribute__((always_inline)) //#define SK_NEVER_INLINE __attribute__((noinline)) //#define SK_PRINTF_LIKE(A, B) __attribute__((format(printf, (A), (B)))) //#define SK_NO_SANITIZE(A) __attribute__((no_sanitize(A))) //#define SK_TRIVIAL_ABI [[clang::trivial_abi]]
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.