From 2895880fa8354b273b4e2b72e61a5b78d1985fa8 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Fri, 29 Jun 2018 18:39:50 +0000 Subject: Better determine if ICC colorspaces can be used for blending. Implement CPDF_ColorSpace::IsNormal() and check it when rendering. While IsNormal() is trivial for most colorspaces, it needs to be implemented separately for ICC colorspaces. This fixes a rendering regression from commit 1c0de38c. BUG=chromium:847346 Change-Id: Iaafed3f8ee40b26ac2cbfbdf2251407f7935311b Reviewed-on: https://pdfium-review.googlesource.com/36571 Reviewed-by: Henrique Nakashima Commit-Queue: Lei Zhang --- core/fxcodec/codec/ccodec_iccmodule.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'core/fxcodec/codec/ccodec_iccmodule.h') diff --git a/core/fxcodec/codec/ccodec_iccmodule.h b/core/fxcodec/codec/ccodec_iccmodule.h index c304b4bb8e..0d60c3fd4a 100644 --- a/core/fxcodec/codec/ccodec_iccmodule.h +++ b/core/fxcodec/codec/ccodec_iccmodule.h @@ -22,12 +22,16 @@ class CLcmsCmm { public: - CLcmsCmm(int srcComponents, cmsHTRANSFORM transform, bool isLab); + CLcmsCmm(int srcComponents, + cmsHTRANSFORM transform, + bool isLab, + bool bNormal); ~CLcmsCmm(); cmsHTRANSFORM m_hTransform; int m_nSrcComponents; bool m_bLab; + const bool m_bNormal; }; class CCodec_IccModule { -- cgit v1.2.3