summaryrefslogtreecommitdiff
path: root/core/fpdfapi/render/cpdf_renderoptions.cpp
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.cpp
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.cpp')
-rw-r--r--core/fpdfapi/render/cpdf_renderoptions.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/fpdfapi/render/cpdf_renderoptions.cpp b/core/fpdfapi/render/cpdf_renderoptions.cpp
index 7916243cba..9af951137e 100644
--- a/core/fpdfapi/render/cpdf_renderoptions.cpp
+++ b/core/fpdfapi/render/cpdf_renderoptions.cpp
@@ -22,9 +22,9 @@ CPDF_RenderOptions::CPDF_RenderOptions(const CPDF_RenderOptions& rhs)
CPDF_RenderOptions::~CPDF_RenderOptions() {}
FX_ARGB CPDF_RenderOptions::TranslateColor(FX_ARGB argb) const {
- if (m_ColorMode == kNormal)
+ if (ColorModeIs(kNormal))
return argb;
- if (m_ColorMode == kAlpha)
+ if (ColorModeIs(kAlpha))
return argb;
int a;