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

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

Issue 2611413002: Remove CFX_ArrayTemplate from fpdfapi (Closed)
Patch Set: comment Created 3 years, 11 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
OLDNEW
1 // Copyright 2016 PDFium Authors. All rights reserved. 1 // Copyright 2016 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_RENDER_CPDF_RENDERCONTEXT_H_ 7 #ifndef CORE_FPDFAPI_RENDER_CPDF_RENDERCONTEXT_H_
8 #define CORE_FPDFAPI_RENDER_CPDF_RENDERCONTEXT_H_ 8 #define CORE_FPDFAPI_RENDER_CPDF_RENDERCONTEXT_H_
9 9
10 #include <vector>
11
10 #include "core/fxcrt/fx_basic.h" 12 #include "core/fxcrt/fx_basic.h"
11 #include "core/fxcrt/fx_coordinates.h" 13 #include "core/fxcrt/fx_coordinates.h"
12 14
13 class CPDF_Dictionary; 15 class CPDF_Dictionary;
14 class CPDF_Document; 16 class CPDF_Document;
15 class CPDF_Page; 17 class CPDF_Page;
16 class CPDF_PageObject; 18 class CPDF_PageObject;
17 class CPDF_PageObjectHolder; 19 class CPDF_PageObjectHolder;
18 class CPDF_PageRenderCache; 20 class CPDF_PageRenderCache;
19 class CPDF_RenderOptions; 21 class CPDF_RenderOptions;
(...skipping 23 matching lines...) Expand all
43 void Render(CFX_RenderDevice* pDevice, 45 void Render(CFX_RenderDevice* pDevice,
44 const CPDF_PageObject* pStopObj, 46 const CPDF_PageObject* pStopObj,
45 const CPDF_RenderOptions* pOptions, 47 const CPDF_RenderOptions* pOptions,
46 const CFX_Matrix* pFinalMatrix); 48 const CFX_Matrix* pFinalMatrix);
47 49
48 void GetBackground(CFX_DIBitmap* pBuffer, 50 void GetBackground(CFX_DIBitmap* pBuffer,
49 const CPDF_PageObject* pObj, 51 const CPDF_PageObject* pObj,
50 const CPDF_RenderOptions* pOptions, 52 const CPDF_RenderOptions* pOptions,
51 CFX_Matrix* pFinalMatrix); 53 CFX_Matrix* pFinalMatrix);
52 54
53 uint32_t CountLayers() const { return m_Layers.GetSize(); } 55 size_t CountLayers() const { return m_Layers.size(); }
54 Layer* GetLayer(uint32_t index) { return m_Layers.GetDataPtr(index); } 56 Layer* GetLayer(uint32_t index) { return &m_Layers[index]; }
55 57
56 CPDF_Document* GetDocument() const { return m_pDocument; } 58 CPDF_Document* GetDocument() const { return m_pDocument; }
57 CPDF_Dictionary* GetPageResources() const { return m_pPageResources; } 59 CPDF_Dictionary* GetPageResources() const { return m_pPageResources; }
58 CPDF_PageRenderCache* GetPageCache() const { return m_pPageCache; } 60 CPDF_PageRenderCache* GetPageCache() const { return m_pPageCache; }
59 61
60 protected: 62 protected:
61 CPDF_Document* const m_pDocument; 63 CPDF_Document* const m_pDocument;
62 CPDF_Dictionary* m_pPageResources; 64 CPDF_Dictionary* m_pPageResources;
63 CPDF_PageRenderCache* m_pPageCache; 65 CPDF_PageRenderCache* m_pPageCache;
64 CFX_ArrayTemplate<Layer> m_Layers; 66 std::vector<Layer> m_Layers;
65 }; 67 };
66 68
67 #endif // CORE_FPDFAPI_RENDER_CPDF_RENDERCONTEXT_H_ 69 #endif // CORE_FPDFAPI_RENDER_CPDF_RENDERCONTEXT_H_
OLDNEW
« no previous file with comments | « core/fpdfapi/parser/cpdf_document_unittest.cpp ('k') | core/fpdfapi/render/cpdf_rendercontext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698