diff options
author | Tom Sepez <tsepez@chromium.org> | 2015-12-18 14:53:31 -0800 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2015-12-18 14:53:31 -0800 |
commit | 0fa6fee0e48af8681f0cd50f6a9471ecc0a46c11 (patch) | |
tree | 6e8b93a1103b71c3b83e35bc7308658521b49bde /core/include/fpdfapi/fpdf_page.h | |
parent | e6ca18ad72a1555e89dc37117c5be220631c5e0c (diff) | |
download | pdfium-0fa6fee0e48af8681f0cd50f6a9471ecc0a46c11.tar.xz |
Remove CFX_MapPtrToPtr in CFX_PageRenderCache
Rename CPDF_ImageCache to CPDF_ImageCacheEntry because it
represents a single entry, not the entire cache itself.
Delete unused ClearRenderCache method, and merge cache entry
clear() into its dtor.
Fix a broken size calculation.
R=thestig@chromium.org
Review URL: https://codereview.chromium.org/1539983002 .
Diffstat (limited to 'core/include/fpdfapi/fpdf_page.h')
-rw-r--r-- | core/include/fpdfapi/fpdf_page.h | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/core/include/fpdfapi/fpdf_page.h b/core/include/fpdfapi/fpdf_page.h index 5fa413d29c..efbfa67280 100644 --- a/core/include/fpdfapi/fpdf_page.h +++ b/core/include/fpdfapi/fpdf_page.h @@ -97,7 +97,6 @@ class CPDF_PageObjects { class CPDF_Page : public CPDF_PageObjects, public CFX_PrivateData { public: CPDF_Page(); - ~CPDF_Page(); void Load(CPDF_Document* pDocument, @@ -105,7 +104,6 @@ class CPDF_Page : public CPDF_PageObjects, public CFX_PrivateData { FX_BOOL bPageCache = TRUE); void StartParse(CPDF_ParseOptions* pOptions = NULL, FX_BOOL bReParse = FALSE); - void ParseContent(CPDF_ParseOptions* pOptions = NULL, FX_BOOL bReParse = FALSE); @@ -117,28 +115,17 @@ class CPDF_Page : public CPDF_PageObjects, public CFX_PrivateData { int iRotate) const; FX_FLOAT GetPageWidth() const { return m_PageWidth; } - FX_FLOAT GetPageHeight() const { return m_PageHeight; } - CFX_FloatRect GetPageBBox() const { return m_BBox; } - const CFX_Matrix& GetPageMatrix() const { return m_PageMatrix; } - CPDF_Object* GetPageAttr(const CFX_ByteStringC& name) const; - CPDF_PageRenderCache* GetRenderCache() const { return m_pPageRender; } - void ClearRenderCache(); - protected: friend class CPDF_ContentParser; - FX_FLOAT m_PageWidth; - FX_FLOAT m_PageHeight; - CFX_Matrix m_PageMatrix; - CPDF_PageRenderCache* m_pPageRender; }; class CPDF_ParseOptions { |