| Index: samplecode/SamplePictFile.cpp
|
| diff --git a/samplecode/SamplePictFile.cpp b/samplecode/SamplePictFile.cpp
|
| index 3fb335fc3415b02131ab955749415cee6541a698..8f827e10aa248138ad7a2b4409a64e9504e23815 100644
|
| --- a/samplecode/SamplePictFile.cpp
|
| +++ b/samplecode/SamplePictFile.cpp
|
| @@ -30,6 +30,8 @@
|
| #include "SkSurface.h"
|
| #include "SkXMLParser.h"
|
|
|
| +#include "SkGlyphCache.h"
|
| +
|
| class PictFileView : public SampleView {
|
| public:
|
| PictFileView(const char name[] = NULL)
|
| @@ -89,12 +91,21 @@ protected:
|
| SkASSERT(static_cast<int>(fBBox) < kBBoxTypeCount);
|
| SkPicture** picture = fPictures + fBBox;
|
|
|
| +#ifdef SK_GLYPHCACHE_TRACK_HASH_STATS
|
| + SkGraphics::PurgeFontCache();
|
| +#endif
|
| +
|
| if (!*picture) {
|
| *picture = LoadPicture(fFilename.c_str(), fBBox);
|
| }
|
| if (*picture) {
|
| canvas->drawPicture(*picture);
|
| }
|
| +
|
| +#ifdef SK_GLYPHCACHE_TRACK_HASH_STATS
|
| + SkGlyphCache::Dump();
|
| + SkDebugf("\n");
|
| +#endif
|
| }
|
|
|
| private:
|
|
|