]>
git.saurik.com Git - apple/icu.git/blob - icuSources/test/perf/leperf/FontTableCache.h
2 **********************************************************************
3 * © 2016 and later: Unicode, Inc. and others.
4 * License & terms of use: http://www.unicode.org/copyright.html#License
5 **********************************************************************
6 **********************************************************************
7 * Copyright (C) 2003-2013, International Business Machines
8 * Corporation and others. All Rights Reserved.
9 **********************************************************************
12 #ifndef __FONTTABLECACHE_H
14 #define __FONTTABLECACHE_H
16 #include "layout/LETypes.h"
20 struct FontTableCacheEntry
;
27 virtual ~FontTableCache();
29 const void *find(LETag tableTag
, size_t &length
) const;
32 virtual const void *readFontTable(LETag tableTag
, size_t &length
) const = 0;
33 virtual void freeFontTable(const void *table
) const;
37 void add(LETag tableTag
, const void *table
, size_t length
);
39 FontTableCacheEntry
*fTableCache
;
40 le_int32 fTableCacheCurr
;
41 le_int32 fTableCacheSize
;