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

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

Issue 2451493002: Refcount all the IFX_ stream classes all the time. (Closed)
Patch Set: Clean up cast expression Created 4 years 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/edit/fpdf_edit_create.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 <memory> 10 #include <memory>
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 bool IsMask() const { return m_bIsMask; } 44 bool IsMask() const { return m_bIsMask; }
45 bool IsInterpol() const { return m_bInterpolate; } 45 bool IsInterpol() const { return m_bInterpolate; }
46 46
47 CFX_DIBSource* LoadDIBSource(CFX_DIBSource** ppMask = nullptr, 47 CFX_DIBSource* LoadDIBSource(CFX_DIBSource** ppMask = nullptr,
48 uint32_t* pMatteColor = nullptr, 48 uint32_t* pMatteColor = nullptr,
49 bool bStdCS = false, 49 bool bStdCS = false,
50 uint32_t GroupFamily = 0, 50 uint32_t GroupFamily = 0,
51 bool bLoadMask = false) const; 51 bool bLoadMask = false) const;
52 52
53 void SetImage(const CFX_DIBitmap* pDIBitmap); 53 void SetImage(const CFX_DIBitmap* pDIBitmap);
54 void SetJpegImage(IFX_SeekableReadStream* pFile); 54 void SetJpegImage(const CFX_RetainPtr<IFX_SeekableReadStream>& pFile);
55 55
56 void ResetCache(CPDF_Page* pPage, const CFX_DIBitmap* pDIBitmap); 56 void ResetCache(CPDF_Page* pPage, const CFX_DIBitmap* pDIBitmap);
57 57
58 bool StartLoadDIBSource(CPDF_Dictionary* pFormResource, 58 bool StartLoadDIBSource(CPDF_Dictionary* pFormResource,
59 CPDF_Dictionary* pPageResource, 59 CPDF_Dictionary* pPageResource,
60 bool bStdCS = false, 60 bool bStdCS = false,
61 uint32_t GroupFamily = 0, 61 uint32_t GroupFamily = 0,
62 bool bLoadMask = false); 62 bool bLoadMask = false);
63 bool Continue(IFX_Pause* pPause); 63 bool Continue(IFX_Pause* pPause);
64 CFX_DIBSource* DetachBitmap(); 64 CFX_DIBSource* DetachBitmap();
(...skipping 12 matching lines...) Expand all
77 bool m_bIsInline = false; 77 bool m_bIsInline = false;
78 bool m_bIsMask = false; 78 bool m_bIsMask = false;
79 bool m_bInterpolate = false; 79 bool m_bInterpolate = false;
80 CPDF_Document* const m_pDocument; 80 CPDF_Document* const m_pDocument;
81 CFX_MaybeOwned<CPDF_Stream> m_pStream; 81 CFX_MaybeOwned<CPDF_Stream> m_pStream;
82 CFX_MaybeOwned<CPDF_Dictionary> m_pDict; 82 CFX_MaybeOwned<CPDF_Dictionary> m_pDict;
83 CPDF_Dictionary* m_pOC = nullptr; 83 CPDF_Dictionary* m_pOC = nullptr;
84 }; 84 };
85 85
86 #endif // CORE_FPDFAPI_PAGE_CPDF_IMAGE_H_ 86 #endif // CORE_FPDFAPI_PAGE_CPDF_IMAGE_H_
OLDNEW
« no previous file with comments | « core/fpdfapi/edit/fpdf_edit_create.cpp ('k') | core/fpdfapi/page/cpdf_image.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698