Index: core/fpdfapi/fpdf_render/fpdf_render.cpp |
diff --git a/core/fpdfapi/fpdf_render/fpdf_render.cpp b/core/fpdfapi/fpdf_render/fpdf_render.cpp |
index 887ea30a427c442987f589c5695669a7dd11f72d..fbb0745506a67206334b967e20fd21494c4b95ef 100644 |
--- a/core/fpdfapi/fpdf_render/fpdf_render.cpp |
+++ b/core/fpdfapi/fpdf_render/fpdf_render.cpp |
@@ -100,7 +100,21 @@ CPDF_RenderOptions::CPDF_RenderOptions() |
m_AddFlags(0), |
m_pOCContext(nullptr), |
m_dwLimitCacheSize(1024 * 1024 * 100), |
- m_HalftoneLimit(-1) {} |
+ m_HalftoneLimit(-1), |
+ m_bDrawAnnots(false) {} |
+ |
+CPDF_RenderOptions::CPDF_RenderOptions(const CPDF_RenderOptions& rhs) |
+ : m_ColorMode(rhs.m_ColorMode), |
+ m_BackColor(rhs.m_BackColor), |
+ m_ForeColor(rhs.m_ForeColor), |
+ m_Flags(rhs.m_Flags), |
+ m_Interpolation(rhs.m_Interpolation), |
+ m_AddFlags(rhs.m_AddFlags), |
+ m_pOCContext(rhs.m_pOCContext), |
+ m_dwLimitCacheSize(rhs.m_dwLimitCacheSize), |
+ m_HalftoneLimit(rhs.m_HalftoneLimit), |
+ m_bDrawAnnots(rhs.m_bDrawAnnots) {} |
+ |
FX_ARGB CPDF_RenderOptions::TranslateColor(FX_ARGB argb) const { |
if (m_ColorMode == RENDER_COLOR_NORMAL) { |
return argb; |