summaryrefslogtreecommitdiff
path: root/core/fpdfapi/render/cpdf_renderstatus.cpp
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-03-21 04:36:35 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-03-21 04:36:35 +0000
commit765d1ebe41defa659a703a2f0ff5284c0da96a95 (patch)
treeadaec2bce49268f18cd51ee05120d6a05dc74b3a /core/fpdfapi/render/cpdf_renderstatus.cpp
parentda89ac4c49013ce8d2d1d81e389cd37c0ee2ef27 (diff)
downloadpdfium-765d1ebe41defa659a703a2f0ff5284c0da96a95.tar.xz
Rename one ArgbEncode() variant to AlphaAndColorRefToArgb().
Mark the other ArgbEncode() variant as constexpr. Change-Id: I84207d805766e5efc669638bd8a15cfead356a41 Reviewed-on: https://pdfium-review.googlesource.com/28577 Commit-Queue: Lei Zhang <thestig@chromium.org> Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'core/fpdfapi/render/cpdf_renderstatus.cpp')
-rw-r--r--core/fpdfapi/render/cpdf_renderstatus.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/fpdfapi/render/cpdf_renderstatus.cpp b/core/fpdfapi/render/cpdf_renderstatus.cpp
index a0b6713274..d5204fe500 100644
--- a/core/fpdfapi/render/cpdf_renderstatus.cpp
+++ b/core/fpdfapi/render/cpdf_renderstatus.cpp
@@ -1373,7 +1373,7 @@ FX_ARGB CPDF_RenderStatus::GetFillArgb(CPDF_PageObject* pObj,
pObj->m_GeneralState.GetTransferFunc()->TranslateColor(colorref);
}
}
- return m_Options.TranslateColor(ArgbEncode(alpha, colorref));
+ return m_Options.TranslateColor(AlphaAndColorRefToArgb(alpha, colorref));
}
FX_ARGB CPDF_RenderStatus::GetStrokeArgb(CPDF_PageObject* pObj) const {
@@ -1400,7 +1400,7 @@ FX_ARGB CPDF_RenderStatus::GetStrokeArgb(CPDF_PageObject* pObj) const {
pObj->m_GeneralState.GetTransferFunc()->TranslateColor(colorref);
}
}
- return m_Options.TranslateColor(ArgbEncode(alpha, colorref));
+ return m_Options.TranslateColor(AlphaAndColorRefToArgb(alpha, colorref));
}
void CPDF_RenderStatus::ProcessClipPath(const CPDF_ClipPath& ClipPath,