diff options
author | tsepez <tsepez@chromium.org> | 2016-12-14 14:15:14 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-12-14 14:15:14 -0800 |
commit | 72c1bda4efaf0121e13b794cb886acd9806b6c89 (patch) | |
tree | 42930bca08650730ef2aba728799c9428edab79e /core/fxge/dib/fx_dib_transform.cpp | |
parent | 5e4388ef805b1666a1064e4dc73f4f1e792aa041 (diff) | |
download | pdfium-72c1bda4efaf0121e13b794cb886acd9806b6c89.tar.xz |
Return unique_ptr from GetAlphaMask.
Rename GetAlphaMask => CloneAlphaMask since it does more than get.
Rename CopyAlphaMask => SetAlphaMask, as it copies IN, not OUT.
ditto for CopyPalette => SetPalette.
BUG=
Review-Url: https://codereview.chromium.org/2572243002
Diffstat (limited to 'core/fxge/dib/fx_dib_transform.cpp')
-rw-r--r-- | core/fxge/dib/fx_dib_transform.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fxge/dib/fx_dib_transform.cpp b/core/fxge/dib/fx_dib_transform.cpp index dacc0aa393..e56e7fccbb 100644 --- a/core/fxge/dib/fx_dib_transform.cpp +++ b/core/fxge/dib/fx_dib_transform.cpp @@ -194,7 +194,7 @@ CFX_DIBitmap* CFX_DIBSource::SwapXY(bool bXFlip, delete pTransBitmap; return nullptr; } - pTransBitmap->CopyPalette(m_pPalette.get()); + pTransBitmap->SetPalette(m_pPalette.get()); int dest_pitch = pTransBitmap->GetPitch(); uint8_t* dest_buf = pTransBitmap->GetBuffer(); int row_start = bXFlip ? m_Height - dest_clip.right : dest_clip.left; |