summaryrefslogtreecommitdiff
path: root/core/fxcodec/codec/ccodec_iccmodule.h
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-06-29 20:38:59 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-06-29 20:38:59 +0000
commit1839a4bc01a6c6fe6a22474d2c6d4f09a9772371 (patch)
tree7e42e737ea68a70ce999eb59253ffc8281060f45 /core/fxcodec/codec/ccodec_iccmodule.h
parentf7155bf3c8fa8cf4593f2517ef3f005e3190609f (diff)
downloadpdfium-1839a4bc01a6c6fe6a22474d2c6d4f09a9772371.tar.xz
Clean up CLcmsCmm.
Make members const and private. Fix nits. Change-Id: I945bc26438f8fbd6904dc1b15513ab9e51170dc7 Reviewed-on: https://pdfium-review.googlesource.com/36631 Commit-Queue: Lei Zhang <thestig@chromium.org> Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Diffstat (limited to 'core/fxcodec/codec/ccodec_iccmodule.h')
-rw-r--r--core/fxcodec/codec/ccodec_iccmodule.h20
1 files changed, 13 insertions, 7 deletions
diff --git a/core/fxcodec/codec/ccodec_iccmodule.h b/core/fxcodec/codec/ccodec_iccmodule.h
index 0d60c3fd4a..38d9ec8686 100644
--- a/core/fxcodec/codec/ccodec_iccmodule.h
+++ b/core/fxcodec/codec/ccodec_iccmodule.h
@@ -22,15 +22,21 @@
class CLcmsCmm {
public:
- CLcmsCmm(int srcComponents,
- cmsHTRANSFORM transform,
- bool isLab,
+ CLcmsCmm(cmsHTRANSFORM transform,
+ int srcComponents,
+ bool bIsLab,
bool bNormal);
~CLcmsCmm();
- cmsHTRANSFORM m_hTransform;
- int m_nSrcComponents;
- bool m_bLab;
+ cmsHTRANSFORM transform() const { return m_hTransform; }
+ int components() const { return m_nSrcComponents; }
+ bool IsLab() const { return m_bLab; }
+ bool IsNormal() const { return m_bNormal; }
+
+ private:
+ const cmsHTRANSFORM m_hTransform;
+ const int m_nSrcComponents;
+ const bool m_bLab;
const bool m_bNormal;
};
@@ -52,7 +58,7 @@ class CCodec_IccModule {
void SetComponents(uint32_t nComponents) { m_nComponents = nComponents; }
protected:
- uint32_t m_nComponents;
+ uint32_t m_nComponents = 0;
};
#endif // CORE_FXCODEC_CODEC_CCODEC_ICCMODULE_H_