diff options
author | Lei Zhang <thestig@chromium.org> | 2018-05-10 18:07:35 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-05-10 18:07:35 +0000 |
commit | 3d1ab2d09ab96a6393c0612d9c4153d10d5028ce (patch) | |
tree | 9a7be966344aeeaddf44b99f2a86a7f177ac17a9 /core/fpdfapi/render/cpdf_renderstatus.h | |
parent | f4f19b51b2d588abe80df8493c23d708ec63f1b7 (diff) | |
download | pdfium-3d1ab2d09ab96a6393c0612d9c4153d10d5028ce.tar.xz |
Add CPDF_Transparency.
Encapsulates transparency status instead of having it be a raw int.
Change-Id: I8b10dafa97da112795cf84c46cf416a0294551d5
Reviewed-on: https://pdfium-review.googlesource.com/32194
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'core/fpdfapi/render/cpdf_renderstatus.h')
-rw-r--r-- | core/fpdfapi/render/cpdf_renderstatus.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/core/fpdfapi/render/cpdf_renderstatus.h b/core/fpdfapi/render/cpdf_renderstatus.h index 5618196ce6..19d613c02e 100644 --- a/core/fpdfapi/render/cpdf_renderstatus.h +++ b/core/fpdfapi/render/cpdf_renderstatus.h @@ -12,6 +12,7 @@ #include "core/fpdfapi/page/cpdf_clippath.h" #include "core/fpdfapi/page/cpdf_graphicstates.h" +#include "core/fpdfapi/page/cpdf_pageobjectholder.h" #include "core/fpdfapi/render/cpdf_renderoptions.h" #include "core/fxcrt/unowned_ptr.h" #include "core/fxge/cfx_renderdevice.h" @@ -48,7 +49,7 @@ class CPDF_RenderStatus { const CPDF_RenderStatus* pParentStatus, const CPDF_GraphicStates* pInitialStates, const CPDF_RenderOptions* pOptions, - int transparency, + const CPDF_Transparency& transparency, bool bDropObjects, const CPDF_Dictionary* pFormResource = nullptr, bool bStdCS = false, @@ -99,7 +100,7 @@ class CPDF_RenderStatus { FX_ARGB mask_argb, int bitmap_alpha, int blend_mode, - int iTransparency); + const CPDF_Transparency& transparency); private: bool ProcessTransparency(CPDF_PageObject* PageObj, @@ -177,7 +178,7 @@ class CPDF_RenderStatus { CPDF_GraphicStates m_InitialStates; std::unique_ptr<CPDF_ImageRenderer> m_pImageRenderer; bool m_bPrint = false; - int m_iTransparency = 0; + CPDF_Transparency m_Transparency; bool m_bDropObjects = false; bool m_bStdCS = false; uint32_t m_GroupFamily = 0; |