Index: core/fpdfapi/fpdf_page/cpdf_page.cpp |
diff --git a/core/fpdfapi/fpdf_page/cpdf_page.cpp b/core/fpdfapi/fpdf_page/cpdf_page.cpp |
index 441bbfe28bbb01f97e7787f22617e1b1f2ca3daa..289ef717c435db5dfe6e69456b5a7bca697c258b 100644 |
--- a/core/fpdfapi/fpdf_page/cpdf_page.cpp |
+++ b/core/fpdfapi/fpdf_page/cpdf_page.cpp |
@@ -14,6 +14,7 @@ |
#include "core/fpdfapi/fpdf_parser/include/cpdf_dictionary.h" |
#include "core/fpdfapi/fpdf_parser/include/cpdf_object.h" |
#include "core/fpdfapi/fpdf_render/cpdf_pagerendercache.h" |
+#include "core/fpdfapi/include/cpdf_pagerendercontext.h" |
#include "third_party/base/stl_util.h" |
CPDF_Page::CPDF_Page(CPDF_Document* pDocument, |
@@ -95,6 +96,11 @@ void CPDF_Page::ParseContent() { |
ContinueParse(nullptr); |
} |
+void CPDF_Page::SetRenderContext( |
+ std::unique_ptr<CPDF_PageRenderContext> pContext) { |
+ m_pRenderContext = std::move(pContext); |
+} |
+ |
CPDF_Object* CPDF_Page::GetPageAttr(const CFX_ByteString& name) const { |
CPDF_Dictionary* pPageDict = m_pFormDict; |
std::set<CPDF_Dictionary*> visited; |