summaryrefslogtreecommitdiff
path: root/core/fpdfapi/render/cpdf_renderoptions.h
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-10-05 11:14:12 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-10-05 17:22:58 +0000
commit921fe6bfde3b4cf3da4b55fab77103af3a65cab4 (patch)
tree2587bf5ab7c8d72a085137c9986235c0c1514b2c /core/fpdfapi/render/cpdf_renderoptions.h
parent023d645733cddcf026897c51f3d4c34090eb4b2d (diff)
downloadpdfium-921fe6bfde3b4cf3da4b55fab77103af3a65cab4.tar.xz
Move CPDF_RenderOptions members to private
This CL moves the members of CPDF_RenderOptions to be private members and adds accessor methods as needed. Change-Id: Ie91665ff53ae00cc4c53741d089d375503fabe11 Reviewed-on: https://pdfium-review.googlesource.com/15531 Reviewed-by: Ryan Harrison <rharrison@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'core/fpdfapi/render/cpdf_renderoptions.h')
-rw-r--r--core/fpdfapi/render/cpdf_renderoptions.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/core/fpdfapi/render/cpdf_renderoptions.h b/core/fpdfapi/render/cpdf_renderoptions.h
index 1f6afc30e2..9dca633f3f 100644
--- a/core/fpdfapi/render/cpdf_renderoptions.h
+++ b/core/fpdfapi/render/cpdf_renderoptions.h
@@ -40,6 +40,24 @@ class CPDF_RenderOptions {
FX_ARGB TranslateColor(FX_ARGB argb) const;
+ void SetColorMode(Type mode) { m_ColorMode = mode; }
+ bool ColorModeIs(Type mode) const { return m_ColorMode == mode; }
+
+ bool HasFlag(uint32_t flag) const { return !!(m_Flags & flag); }
+ uint32_t GetFlags() const { return m_Flags; }
+ void SetFlags(uint32_t flags) { m_Flags = flags; }
+
+ uint32_t GetCacheSizeLimit() const { return m_dwLimitCacheSize; }
+
+ void SetDrawAnnots(bool draw) { m_bDrawAnnots = draw; }
+ bool GetDrawAnnots() const { return m_bDrawAnnots; }
+
+ void SetOCContext(RetainPtr<CPDF_OCContext> context) {
+ m_pOCContext = context;
+ }
+ CPDF_OCContext* GetOCContext() const { return m_pOCContext.Get(); }
+
+ private:
Type m_ColorMode;
uint32_t m_Flags;
uint32_t m_dwLimitCacheSize;