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

Side by Side Diff: core/src/fxge/ge/text_int.h

Issue 1515613006: Merge to XFA: Replace several more CFX_MapPtrToPtr with std::set or std::map (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 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
« no previous file with comments | « core/src/fxge/ge/fx_ge_text.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #ifndef CORE_SRC_FXGE_GE_TEXT_INT_H_ 7 #ifndef CORE_SRC_FXGE_GE_TEXT_INT_H_
8 #define CORE_SRC_FXGE_GE_TEXT_INT_H_ 8 #define CORE_SRC_FXGE_GE_TEXT_INT_H_
9 9
10 #include <map>
11
10 #include "core/include/fxge/fx_font.h" 12 #include "core/include/fxge/fx_font.h"
11 #include "core/include/fxge/fx_freetype.h" 13 #include "core/include/fxge/fx_freetype.h"
12 14
13 struct _CFX_UniqueKeyGen { 15 struct _CFX_UniqueKeyGen {
14 void Generate(int count, ...); 16 void Generate(int count, ...);
15 FX_CHAR m_Key[128]; 17 FX_CHAR m_Key[128];
16 int m_KeyLen; 18 int m_KeyLen;
17 }; 19 };
18 class CFX_SizeGlyphCache { 20 class CFX_SizeGlyphCache {
19 public: 21 public:
20 CFX_SizeGlyphCache() { m_GlyphMap.InitHashTable(253); } 22 CFX_SizeGlyphCache() {}
21 ~CFX_SizeGlyphCache(); 23 ~CFX_SizeGlyphCache();
22 CFX_MapPtrToPtr m_GlyphMap; 24 std::map<FX_DWORD, CFX_GlyphBitmap*> m_GlyphMap;
23 }; 25 };
24 class CTTFontDesc { 26 class CTTFontDesc {
25 public: 27 public:
26 CTTFontDesc() { 28 CTTFontDesc() {
27 m_Type = 0; 29 m_Type = 0;
28 m_pFontData = NULL; 30 m_pFontData = NULL;
29 m_RefCount = 0; 31 m_RefCount = 0;
30 } 32 }
31 ~CTTFontDesc(); 33 ~CTTFontDesc();
32 // ret < 0, releaseface not appropriate for this object. 34 // ret < 0, releaseface not appropriate for this object.
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 const CFX_ByteString m_FilePath; 75 const CFX_ByteString m_FilePath;
74 const CFX_ByteString m_FaceName; 76 const CFX_ByteString m_FaceName;
75 const CFX_ByteString m_FontTables; 77 const CFX_ByteString m_FontTables;
76 const FX_DWORD m_FontOffset; 78 const FX_DWORD m_FontOffset;
77 const FX_DWORD m_FileSize; 79 const FX_DWORD m_FileSize;
78 FX_DWORD m_Styles; 80 FX_DWORD m_Styles;
79 FX_DWORD m_Charsets; 81 FX_DWORD m_Charsets;
80 }; 82 };
81 83
82 #endif // CORE_SRC_FXGE_GE_TEXT_INT_H_ 84 #endif // CORE_SRC_FXGE_GE_TEXT_INT_H_
OLDNEW
« no previous file with comments | « core/src/fxge/ge/fx_ge_text.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698