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

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

Issue 230303002: Revert of [Oilpan]: Moving the FontSelector/FontCacheClient, CSSSegmentedFontFace, and FontFaceCache to the o… (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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)
92 void removeClient(FontCacheClient*); 91 void removeClient(FontCacheClient*);
93 #endif
94 92
95 unsigned short generation(); 93 unsigned short generation();
96 void invalidate(); 94 void invalidate();
97 95
98 #if OS(WIN) 96 #if OS(WIN)
99 PassRefPtr<SimpleFontData> fontDataFromDescriptionAndLogFont(const FontDescr iption&, ShouldRetain, const LOGFONT&, wchar_t* outFontFamilyName); 97 PassRefPtr<SimpleFontData> fontDataFromDescriptionAndLogFont(const FontDescr iption&, ShouldRetain, const LOGFONT&, wchar_t* outFontFamilyName);
100 #endif 98 #endif
101 99
102 #if OS(WIN) 100 #if OS(WIN)
103 bool useSubpixelPositioning() const { return s_useSubpixelPositioning; } 101 bool useSubpixelPositioning() const { return s_useSubpixelPositioning; }
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 165
168 class PLATFORM_EXPORT FontCachePurgePreventer { 166 class PLATFORM_EXPORT FontCachePurgePreventer {
169 public: 167 public:
170 FontCachePurgePreventer() { FontCache::fontCache()->disablePurging(); } 168 FontCachePurgePreventer() { FontCache::fontCache()->disablePurging(); }
171 ~FontCachePurgePreventer() { FontCache::fontCache()->enablePurging(); } 169 ~FontCachePurgePreventer() { FontCache::fontCache()->enablePurging(); }
172 }; 170 };
173 171
174 } 172 }
175 173
176 #endif 174 #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