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

Side by Side Diff: core/fpdfapi/render/cpdf_docrenderdata.h

Issue 2507023006: Move CPDF_DocRenderData from render_int (Closed)
Patch Set: Comments Created 4 years, 1 month 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/fpdfapi/parser/cpdf_document.cpp ('k') | core/fpdfapi/render/cpdf_docrenderdata.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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();
25
26 CPDF_Type3Cache* GetCachedType3(CPDF_Type3Font* pFont);
27 void ReleaseCachedType3(CPDF_Type3Font* pFont);
28 CPDF_TransferFunc* GetTransferFunc(CPDF_Object* pObj);
29 void ReleaseTransferFunc(CPDF_Object* pObj);
30 void Clear(bool bRelease);
31
32 private:
33 using CPDF_Type3CacheMap =
34 std::map<CPDF_Font*, CPDF_CountedObject<CPDF_Type3Cache>*>;
35 using CPDF_TransferFuncMap =
36 std::map<CPDF_Object*, CPDF_CountedObject<CPDF_TransferFunc>*>;
37
38 CPDF_Document* m_pPDFDoc; // Not Owned
39 CPDF_Type3CacheMap m_Type3FaceMap;
40 CPDF_TransferFuncMap m_TransferFuncMap;
41 };
42
43 #endif // CORE_FPDFAPI_RENDER_CPDF_DOCRENDERDATA_H_
OLDNEW
« no previous file with comments | « core/fpdfapi/parser/cpdf_document.cpp ('k') | core/fpdfapi/render/cpdf_docrenderdata.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698