diff options
author | npm <npm@chromium.org> | 2016-12-01 10:53:45 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-12-01 10:53:45 -0800 |
commit | 560680ce6d556a720e30bb6229fcb0751a37283e (patch) | |
tree | 34a3895bde9b3de39be62d89d433b5fe5f0b96fe /core/fpdfapi/render/render_int.h | |
parent | 9be9c3486688b84c723f41c85327abec238f15f9 (diff) | |
download | pdfium-560680ce6d556a720e30bb6229fcb0751a37283e.tar.xz |
Make CPDF_ImageCacheEntry's private CFX_DIBSources unique_ptrs
Review-Url: https://codereview.chromium.org/2541373002
Diffstat (limited to 'core/fpdfapi/render/render_int.h')
-rw-r--r-- | core/fpdfapi/render/render_int.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/fpdfapi/render/render_int.h b/core/fpdfapi/render/render_int.h index 35b8cc529e..9336e068d4 100644 --- a/core/fpdfapi/render/render_int.h +++ b/core/fpdfapi/render/render_int.h @@ -141,11 +141,12 @@ class CPDF_ImageCacheEntry { CPDF_Document* m_pDocument; CPDF_Stream* m_pStream; - CFX_DIBSource* m_pCachedBitmap; - CFX_DIBSource* m_pCachedMask; + std::unique_ptr<CFX_DIBSource> m_pCachedBitmap; + std::unique_ptr<CFX_DIBSource> m_pCachedMask; uint32_t m_dwCacheSize; void CalcSize(); }; + typedef struct { FX_FLOAT m_DecodeMin; FX_FLOAT m_DecodeStep; |