summaryrefslogtreecommitdiff
path: root/core/fpdfapi/render/cpdf_renderstatus.h
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2016-11-23 08:41:57 -0800
committerCommit bot <commit-bot@chromium.org>2016-11-23 08:41:57 -0800
commit1e32d811c1c9f0a729e8072cf3530208cf52e763 (patch)
tree8793eef6b45564a49761fff824863e46a23b6797 /core/fpdfapi/render/cpdf_renderstatus.h
parent9e4fca796e2711fcd311b1203b75fdd7f737c9b5 (diff)
downloadpdfium-1e32d811c1c9f0a729e8072cf3530208cf52e763.tar.xz
Remove some .release() calls in cpdf_renderstatus
Propagates unique_ptr's back to callers. Review-Url: https://codereview.chromium.org/2518333003
Diffstat (limited to 'core/fpdfapi/render/cpdf_renderstatus.h')
-rw-r--r--core/fpdfapi/render/cpdf_renderstatus.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/core/fpdfapi/render/cpdf_renderstatus.h b/core/fpdfapi/render/cpdf_renderstatus.h
index b7e9fa6d0a..abc8458d9e 100644
--- a/core/fpdfapi/render/cpdf_renderstatus.h
+++ b/core/fpdfapi/render/cpdf_renderstatus.h
@@ -132,14 +132,14 @@ class CPDF_RenderStatus {
bool bStroke);
bool ProcessForm(const CPDF_FormObject* pFormObj,
const CFX_Matrix* pObj2Device);
- CFX_DIBitmap* GetBackdrop(const CPDF_PageObject* pObj,
- const FX_RECT& rect,
- int& left,
- int& top,
- bool bBackAlphaRequired);
- CFX_DIBitmap* LoadSMask(CPDF_Dictionary* pSMaskDict,
- FX_RECT* pClipRect,
- const CFX_Matrix* pMatrix);
+ std::unique_ptr<CFX_DIBitmap> GetBackdrop(const CPDF_PageObject* pObj,
+ const FX_RECT& rect,
+ int& left,
+ int& top,
+ bool bBackAlphaRequired);
+ std::unique_ptr<CFX_DIBitmap> LoadSMask(CPDF_Dictionary* pSMaskDict,
+ FX_RECT* pClipRect,
+ const CFX_Matrix* pMatrix);
static CPDF_Type3Cache* GetCachedType3(CPDF_Type3Font* pFont);
static CPDF_GraphicStates* CloneObjStates(const CPDF_GraphicStates* pPathObj,
bool bStroke);