summaryrefslogtreecommitdiff
path: root/core/fpdfapi/render/render_int.h
diff options
context:
space:
mode:
authornpm <npm@chromium.org>2016-12-01 10:53:45 -0800
committerCommit bot <commit-bot@chromium.org>2016-12-01 10:53:45 -0800
commit560680ce6d556a720e30bb6229fcb0751a37283e (patch)
tree34a3895bde9b3de39be62d89d433b5fe5f0b96fe /core/fpdfapi/render/render_int.h
parent9be9c3486688b84c723f41c85327abec238f15f9 (diff)
downloadpdfium-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.h5
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;