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

Side by Side Diff: third_party/WebKit/Source/platform/fonts/FontFallbackList.h

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2010 Apple Inc. All rights reserved.
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 private: 62 private:
63 FontFallbackList& m_fallbackList; 63 FontFallbackList& m_fallbackList;
64 GlyphPages& m_pages; 64 GlyphPages& m_pages;
65 GlyphPageTreeNodeBase* m_pageZero; 65 GlyphPageTreeNodeBase* m_pageZero;
66 }; 66 };
67 67
68 static PassRefPtr<FontFallbackList> create() { return adoptRef(new FontFallb ackList()); } 68 static PassRefPtr<FontFallbackList> create() { return adoptRef(new FontFallb ackList()); }
69 69
70 ~FontFallbackList() { releaseFontData(); } 70 ~FontFallbackList() { releaseFontData(); }
71 bool isValid() const; 71 bool isValid() const;
72 void invalidate(PassRefPtrWillBeRawPtr<FontSelector>); 72 void invalidate(RawPtr<FontSelector>);
73 73
74 bool loadingCustomFonts() const; 74 bool loadingCustomFonts() const;
75 bool shouldSkipDrawing() const; 75 bool shouldSkipDrawing() const;
76 76
77 FontSelector* fontSelector() const { return m_fontSelector.get(); } 77 FontSelector* fontSelector() const { return m_fontSelector.get(); }
78 // FIXME: It should be possible to combine fontSelectorVersion and generatio n. 78 // FIXME: It should be possible to combine fontSelectorVersion and generatio n.
79 unsigned fontSelectorVersion() const { return m_fontSelectorVersion; } 79 unsigned fontSelectorVersion() const { return m_fontSelectorVersion; }
80 unsigned generation() const { return m_generation; } 80 unsigned generation() const { return m_generation; }
81 81
82 ShapeCache* shapeCache(const FontDescription& fontDescription) const 82 ShapeCache* shapeCache(const FontDescription& fontDescription) const
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 PassRefPtr<FontData> getFontData(const FontDescription&, int& familyIndex) c onst; 123 PassRefPtr<FontData> getFontData(const FontDescription&, int& familyIndex) c onst;
124 124
125 const SimpleFontData* determinePrimarySimpleFontData(const FontDescription&) const; 125 const SimpleFontData* determinePrimarySimpleFontData(const FontDescription&) const;
126 126
127 void releaseFontData(); 127 void releaseFontData();
128 128
129 mutable Vector<RefPtr<FontData>, 1> m_fontList; 129 mutable Vector<RefPtr<FontData>, 1> m_fontList;
130 GlyphPages m_pages; 130 GlyphPages m_pages;
131 GlyphPageTreeNodeBase* m_pageZero; 131 GlyphPageTreeNodeBase* m_pageZero;
132 mutable const SimpleFontData* m_cachedPrimarySimpleFontData; 132 mutable const SimpleFontData* m_cachedPrimarySimpleFontData;
133 RefPtrWillBePersistent<FontSelector> m_fontSelector; 133 Persistent<FontSelector> m_fontSelector;
134 unsigned m_fontSelectorVersion; 134 unsigned m_fontSelectorVersion;
135 mutable int m_familyIndex; 135 mutable int m_familyIndex;
136 unsigned short m_generation; 136 unsigned short m_generation;
137 mutable bool m_hasLoadingFallback : 1; 137 mutable bool m_hasLoadingFallback : 1;
138 mutable WeakPtr<ShapeCache> m_shapeCache; 138 mutable WeakPtr<ShapeCache> m_shapeCache;
139 }; 139 };
140 140
141 } // namespace blink 141 } // namespace blink
142 142
143 #endif 143 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698