class SkDescriptor; class SkStrikeSpec; class SkTraceMemoryDump; struct SkFontMetrics;
// SK_DEFAULT_FONT_CACHE_COUNT_LIMIT and SK_DEFAULT_FONT_CACHE_LIMIT can be set using -D on your // compiler commandline, or by using the defines in SkUserConfig.h #ifndef SK_DEFAULT_FONT_CACHE_COUNT_LIMIT #define SK_DEFAULT_FONT_CACHE_COUNT_LIMIT 2048 #endif
// Dump memory usage statistics of all the attaches caches in the process using the // SkTraceMemoryDump interface. staticvoid DumpMemoryStatistics(SkTraceMemoryDump* dump);
void purgeAll() SK_EXCLUDES(fLock); // does not change budget void purgePinned(size_t minBytesNeeded = 0) SK_EXCLUDES(fLock);
int getCacheCountLimit() const SK_EXCLUDES(fLock); int setCacheCountLimit(int limit) SK_EXCLUDES(fLock); int getCacheCountUsed() const SK_EXCLUDES(fLock);
// The following methods can only be called when mutex is already held. void internalRemoveStrike(SkStrike* strike) SK_REQUIRES(fLock); void internalAttachToHead(sk_sp<SkStrike> strike) SK_REQUIRES(fLock);
// Checkout budgets, modulated by the specified min-bytes-needed-to-purge, // and attempt to purge caches to match. // Returns number of bytes freed.
size_t internalPurge(size_t minBytesNeeded = 0, bool checkPinners = false) SK_REQUIRES(fLock);
// A simple accounting of what each glyph cache reports and the strike cache total. void validate() const SK_REQUIRES(fLock);
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.