diff options
author | tsepez <tsepez@chromium.org> | 2016-12-14 19:48:47 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-12-14 19:48:47 -0800 |
commit | b8642f8a3c3a6d359c4e319b8ba91f8df6448a4f (patch) | |
tree | bc5443fec6a3bf35dd883a66cdfd056397998013 /core/fxge/fx_dib.h | |
parent | c7739322e5cdcc5779bdde2a1560ea3dee891e51 (diff) | |
download | pdfium-b8642f8a3c3a6d359c4e319b8ba91f8df6448a4f.tar.xz |
More unique_ptr returns from DIB methods.
Review-Url: https://codereview.chromium.org/2572293002
Diffstat (limited to 'core/fxge/fx_dib.h')
-rw-r--r-- | core/fxge/fx_dib.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/core/fxge/fx_dib.h b/core/fxge/fx_dib.h index c083bf732f..14be05fafe 100644 --- a/core/fxge/fx_dib.h +++ b/core/fxge/fx_dib.h @@ -218,7 +218,6 @@ class CFX_DIBSource { std::unique_ptr<CFX_DIBitmap> Clone(const FX_RECT* pClip = nullptr) const; std::unique_ptr<CFX_DIBitmap> CloneConvert(FXDIB_Format format) const; - std::unique_ptr<CFX_DIBitmap> StretchTo(int dest_width, int dest_height, uint32_t flags = 0, @@ -229,6 +228,10 @@ class CFX_DIBSource { int& top, uint32_t flags = 0, const FX_RECT* pClip = nullptr) const; + std::unique_ptr<CFX_DIBitmap> SwapXY(bool bXFlip, + bool bYFlip, + const FX_RECT* pClip = nullptr) const; + std::unique_ptr<CFX_DIBitmap> FlipImage(bool bXFlip, bool bYFlip) const; std::unique_ptr<CFX_DIBitmap> CloneAlphaMask( const FX_RECT* pClip = nullptr) const; @@ -237,11 +240,6 @@ class CFX_DIBSource { bool SetAlphaMask(const CFX_DIBSource* pAlphaMask, const FX_RECT* pClip = nullptr); - CFX_DIBitmap* SwapXY(bool bXFlip, - bool bYFlip, - const FX_RECT* pClip = nullptr) const; - - CFX_DIBitmap* FlipImage(bool bXFlip, bool bYFlip) const; void GetOverlapRect(int& dest_left, int& dest_top, |