Cache rendered fonts to speed up mobile load

This commit is contained in:
elasota
2020-10-24 11:41:39 -04:00
parent daebba7d47
commit 26c423bb58
10 changed files with 216 additions and 12 deletions

View File

@@ -3,6 +3,7 @@
#include "FontHacks.h"
struct IGpFont;
class GpIOStream;
namespace PortabilityLayer
{
@@ -12,6 +13,8 @@ namespace PortabilityLayer
{
public:
virtual RenderedFont *RenderFont(IGpFont *font, int size, bool aa, FontHacks fontHacks) = 0;
virtual RenderedFont *LoadCache(GpIOStream *stream) = 0;
virtual bool SaveCache(const RenderedFont *rfont, GpIOStream *stream) = 0;
static FontRenderer *GetInstance();
};