From 0fa6fee0e48af8681f0cd50f6a9471ecc0a46c11 Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Fri, 18 Dec 2015 14:53:31 -0800 Subject: 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 . --- core/include/fpdfapi/fpdf_page.h | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'core/include/fpdfapi/fpdf_page.h') 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 { -- cgit v1.2.3