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

Side by Side Diff: core/fpdfapi/fpdf_render/render_int.h

Issue 2366673003: Rename CPDF_CountedObject to CFX_WeakPtr::Handle (Closed)
Patch Set: comment Created 4 years, 3 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
« no previous file with comments | « core/fpdfapi/fpdf_render/fpdf_render.cpp ('k') | core/fxcrt/include/cfx_weak_ptr.h » ('j') | 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_FPDFAPI_FPDF_RENDER_RENDER_INT_H_ 7 #ifndef CORE_FPDFAPI_FPDF_RENDER_RENDER_INT_H_
8 #define CORE_FPDFAPI_FPDF_RENDER_RENDER_INT_H_ 8 #define CORE_FPDFAPI_FPDF_RENDER_RENDER_INT_H_
9 9
10 #include <map> 10 #include <map>
11 #include <memory> 11 #include <memory>
12 #include <vector> 12 #include <vector>
13 13
14 #include "core/fpdfapi/fpdf_page/cpdf_countedobject.h"
15 #include "core/fpdfapi/fpdf_page/cpdf_graphicstates.h" 14 #include "core/fpdfapi/fpdf_page/cpdf_graphicstates.h"
16 #include "core/fpdfapi/fpdf_page/include/cpdf_clippath.h" 15 #include "core/fpdfapi/fpdf_page/include/cpdf_clippath.h"
17 #include "core/fpdfapi/fpdf_parser/include/cpdf_stream_acc.h" 16 #include "core/fpdfapi/fpdf_parser/include/cpdf_stream_acc.h"
18 #include "core/fpdfapi/fpdf_render/include/cpdf_renderoptions.h" 17 #include "core/fpdfapi/fpdf_render/include/cpdf_renderoptions.h"
18 #include "core/fxcrt/include/cfx_weak_ptr.h"
19 #include "core/fxge/include/cfx_fxgedevice.h" 19 #include "core/fxge/include/cfx_fxgedevice.h"
20 #include "core/fxge/include/cfx_renderdevice.h" 20 #include "core/fxge/include/cfx_renderdevice.h"
21 21
22 class CCodec_Jbig2Context; 22 class CCodec_Jbig2Context;
23 class CCodec_ScanlineDecoder; 23 class CCodec_ScanlineDecoder;
24 class CFX_GlyphBitmap; 24 class CFX_GlyphBitmap;
25 class CFX_ImageTransformer; 25 class CFX_ImageTransformer;
26 class CFX_PathData; 26 class CFX_PathData;
27 class CPDF_Color; 27 class CPDF_Color;
28 class CPDF_Dictionary; 28 class CPDF_Dictionary;
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 explicit CPDF_DocRenderData(CPDF_Document* pPDFDoc); 69 explicit CPDF_DocRenderData(CPDF_Document* pPDFDoc);
70 ~CPDF_DocRenderData(); 70 ~CPDF_DocRenderData();
71 CPDF_Type3Cache* GetCachedType3(CPDF_Type3Font* pFont); 71 CPDF_Type3Cache* GetCachedType3(CPDF_Type3Font* pFont);
72 CPDF_TransferFunc* GetTransferFunc(CPDF_Object* pObj); 72 CPDF_TransferFunc* GetTransferFunc(CPDF_Object* pObj);
73 void Clear(FX_BOOL bRelease = FALSE); 73 void Clear(FX_BOOL bRelease = FALSE);
74 void ReleaseCachedType3(CPDF_Type3Font* pFont); 74 void ReleaseCachedType3(CPDF_Type3Font* pFont);
75 void ReleaseTransferFunc(CPDF_Object* pObj); 75 void ReleaseTransferFunc(CPDF_Object* pObj);
76 76
77 private: 77 private:
78 using CPDF_Type3CacheMap = 78 using CPDF_Type3CacheMap =
79 std::map<CPDF_Font*, CPDF_CountedObject<CPDF_Type3Cache>*>; 79 std::map<CPDF_Font*, CFX_WeakPtr<CPDF_Type3Cache>::Handle*>;
80 using CPDF_TransferFuncMap = 80 using CPDF_TransferFuncMap =
81 std::map<CPDF_Object*, CPDF_CountedObject<CPDF_TransferFunc>*>; 81 std::map<CPDF_Object*, CFX_WeakPtr<CPDF_TransferFunc>::Handle*>;
82 82
83 CPDF_Document* m_pPDFDoc; 83 CPDF_Document* m_pPDFDoc;
84 CPDF_Type3CacheMap m_Type3FaceMap; 84 CPDF_Type3CacheMap m_Type3FaceMap;
85 CPDF_TransferFuncMap m_TransferFuncMap; 85 CPDF_TransferFuncMap m_TransferFuncMap;
86 }; 86 };
87 87
88 class CPDF_RenderStatus { 88 class CPDF_RenderStatus {
89 public: 89 public:
90 CPDF_RenderStatus(); 90 CPDF_RenderStatus();
91 ~CPDF_RenderStatus(); 91 ~CPDF_RenderStatus();
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after
587 const uint8_t* src_buf, 587 const uint8_t* src_buf,
588 int pixels, 588 int pixels,
589 int Bpp) const override; 589 int Bpp) const override;
590 590
591 const uint8_t* m_RampR; 591 const uint8_t* m_RampR;
592 const uint8_t* m_RampG; 592 const uint8_t* m_RampG;
593 const uint8_t* m_RampB; 593 const uint8_t* m_RampB;
594 }; 594 };
595 595
596 #endif // CORE_FPDFAPI_FPDF_RENDER_RENDER_INT_H_ 596 #endif // CORE_FPDFAPI_FPDF_RENDER_RENDER_INT_H_
OLDNEW
« no previous file with comments | « core/fpdfapi/fpdf_render/fpdf_render.cpp ('k') | core/fxcrt/include/cfx_weak_ptr.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698