OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2008 Apple Computer, Inc. All rights reserved. | 2 * Copyright (C) 2006, 2008 Apple Computer, Inc. All rights reserved. |
3 * Copyright (C) 2007-2008 Torch Mobile, Inc. | 3 * Copyright (C) 2007-2008 Torch Mobile, Inc. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * | 8 * |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 19 matching lines...) Expand all Loading... |
30 #ifndef FontCache_h | 30 #ifndef FontCache_h |
31 #define FontCache_h | 31 #define FontCache_h |
32 | 32 |
33 #include <limits.h> | 33 #include <limits.h> |
34 #include "platform/PlatformExport.h" | 34 #include "platform/PlatformExport.h" |
35 #include "platform/fonts/FontFaceCreationParams.h" | 35 #include "platform/fonts/FontFaceCreationParams.h" |
36 #include "wtf/Forward.h" | 36 #include "wtf/Forward.h" |
37 #include "wtf/HashMap.h" | 37 #include "wtf/HashMap.h" |
38 #include "wtf/PassRefPtr.h" | 38 #include "wtf/PassRefPtr.h" |
39 #include "wtf/RefPtr.h" | 39 #include "wtf/RefPtr.h" |
40 #include "wtf/Vector.h" | |
41 #include "wtf/text/CString.h" | 40 #include "wtf/text/CString.h" |
42 #include "wtf/text/WTFString.h" | 41 #include "wtf/text/WTFString.h" |
43 #include "wtf/unicode/Unicode.h" | 42 #include "wtf/unicode/Unicode.h" |
44 | 43 |
45 #if OS(WIN) | 44 #if OS(WIN) |
46 #include "SkFontMgr.h" | 45 #include "SkFontMgr.h" |
47 #include <windows.h> | 46 #include <windows.h> |
48 #include <objidl.h> | 47 #include <objidl.h> |
49 #include <mlang.h> | 48 #include <mlang.h> |
50 struct IDWriteFactory; | 49 struct IDWriteFactory; |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 | 176 |
178 class PLATFORM_EXPORT FontCachePurgePreventer { | 177 class PLATFORM_EXPORT FontCachePurgePreventer { |
179 public: | 178 public: |
180 FontCachePurgePreventer() { FontCache::fontCache()->disablePurging(); } | 179 FontCachePurgePreventer() { FontCache::fontCache()->disablePurging(); } |
181 ~FontCachePurgePreventer() { FontCache::fontCache()->enablePurging(); } | 180 ~FontCachePurgePreventer() { FontCache::fontCache()->enablePurging(); } |
182 }; | 181 }; |
183 | 182 |
184 } | 183 } |
185 | 184 |
186 #endif | 185 #endif |
OLD | NEW |