From 56b272e9cb6c680c1fcda2984c23c47b6cc4b421 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Wed, 9 May 2018 19:20:43 +0000 Subject: 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 Commit-Queue: Lei Zhang --- core/fpdfapi/render/cpdf_renderstatus.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'core/fpdfapi/render/cpdf_renderstatus.h') 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 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 GetCachedType3(CPDF_Type3Font* pFont); static std::unique_ptr CloneObjStates( const CPDF_GraphicStates* pPathObj, -- cgit v1.2.3