/[freetype]/ft2demos/src/ftbench.c
ViewVC logotype

Diff of /ft2demos/src/ftbench.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.19 by freetype, Tue Feb 22 15:55:07 2005 UTC revision 1.20 by freetype, Mon Feb 28 21:43:38 2005 UTC
# Line 54  FTC_SBitCache     sbit_cache; Line 54  FTC_SBitCache     sbit_cache;
54  FTC_ImageTypeRec  font_type;  FTC_ImageTypeRec  font_type;
55  charmap_t*        cmap = NULL;  charmap_t*        cmap = NULL;
56  double            bench_time = BENCH_TIME;  double            bench_time = BENCH_TIME;
57    int               preload = 0;
58    FT_Byte*          memory_file = NULL;
59    long              memory_size;
60    
61    
62  /*  /*
# Line 283  bench_open_close( const char*  filename, Line 286  bench_open_close( const char*  filename,
286      FT_Face   bench_face;      FT_Face   bench_face;
287      FT_Error  error;      FT_Error  error;
288    
289      error = FT_New_Face( lib, filename, 0, &bench_face );      if ( preload )
290          error = FT_New_Memory_Face( lib, memory_file, memory_size, 0, &bench_face );
291        else
292          error = FT_New_Face( lib, filename, 0, &bench_face );
293      if ( !error )      if ( !error )
294      {      {
295        FT_Done_Face( bench_face );        FT_Done_Face( bench_face );
# Line 373  main(int argc, Line 379  main(int argc,
379    long max_bytes = CACHE_SIZE * 1024;    long max_bytes = CACHE_SIZE * 1024;
380    char* tests = NULL;    char* tests = NULL;
381    int size;    int size;
   int preload = 0;  
   FT_Byte*  memory_file = NULL;  
   long      memory_size;  
382    
383    while (argc > 1 && argv[1][0] == '-')    while (argc > 1 && argv[1][0] == '-')
384    {    {

Legend:
Removed from v.1.19  
changed lines
  Added in v.1.20

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26