diff options
author | Lei Zhang <thestig@chromium.org> | 2018-05-09 19:20:43 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-05-09 19:20:43 +0000 |
commit | 56b272e9cb6c680c1fcda2984c23c47b6cc4b421 (patch) | |
tree | 6d24ffca02572afdda79edfdf1ea18f21308f556 /core/fpdfapi/render/cpdf_renderstatus.h | |
parent | 575ceba24463a2211e8669f8d919d3c91385d72b (diff) | |
download | pdfium-56b272e9cb6c680c1fcda2984c23c47b6cc4b421.tar.xz |
Break backcolor code out of CPDF_RenderStatus::LoadSMask().
Fix some nits in the code in the process.
Change-Id: I660b3bf547823a11bc291ed2dd1ec19a76b24b5b
Reviewed-on: https://pdfium-review.googlesource.com/32178
Reviewed-by: dsinclair <dsinclair@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'core/fpdfapi/render/cpdf_renderstatus.h')
-rw-r--r-- | core/fpdfapi/render/cpdf_renderstatus.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/fpdfapi/render/cpdf_renderstatus.h b/core/fpdfapi/render/cpdf_renderstatus.h index c6be9883d2..7058c0f9b9 100644 --- a/core/fpdfapi/render/cpdf_renderstatus.h +++ b/core/fpdfapi/render/cpdf_renderstatus.h @@ -148,6 +148,10 @@ class CPDF_RenderStatus { RetainPtr<CFX_DIBitmap> LoadSMask(CPDF_Dictionary* pSMaskDict, FX_RECT* pClipRect, const CFX_Matrix* pMatrix); + // Optionally write the colorspace family value into |pCSFamily|. + FX_ARGB GetBackColor(const CPDF_Dictionary* pSMaskDict, + const CPDF_Dictionary* pGroupDict, + int* pCSFamily); static RetainPtr<CPDF_Type3Cache> GetCachedType3(CPDF_Type3Font* pFont); static std::unique_ptr<CPDF_GraphicStates> CloneObjStates( const CPDF_GraphicStates* pPathObj, |