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

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

Issue 99103006: Moving GraphicsContext and dependencies from core to platform. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Final patch - fixes Android Created 7 years 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/FontDataCache.cpp ('k') | Source/platform/fonts/FontFallbackList.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, 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
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Library General Public License for more details. 12 * Library General Public License for more details.
13 * 13 *
14 * You should have received a copy of the GNU Library General Public License 14 * You should have received a copy of the GNU Library General Public License
15 * along with this library; see the file COPYING.LIB. If not, write to 15 * along with this library; see the file COPYING.LIB. If not, write to
16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA. 17 * Boston, MA 02110-1301, USA.
18 * 18 *
19 */ 19 */
20 20
21 #ifndef FontFallbackList_h 21 #ifndef FontFallbackList_h
22 #define FontFallbackList_h 22 #define FontFallbackList_h
23 23
24 #include "core/platform/graphics/SimpleFontData.h"
25 #include "platform/fonts/FontSelector.h" 24 #include "platform/fonts/FontSelector.h"
25 #include "platform/fonts/SimpleFontData.h"
26 #include "platform/fonts/WidthCache.h" 26 #include "platform/fonts/WidthCache.h"
27 #include "wtf/Forward.h" 27 #include "wtf/Forward.h"
28 #include "wtf/MainThread.h" 28 #include "wtf/MainThread.h"
29 29
30 namespace WebCore { 30 namespace WebCore {
31 31
32 class GlyphPageTreeNode; 32 class GlyphPageTreeNode;
33 class GraphicsContext; 33 class GraphicsContext;
34 class IntRect; 34 class IntRect;
35 class FontDescription; 35 class FontDescription;
36 class FontPlatformData; 36 class FontPlatformData;
37 class FontSelector; 37 class FontSelector;
38 38
39 const int cAllFamiliesScanned = -1; 39 const int cAllFamiliesScanned = -1;
40 40
41 class FontFallbackList : public RefCounted<FontFallbackList> { 41 class PLATFORM_EXPORT FontFallbackList : public RefCounted<FontFallbackList> {
42 WTF_MAKE_NONCOPYABLE(FontFallbackList); 42 WTF_MAKE_NONCOPYABLE(FontFallbackList);
43 public: 43 public:
44 typedef HashMap<int, GlyphPageTreeNode*, DefaultHash<int>::Hash> GlyphPages; 44 typedef HashMap<int, GlyphPageTreeNode*, DefaultHash<int>::Hash> GlyphPages;
45 45
46 class GlyphPagesStateSaver { 46 class GlyphPagesStateSaver {
47 public: 47 public:
48 GlyphPagesStateSaver(FontFallbackList& fallbackList) 48 GlyphPagesStateSaver(FontFallbackList& fallbackList)
49 : m_fallbackList(fallbackList) 49 : m_fallbackList(fallbackList)
50 , m_pages(fallbackList.m_pages) 50 , m_pages(fallbackList.m_pages)
51 , m_pageZero(fallbackList.m_pageZero) 51 , m_pageZero(fallbackList.m_pageZero)
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 unsigned short m_generation; 117 unsigned short m_generation;
118 mutable unsigned m_pitch : 3; // Pitch 118 mutable unsigned m_pitch : 3; // Pitch
119 mutable bool m_loadingCustomFonts : 1; 119 mutable bool m_loadingCustomFonts : 1;
120 120
121 friend class Font; 121 friend class Font;
122 }; 122 };
123 123
124 } 124 }
125 125
126 #endif 126 #endif
OLDNEW
« no previous file with comments | « Source/platform/fonts/FontDataCache.cpp ('k') | Source/platform/fonts/FontFallbackList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698