From 20f804166944e7707e0a980626bdd9f4a293a32c Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Mon, 22 Oct 2018 22:43:15 +0000 Subject: Remove third arg to CFX_DIBitmap::LoadChannel() 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 Commit-Queue: Tom Sepez --- core/fxge/dib/cfx_dibitmap.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'core/fxge/dib/cfx_dibitmap.h') 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& pSrcBitmap, - FXDIB_Channel srcChannel); + bool LoadChannelFromAlpha(FXDIB_Channel destChannel, + const RetainPtr& pSrcBitmap); bool LoadChannel(FXDIB_Channel destChannel, int value); bool MultiplyAlpha(int alpha); -- cgit v1.2.3