summaryrefslogtreecommitdiff
path: root/core/fxge/dib/cfx_dibitmap.h
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_dibitmap.h
parentc87b9348a4f2ffcad1992d26504efa46548b5d83 (diff)
downloadpdfium-chromium/3589.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_dibitmap.h')
-rw-r--r--core/fxge/dib/cfx_dibitmap.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/core/fxge/dib/cfx_dibitmap.h b/core/fxge/dib/cfx_dibitmap.h
index 63aed7ffc6..8ab83c3eda 100644
--- a/core/fxge/dib/cfx_dibitmap.h
+++ b/core/fxge/dib/cfx_dibitmap.h
@@ -45,9 +45,8 @@ class CFX_DIBitmap : public CFX_DIBBase {
uint32_t GetPixel(int x, int y) const;
void SetPixel(int x, int y, uint32_t color);
- bool LoadChannel(FXDIB_Channel destChannel,
- const RetainPtr<CFX_DIBBase>& pSrcBitmap,
- FXDIB_Channel srcChannel);
+ bool LoadChannelFromAlpha(FXDIB_Channel destChannel,
+ const RetainPtr<CFX_DIBBase>& pSrcBitmap);
bool LoadChannel(FXDIB_Channel destChannel, int value);
bool MultiplyAlpha(int alpha);