Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(253)

Side by Side Diff: src/smooth/ftspic.h

Issue 89753003: Update freetype to latest version of ASOP. (Closed) Base URL: https://chromium.googlesource.com/chromium/src/third_party/freetype.git@master
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/smooth/ftsmooth.c ('k') | src/smooth/ftspic.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /***************************************************************************/ 1 /***************************************************************************/
2 /* */ 2 /* */
3 /* ftspic.h */ 3 /* ftspic.h */
4 /* */ 4 /* */
5 /* The FreeType position independent code services for smooth module. */ 5 /* The FreeType position independent code services for smooth module. */
6 /* */ 6 /* */
7 /* Copyright 2009 by */ 7 /* Copyright 2009 by */
8 /* Oran Agra and Mickey Gabel. */ 8 /* Oran Agra and Mickey Gabel. */
9 /* */ 9 /* */
10 /* This file is part of the FreeType project, and may only be used, */ 10 /* This file is part of the FreeType project, and may only be used, */
11 /* modified, and distributed under the terms of the FreeType project */ 11 /* modified, and distributed under the terms of the FreeType project */
12 /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ 12 /* license, LICENSE.TXT. By continuing to use, modify, or distribute */
13 /* this file you indicate that you have read the license and */ 13 /* this file you indicate that you have read the license and */
14 /* understand and accept it fully. */ 14 /* understand and accept it fully. */
15 /* */ 15 /* */
16 /***************************************************************************/ 16 /***************************************************************************/
17 17
18 18
19 #ifndef __FTSPIC_H__ 19 #ifndef __FTSPIC_H__
20 #define __FTSPIC_H__ 20 #define __FTSPIC_H__
21 21
22 22
23 FT_BEGIN_HEADER 23 FT_BEGIN_HEADER
24 24
25 #include FT_INTERNAL_PIC_H 25 #include FT_INTERNAL_PIC_H
26 26
27 #ifndef FT_CONFIG_OPTION_PIC 27 #ifndef FT_CONFIG_OPTION_PIC
28 #define FT_GRAYS_RASTER_GET ft_grays_raster 28
29 #define FT_GRAYS_RASTER_GET ft_grays_raster
29 30
30 #else /* FT_CONFIG_OPTION_PIC */ 31 #else /* FT_CONFIG_OPTION_PIC */
31 32
32 typedef struct SmoothPIC_ 33 typedef struct SmoothPIC_
33 { 34 {
34 int ref_count; 35 int ref_count;
35 FT_Raster_Funcs ft_grays_raster; 36 FT_Raster_Funcs ft_grays_raster;
37
36 } SmoothPIC; 38 } SmoothPIC;
37 39
38 #define GET_PIC(lib) ((SmoothPIC*)((lib)->pic_container.smooth)) 40
39 #define FT_GRAYS_RASTER_GET (GET_PIC(library)->ft_grays_raster) 41 #define GET_PIC( lib ) \
42 ( (SmoothPIC*)( (lib)->pic_container.smooth ) )
43 #define FT_GRAYS_RASTER_GET ( GET_PIC( library )->ft_grays_raster )
44
40 45
41 /* see ftspic.c for the implementation */ 46 /* see ftspic.c for the implementation */
42 void 47 void
43 ft_smooth_renderer_class_pic_free( FT_Library library ); 48 ft_smooth_renderer_class_pic_free( FT_Library library );
44 49
45 void 50 void
46 ft_smooth_lcd_renderer_class_pic_free( FT_Library library ); 51 ft_smooth_lcd_renderer_class_pic_free( FT_Library library );
47 52
48 void 53 void
49 ft_smooth_lcdv_renderer_class_pic_free( FT_Library library ); 54 ft_smooth_lcdv_renderer_class_pic_free( FT_Library library );
(...skipping 10 matching lines...) Expand all
60 #endif /* FT_CONFIG_OPTION_PIC */ 65 #endif /* FT_CONFIG_OPTION_PIC */
61 66
62 /* */ 67 /* */
63 68
64 FT_END_HEADER 69 FT_END_HEADER
65 70
66 #endif /* __FTSPIC_H__ */ 71 #endif /* __FTSPIC_H__ */
67 72
68 73
69 /* END */ 74 /* END */
OLDNEW
« no previous file with comments | « src/smooth/ftsmooth.c ('k') | src/smooth/ftspic.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698