summaryrefslogtreecommitdiff
path: root/core/fxge/dib/cfx_dibbase.cpp
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/fxge/dib/cfx_dibbase.cpp
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/fxge/dib/cfx_dibbase.cpp')
-rw-r--r--core/fxge/dib/cfx_dibbase.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fxge/dib/cfx_dibbase.cpp b/core/fxge/dib/cfx_dibbase.cpp
index 65b7e5eded..c70aad69b4 100644
--- a/core/fxge/dib/cfx_dibbase.cpp
+++ b/core/fxge/dib/cfx_dibbase.cpp
@@ -1056,7 +1056,7 @@ RetainPtr<CFX_DIBitmap> CFX_DIBBase::CloneConvert(FXDIB_Format dest_format) {
if (dest_format & 0x0200) {
bool ret;
if (dest_format == FXDIB_Argb) {
- ret = pSrcAlpha ? pClone->LoadChannel(FXDIB_Alpha, pSrcAlpha, FXDIB_Alpha)
+ ret = pSrcAlpha ? pClone->LoadChannelFromAlpha(FXDIB_Alpha, pSrcAlpha)
: pClone->LoadChannel(FXDIB_Alpha, 0xff);
} else {
ret = pClone->SetAlphaMask(pSrcAlpha, nullptr);