diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-10-04 14:22:18 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-10-04 18:33:08 +0000 |
commit | 3878e1a206db89f8a9e38c72e7557fab04f96aa5 (patch) | |
tree | e104af570d82ccb8338d514f60f9da4a2828c96b /core/fpdfapi/render/cpdf_transferfunc.h | |
parent | 643266cc8eb98ac680d838a2c5bc2dc8c25a9b08 (diff) | |
download | pdfium-3878e1a206db89f8a9e38c72e7557fab04f96aa5.tar.xz |
Make CPDF_TransferFunc members private
This CL moves the member variables of CPDF_TransferFunc to be private
from public and adds accessors as needed.
Change-Id: Ib5158721bbe833727b333da794d774f17e4fdea7
Reviewed-on: https://pdfium-review.googlesource.com/15451
Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'core/fpdfapi/render/cpdf_transferfunc.h')
-rw-r--r-- | core/fpdfapi/render/cpdf_transferfunc.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/core/fpdfapi/render/cpdf_transferfunc.h b/core/fpdfapi/render/cpdf_transferfunc.h index 40f83ea9a9..d7e21fcfef 100644 --- a/core/fpdfapi/render/cpdf_transferfunc.h +++ b/core/fpdfapi/render/cpdf_transferfunc.h @@ -22,13 +22,21 @@ class CPDF_TransferFunc : public Retainable { FX_COLORREF TranslateColor(FX_COLORREF src) const; RetainPtr<CFX_DIBSource> TranslateImage(const RetainPtr<CFX_DIBSource>& pSrc); - UnownedPtr<CPDF_Document> const m_pPDFDoc; - bool m_bIdentity; - uint8_t m_Samples[256 * 3]; + const CPDF_Document* GetDocument() const { return m_pPDFDoc.Get(); } + + const uint8_t* GetSamples() const { return m_Samples; } + uint8_t* GetSamples() { return m_Samples; } + + bool GetIdentity() const { return m_bIdentity; } + void SetIdentity(bool identity) { m_bIdentity = identity; } private: explicit CPDF_TransferFunc(CPDF_Document* pDoc); ~CPDF_TransferFunc() override; + + UnownedPtr<CPDF_Document> const m_pPDFDoc; + bool m_bIdentity; + uint8_t m_Samples[256 * 3]; }; #endif // CORE_FPDFAPI_RENDER_CPDF_TRANSFERFUNC_H_ |