diff options
author | Tom Sepez <tsepez@chromium.org> | 2017-03-31 17:10:34 -0700 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-04-01 02:37:29 +0000 |
commit | 7d4f6a89d7e2c5d13b7d630d6348950044a5465e (patch) | |
tree | 3e0d95ba83fb471ef6d5a9cfde5a4d8bfd103471 /core/fpdfapi/parser/cpdf_document.cpp | |
parent | 984f1d877ac59315f4c070b1d63c9f651221760b (diff) | |
download | pdfium-chromium/3060.tar.xz |
Refcount CPDF_Image all the time.chromium/3061chromium/3060
Remove the old externally-counted CPDF_CountedImage type.
Change-Id: Ia0b288586272da3f2daf7dfc153f08e62794321a
Reviewed-on: https://pdfium-review.googlesource.com/3553
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'core/fpdfapi/parser/cpdf_document.cpp')
-rw-r--r-- | core/fpdfapi/parser/cpdf_document.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/fpdfapi/parser/cpdf_document.cpp b/core/fpdfapi/parser/cpdf_document.cpp index dec0f5097e..fb2c723ce4 100644 --- a/core/fpdfapi/parser/cpdf_document.cpp +++ b/core/fpdfapi/parser/cpdf_document.cpp @@ -649,7 +649,8 @@ CPDF_IccProfile* CPDF_Document::LoadIccProfile(CPDF_Stream* pStream) { return m_pDocPage->GetIccProfile(pStream); } -CPDF_Image* CPDF_Document::LoadImageFromPageData(uint32_t dwStreamObjNum) { +CFX_RetainPtr<CPDF_Image> CPDF_Document::LoadImageFromPageData( + uint32_t dwStreamObjNum) { ASSERT(dwStreamObjNum); return m_pDocPage->GetImage(dwStreamObjNum); } |