summaryrefslogtreecommitdiff
path: root/core/fpdfapi/render
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2018-10-22 22:43:15 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-10-22 22:43:15 +0000
commit20f804166944e7707e0a980626bdd9f4a293a32c (patch)
tree369ac4a24dd9313b7d39394d1a0ce6e3c63d2f77 /core/fpdfapi/render
parentc87b9348a4f2ffcad1992d26504efa46548b5d83 (diff)
downloadpdfium-20f804166944e7707e0a980626bdd9f4a293a32c.tar.xz
Remove third arg to CFX_DIBitmap::LoadChannel()chromium/3589
It is always passed as FXDIB_Alpha. Rename method to indicate its new purpose, and remove dead code. Change-Id: Ifaf4faa6b25d1cbd2ff272309764b49de70dc836 Reviewed-on: https://pdfium-review.googlesource.com/c/44491 Reviewed-by: Lei Zhang <thestig@chromium.org> Commit-Queue: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'core/fpdfapi/render')
-rw-r--r--core/fpdfapi/render/cpdf_renderstatus.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fpdfapi/render/cpdf_renderstatus.cpp b/core/fpdfapi/render/cpdf_renderstatus.cpp
index 982f69acf9..6943661cf3 100644
--- a/core/fpdfapi/render/cpdf_renderstatus.cpp
+++ b/core/fpdfapi/render/cpdf_renderstatus.cpp
@@ -2102,7 +2102,7 @@ void CPDF_RenderStatus::DrawShading(const CPDF_ShadingPattern* pPattern,
} break;
}
if (bAlphaMode)
- pBitmap->LoadChannel(FXDIB_Red, pBitmap, FXDIB_Alpha);
+ pBitmap->LoadChannelFromAlpha(FXDIB_Red, pBitmap);
if (m_Options.ColorModeIs(CPDF_RenderOptions::kGray))
pBitmap->ConvertColorScale(0, 0xffffff);