| 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 13 matching lines...) Expand all Loading... |
| 24 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | 24 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
| 25 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 25 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
| 27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 28 */ | 28 */ |
| 29 | 29 |
| 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 "sky/engine/platform/PlatformExport.h" |
| 35 #include "platform/fonts/FontFaceCreationParams.h" | 35 #include "sky/engine/platform/fonts/FontFaceCreationParams.h" |
| 36 #include "wtf/Forward.h" | 36 #include "sky/engine/wtf/Forward.h" |
| 37 #include "wtf/HashMap.h" | 37 #include "sky/engine/wtf/HashMap.h" |
| 38 #include "wtf/PassRefPtr.h" | 38 #include "sky/engine/wtf/PassRefPtr.h" |
| 39 #include "wtf/RefPtr.h" | 39 #include "sky/engine/wtf/RefPtr.h" |
| 40 #include "wtf/text/CString.h" | 40 #include "sky/engine/wtf/text/CString.h" |
| 41 #include "wtf/text/WTFString.h" | 41 #include "sky/engine/wtf/text/WTFString.h" |
| 42 #include "wtf/unicode/Unicode.h" | 42 #include "sky/engine/wtf/unicode/Unicode.h" |
| 43 | 43 |
| 44 #if OS(ANDROID) | 44 #if OS(ANDROID) |
| 45 #include <unicode/uscript.h> | 45 #include <unicode/uscript.h> |
| 46 #endif | 46 #endif |
| 47 | 47 |
| 48 class SkTypeface; | 48 class SkTypeface; |
| 49 | 49 |
| 50 namespace blink { | 50 namespace blink { |
| 51 | 51 |
| 52 class FontCacheClient; | 52 class FontCacheClient; |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 | 145 |
| 146 class PLATFORM_EXPORT FontCachePurgePreventer { | 146 class PLATFORM_EXPORT FontCachePurgePreventer { |
| 147 public: | 147 public: |
| 148 FontCachePurgePreventer() { FontCache::fontCache()->disablePurging(); } | 148 FontCachePurgePreventer() { FontCache::fontCache()->disablePurging(); } |
| 149 ~FontCachePurgePreventer() { FontCache::fontCache()->enablePurging(); } | 149 ~FontCachePurgePreventer() { FontCache::fontCache()->enablePurging(); } |
| 150 }; | 150 }; |
| 151 | 151 |
| 152 } // namespace blink | 152 } // namespace blink |
| 153 | 153 |
| 154 #endif | 154 #endif |
| OLD | NEW |