OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2016 PDFium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | |
6 | |
7 #ifndef CORE_FPDFAPI_RENDER_CPDF_DOCRENDERDATA_H_ | |
8 #define CORE_FPDFAPI_RENDER_CPDF_DOCRENDERDATA_H_ | |
9 | |
10 #include <map> | |
11 | |
12 #include "core/fpdfapi/page/cpdf_countedobject.h" | |
13 | |
14 class CPDF_Document; | |
15 class CPDF_Font; | |
16 class CPDF_Object; | |
17 class CPDF_TransferFunc; | |
18 class CPDF_Type3Cache; | |
19 class CPDF_Type3Font; | |
20 | |
21 class CPDF_DocRenderData { | |
22 public: | |
23 explicit CPDF_DocRenderData(CPDF_Document* pPDFDoc); | |
24 ~CPDF_DocRenderData(); | |
dsinclair
2016/11/17 18:02:35
Blank line after.
npm
2016/11/17 18:13:53
Done.
| |
25 CPDF_Type3Cache* GetCachedType3(CPDF_Type3Font* pFont); | |
26 CPDF_TransferFunc* GetTransferFunc(CPDF_Object* pObj); | |
27 void Clear(bool bRelease); | |
28 void ReleaseCachedType3(CPDF_Type3Font* pFont); | |
dsinclair
2016/11/17 18:02:35
Can you put these with the Get methods they relate
npm
2016/11/17 18:13:53
Done.
| |
29 void ReleaseTransferFunc(CPDF_Object* pObj); | |
30 | |
31 private: | |
32 using CPDF_Type3CacheMap = | |
33 std::map<CPDF_Font*, CPDF_CountedObject<CPDF_Type3Cache>*>; | |
34 using CPDF_TransferFuncMap = | |
35 std::map<CPDF_Object*, CPDF_CountedObject<CPDF_TransferFunc>*>; | |
36 | |
37 CPDF_Document* m_pPDFDoc; | |
dsinclair
2016/11/17 18:02:35
Is this un-owned? If so, can you add a // Not owne
npm
2016/11/17 18:13:53
Done.
| |
38 CPDF_Type3CacheMap m_Type3FaceMap; | |
39 CPDF_TransferFuncMap m_TransferFuncMap; | |
40 }; | |
41 | |
42 #endif // CORE_FPDFAPI_RENDER_CPDF_DOCRENDERDATA_H_ | |
OLD | NEW |