| 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 bool isPlatformFontAvailable(const FontDescription&, const AtomicString&); | 88 bool isPlatformFontAvailable(const FontDescription&, const AtomicString&); |
| 89 | 89 |
| 90 // Returns the ShapeCache instance associated with the given cache key. | 90 // Returns the ShapeCache instance associated with the given cache key. |
| 91 // Creates a new instance as needed and as such is guaranteed not to return | 91 // Creates a new instance as needed and as such is guaranteed not to return |
| 92 // a nullptr. Instances are managed by FontCache and are only guaranteed to | 92 // a nullptr. Instances are managed by FontCache and are only guaranteed to |
| 93 // be valid for the duration of the current session, as controlled by | 93 // be valid for the duration of the current session, as controlled by |
| 94 // disable/enablePurging. | 94 // disable/enablePurging. |
| 95 ShapeCache* getShapeCache(const FallbackListCompositeKey&); | 95 ShapeCache* getShapeCache(const FallbackListCompositeKey&); |
| 96 | 96 |
| 97 void addClient(FontCacheClient*); | 97 void addClient(FontCacheClient*); |
| 98 #if !ENABLE(OILPAN) | |
| 99 void removeClient(FontCacheClient*); | |
| 100 #endif | |
| 101 | 98 |
| 102 unsigned short generation(); | 99 unsigned short generation(); |
| 103 void invalidate(); | 100 void invalidate(); |
| 104 | 101 |
| 105 SkFontMgr* fontManager() { return m_fontManager.get(); } | 102 SkFontMgr* fontManager() { return m_fontManager.get(); } |
| 106 static void setFontManager(const RefPtr<SkFontMgr>&); | 103 static void setFontManager(const RefPtr<SkFontMgr>&); |
| 107 | 104 |
| 108 #if OS(WIN) | 105 #if OS(WIN) |
| 109 bool useSubpixelPositioning() const { return s_useSubpixelPositioning; } | 106 bool useSubpixelPositioning() const { return s_useSubpixelPositioning; } |
| 110 static bool useDirectWrite() { return s_useDirectWrite; } | 107 static bool useDirectWrite() { return s_useDirectWrite; } |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 USING_FAST_MALLOC(FontCachePurgePreventer); | 211 USING_FAST_MALLOC(FontCachePurgePreventer); |
| 215 WTF_MAKE_NONCOPYABLE(FontCachePurgePreventer); | 212 WTF_MAKE_NONCOPYABLE(FontCachePurgePreventer); |
| 216 public: | 213 public: |
| 217 FontCachePurgePreventer() { FontCache::fontCache()->disablePurging(); } | 214 FontCachePurgePreventer() { FontCache::fontCache()->disablePurging(); } |
| 218 ~FontCachePurgePreventer() { FontCache::fontCache()->enablePurging(); } | 215 ~FontCachePurgePreventer() { FontCache::fontCache()->enablePurging(); } |
| 219 }; | 216 }; |
| 220 | 217 |
| 221 } // namespace blink | 218 } // namespace blink |
| 222 | 219 |
| 223 #endif | 220 #endif |
| OLD | NEW |