diff options
Diffstat (limited to 'core/fpdfapi/page/cpdf_generalstate.h')
-rw-r--r-- | core/fpdfapi/page/cpdf_generalstate.h | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/core/fpdfapi/page/cpdf_generalstate.h b/core/fpdfapi/page/cpdf_generalstate.h index 9ee20db8a5..096271fd8b 100644 --- a/core/fpdfapi/page/cpdf_generalstate.h +++ b/core/fpdfapi/page/cpdf_generalstate.h @@ -7,6 +7,7 @@ #ifndef CORE_FPDFAPI_PAGE_CPDF_GENERALSTATE_H_ #define CORE_FPDFAPI_PAGE_CPDF_GENERALSTATE_H_ +#include "constants/transparency.h" #include "core/fxcrt/fx_coordinates.h" #include "core/fxcrt/fx_string.h" #include "core/fxcrt/shared_copy_on_write.h" @@ -83,27 +84,27 @@ class CPDF_GeneralState { StateData(const StateData& that); ~StateData() override; - ByteString m_BlendMode; - int m_BlendType; + ByteString m_BlendMode = pdfium::transparency::kNormal; + int m_BlendType = FXDIB_BLEND_NORMAL; UnownedPtr<CPDF_Object> m_pSoftMask; CFX_Matrix m_SMaskMatrix; - float m_StrokeAlpha; - float m_FillAlpha; + float m_StrokeAlpha = 1.0f; + float m_FillAlpha = 1.0f; UnownedPtr<const CPDF_Object> m_pTR; RetainPtr<CPDF_TransferFunc> m_pTransferFunc; CFX_Matrix m_Matrix; - int m_RenderIntent; - bool m_StrokeAdjust; - bool m_AlphaSource; - bool m_TextKnockout; - bool m_StrokeOP; - bool m_FillOP; - int m_OPMode; + int m_RenderIntent = 0; + bool m_StrokeAdjust = false; + bool m_AlphaSource = false; + bool m_TextKnockout = false; + bool m_StrokeOP = false; + bool m_FillOP = false; + int m_OPMode = 0; UnownedPtr<const CPDF_Object> m_pBG; UnownedPtr<const CPDF_Object> m_pUCR; UnownedPtr<const CPDF_Object> m_pHT; - float m_Flatness; - float m_Smoothness; + float m_Flatness = 1.0f; + float m_Smoothness = 0.0f; }; SharedCopyOnWrite<StateData> m_Ref; |