Index: core/fpdfapi/fpdf_page/include/cpdf_page.h |
diff --git a/core/fpdfapi/fpdf_page/include/cpdf_page.h b/core/fpdfapi/fpdf_page/include/cpdf_page.h |
index e73c41db796d741bef135560342ba4cffc597c0d..d61ec7c71260f72c4cf37a6f36348e5dcd559e86 100644 |
--- a/core/fpdfapi/fpdf_page/include/cpdf_page.h |
+++ b/core/fpdfapi/fpdf_page/include/cpdf_page.h |
@@ -18,6 +18,7 @@ class CPDF_Dictionary; |
class CPDF_Document; |
class CPDF_Object; |
class CPDF_PageRenderCache; |
+class CRenderContext; |
class CPDF_Page : public CPDF_PageObjectHolder { |
public: |
@@ -44,10 +45,8 @@ class CPDF_Page : public CPDF_PageObjectHolder { |
CPDF_Object* GetPageAttr(const CFX_ByteString& name) const; |
CPDF_PageRenderCache* GetRenderCache() const { return m_pPageRender.get(); } |
- CFX_Deletable* GetRenderContext() const { return m_pRenderContext.get(); } |
- void SetRenderContext(std::unique_ptr<CFX_Deletable> pContext) { |
- m_pRenderContext = std::move(pContext); |
- } |
+ CRenderContext* GetRenderContext() const { return m_pRenderContext.get(); } |
+ void SetRenderContext(std::unique_ptr<CRenderContext> pContext); |
View* GetView() const { return m_pView; } |
void SetView(View* pView) { m_pView = pView; } |
@@ -62,7 +61,7 @@ class CPDF_Page : public CPDF_PageObjectHolder { |
CFX_Matrix m_PageMatrix; |
View* m_pView; |
std::unique_ptr<CPDF_PageRenderCache> m_pPageRender; |
- std::unique_ptr<CFX_Deletable> m_pRenderContext; |
+ std::unique_ptr<CRenderContext> m_pRenderContext; |
}; |
#endif // CORE_FPDFAPI_FPDF_PAGE_INCLUDE_CPDF_PAGE_H_ |