summaryrefslogtreecommitdiff
path: root/core/fpdfapi/render/cpdf_transferfunc.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/fpdfapi/render/cpdf_transferfunc.h')
-rw-r--r--core/fpdfapi/render/cpdf_transferfunc.h14
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_