Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(92)

Side by Side Diff: core/fpdfapi/page/cpdf_image.h

Issue 2478253002: Revert of Remove CPDF_Object::Release() in favor of direct delete (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « core/fpdfapi/page/cpdf_contentmarkitem.cpp ('k') | core/fpdfapi/page/cpdf_image.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 PDFium Authors. All rights reserved. 1 // Copyright 2016 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #ifndef CORE_FPDFAPI_PAGE_CPDF_IMAGE_H_ 7 #ifndef CORE_FPDFAPI_PAGE_CPDF_IMAGE_H_
8 #define CORE_FPDFAPI_PAGE_CPDF_IMAGE_H_ 8 #define CORE_FPDFAPI_PAGE_CPDF_IMAGE_H_
9 9
10 #include "core/fpdfapi/parser/cpdf_stream.h" 10 #include "core/fpdfapi/parser/cpdf_stream.h"
(...skipping 10 matching lines...) Expand all
21 class CPDF_Dictionay; 21 class CPDF_Dictionay;
22 class CPDF_Document; 22 class CPDF_Document;
23 class CPDF_Page; 23 class CPDF_Page;
24 class IFX_Pause; 24 class IFX_Pause;
25 class IFX_SeekableReadStream; 25 class IFX_SeekableReadStream;
26 class IFX_SeekableWriteStream; 26 class IFX_SeekableWriteStream;
27 27
28 class CPDF_Image { 28 class CPDF_Image {
29 public: 29 public:
30 explicit CPDF_Image(CPDF_Document* pDoc); 30 explicit CPDF_Image(CPDF_Document* pDoc);
31 CPDF_Image(CPDF_Document* pDoc, std::unique_ptr<CPDF_Stream> pStream); 31 CPDF_Image(CPDF_Document* pDoc, UniqueStream pStream);
32 CPDF_Image(CPDF_Document* pDoc, uint32_t dwStreamObjNum); 32 CPDF_Image(CPDF_Document* pDoc, uint32_t dwStreamObjNum);
33 ~CPDF_Image(); 33 ~CPDF_Image();
34 34
35 CPDF_Image* Clone(); 35 CPDF_Image* Clone();
36 36
37 CPDF_Dictionary* GetInlineDict() const { return m_pDict; } 37 CPDF_Dictionary* GetInlineDict() const { return m_pDict; }
38 CPDF_Stream* GetStream() const { return m_pStream; } 38 CPDF_Stream* GetStream() const { return m_pStream; }
39 CPDF_Dictionary* GetDict() const { 39 CPDF_Dictionary* GetDict() const {
40 return m_pStream ? m_pStream->GetDict() : nullptr; 40 return m_pStream ? m_pStream->GetDict() : nullptr;
41 } 41 }
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 void FinishInitialization(); 77 void FinishInitialization();
78 CPDF_Dictionary* InitJPEG(uint8_t* pData, uint32_t size); 78 CPDF_Dictionary* InitJPEG(uint8_t* pData, uint32_t size);
79 79
80 int32_t m_Height = 0; 80 int32_t m_Height = 0;
81 int32_t m_Width = 0; 81 int32_t m_Width = 0;
82 bool m_bIsMask = false; 82 bool m_bIsMask = false;
83 bool m_bInterpolate = false; 83 bool m_bInterpolate = false;
84 CPDF_Document* const m_pDocument; 84 CPDF_Document* const m_pDocument;
85 CPDF_Stream* m_pStream = nullptr; 85 CPDF_Stream* m_pStream = nullptr;
86 CPDF_Dictionary* m_pDict = nullptr; 86 CPDF_Dictionary* m_pDict = nullptr;
87 std::unique_ptr<CPDF_Stream> m_pOwnedStream; 87 UniqueStream m_pOwnedStream;
88 std::unique_ptr<CPDF_Dictionary> m_pOwnedDict; 88 UniqueDictionary m_pOwnedDict;
89 CPDF_Dictionary* m_pOC = nullptr; 89 CPDF_Dictionary* m_pOC = nullptr;
90 }; 90 };
91 91
92 #endif // CORE_FPDFAPI_PAGE_CPDF_IMAGE_H_ 92 #endif // CORE_FPDFAPI_PAGE_CPDF_IMAGE_H_
OLDNEW
« no previous file with comments | « core/fpdfapi/page/cpdf_contentmarkitem.cpp ('k') | core/fpdfapi/page/cpdf_image.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698