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

Side by Side Diff: Source/platform/fonts/FontCache.h

Issue 227083006: [Oilpan]: Moving the FontSelector/FontCacheClient, CSSSegmentedFontFace, and FontFaceCache to the o… (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 years, 8 months 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 | Annotate | Revision Log
« no previous file with comments | « Source/platform/fonts/Font.cpp ('k') | Source/platform/fonts/FontCache.cpp » ('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 * 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 81
82 // Also implemented by the platform. 82 // Also implemented by the platform.
83 void platformInit(); 83 void platformInit();
84 84
85 PassRefPtr<SimpleFontData> getFontData(const FontDescription&, const AtomicS tring&, bool checkingAlternateName = false, ShouldRetain = Retain); 85 PassRefPtr<SimpleFontData> getFontData(const FontDescription&, const AtomicS tring&, bool checkingAlternateName = false, ShouldRetain = Retain);
86 PassRefPtr<SimpleFontData> getLastResortFallbackFont(const FontDescription&, ShouldRetain = Retain); 86 PassRefPtr<SimpleFontData> getLastResortFallbackFont(const FontDescription&, ShouldRetain = Retain);
87 SimpleFontData* getNonRetainedLastResortFallbackFont(const FontDescription&) ; 87 SimpleFontData* getNonRetainedLastResortFallbackFont(const FontDescription&) ;
88 bool isPlatformFontAvailable(const FontDescription&, const AtomicString&); 88 bool isPlatformFontAvailable(const FontDescription&, const AtomicString&);
89 89
90 void addClient(FontCacheClient*); 90 void addClient(FontCacheClient*);
91 #if !ENABLE(OILPAN)
91 void removeClient(FontCacheClient*); 92 void removeClient(FontCacheClient*);
93 #endif
92 94
93 unsigned short generation(); 95 unsigned short generation();
94 void invalidate(); 96 void invalidate();
95 97
96 #if OS(WIN) 98 #if OS(WIN)
97 PassRefPtr<SimpleFontData> fontDataFromDescriptionAndLogFont(const FontDescr iption&, ShouldRetain, const LOGFONT&, wchar_t* outFontFamilyName); 99 PassRefPtr<SimpleFontData> fontDataFromDescriptionAndLogFont(const FontDescr iption&, ShouldRetain, const LOGFONT&, wchar_t* outFontFamilyName);
98 #endif 100 #endif
99 101
100 #if OS(WIN) 102 #if OS(WIN)
101 bool useSubpixelPositioning() const { return s_useSubpixelPositioning; } 103 bool useSubpixelPositioning() const { return s_useSubpixelPositioning; }
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 167
166 class PLATFORM_EXPORT FontCachePurgePreventer { 168 class PLATFORM_EXPORT FontCachePurgePreventer {
167 public: 169 public:
168 FontCachePurgePreventer() { FontCache::fontCache()->disablePurging(); } 170 FontCachePurgePreventer() { FontCache::fontCache()->disablePurging(); }
169 ~FontCachePurgePreventer() { FontCache::fontCache()->enablePurging(); } 171 ~FontCachePurgePreventer() { FontCache::fontCache()->enablePurging(); }
170 }; 172 };
171 173
172 } 174 }
173 175
174 #endif 176 #endif
OLDNEW
« no previous file with comments | « Source/platform/fonts/Font.cpp ('k') | Source/platform/fonts/FontCache.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698