diff options
author | Nicolas Pena <npm@chromium.org> | 2017-04-06 14:28:21 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-04-07 01:03:11 +0000 |
commit | 4bb4029b1523aa1dbd328fee6ac66385c5fa5b48 (patch) | |
tree | 4084730f50784fcc6787401099dcbbcf6ea3e8b7 /core/fxge/dib/cfx_dibitmap.h | |
parent | 2b797295d6851b3189bcb38c5994074f36453865 (diff) | |
download | pdfium-4bb4029b1523aa1dbd328fee6ac66385c5fa5b48.tar.xz |
Use CFX_MaybeOwned on the buffer of CFX_DIBitmap
Change-Id: Ia4181a2838de60e4e177165b3689338c86f45771
Reviewed-on: https://pdfium-review.googlesource.com/3817
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Commit-Queue: Nicolás Peña <npm@chromium.org>
Diffstat (limited to 'core/fxge/dib/cfx_dibitmap.h')
-rw-r--r-- | core/fxge/dib/cfx_dibitmap.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/fxge/dib/cfx_dibitmap.h b/core/fxge/dib/cfx_dibitmap.h index 9cb46afb53..87688a1ade 100644 --- a/core/fxge/dib/cfx_dibitmap.h +++ b/core/fxge/dib/cfx_dibitmap.h @@ -7,6 +7,7 @@ #ifndef CORE_FXGE_DIB_CFX_DIBITMAP_H_ #define CORE_FXGE_DIB_CFX_DIBITMAP_H_ +#include "core/fxcrt/cfx_maybe_owned.h" #include "core/fxcrt/cfx_retain_ptr.h" #include "core/fxcrt/fx_basic.h" #include "core/fxcrt/fx_coordinates.h" @@ -119,17 +120,16 @@ class CFX_DIBitmap : public CFX_DIBSource { protected: CFX_DIBitmap(); CFX_DIBitmap(const CFX_DIBitmap& src); - bool GetGrayData(void* pIccTransform = nullptr); + bool GetGrayData(void* pIccTransform = nullptr); #if defined _SKIA_SUPPORT_PATHS_ enum class Format { kCleared, kPreMultiplied, kUnPreMultiplied }; #endif - uint8_t* m_pBuffer; + CFX_MaybeOwned<uint8_t, FxFreeDeleter> m_pBuffer; #if defined _SKIA_SUPPORT_PATHS_ Format m_nFormat; #endif - bool m_bExtBuf; }; #endif // CORE_FXGE_DIB_CFX_DIBITMAP_H_ |