Home
last modified time | relevance | path

Searched refs:RetainPtr (Results 1 – 25 of 428) sorted by relevance

12345678910>>...18

/external/pdfium/core/fxcrt/
Dretain_ptr_unittest.cpp15 TEST(RetainPtr, Null) { in TEST() argument
16 RetainPtr<PseudoRetainable> ptr; in TEST()
20 TEST(RetainPtr, Normal) { in TEST() argument
23 RetainPtr<PseudoRetainable> ptr(&obj); in TEST()
32 TEST(RetainPtr, CopyCtor) { in TEST() argument
35 RetainPtr<PseudoRetainable> ptr1(&obj); in TEST()
37 RetainPtr<PseudoRetainable> ptr2(ptr1); in TEST()
48 TEST(RetainPtr, MoveCtor) { in TEST() argument
51 RetainPtr<PseudoRetainable> ptr1(&obj); in TEST()
53 RetainPtr<PseudoRetainable> ptr2(std::move(ptr1)); in TEST()
[all …]
Dretain_ptr.h25 class RetainPtr {
27 explicit RetainPtr(T* pObj) : m_pObj(pObj) { in RetainPtr() function
32 RetainPtr() = default;
33 RetainPtr(const RetainPtr& that) : RetainPtr(that.Get()) {} in RetainPtr() function
36 RetainPtr(RetainPtr&& that) noexcept { Swap(that); } in RetainPtr() function
40 RetainPtr(std::nullptr_t ptr) {} in RetainPtr() function
43 RetainPtr(const RetainPtr<U>& that) : RetainPtr(that.Get()) {} in RetainPtr() function
46 RetainPtr<U> As() const { in As()
47 return RetainPtr<U>(static_cast<U*>(Get())); in As()
58 void Swap(RetainPtr& that) { m_pObj.swap(that.m_pObj); } in Swap()
[all …]
Dretained_tree_node_unittest.cpp19 friend RetainPtr<T> pdfium::MakeRetain(Args&&... args);
26 const RetainPtr<ObservableRetainedTreeNodeForTest>& parent) { in AddClutterToFront()
34 const RetainPtr<ObservableRetainedTreeNodeForTest>& parent) { in AddClutterToBack()
46 RetainPtr<ObservableRetainedTreeNodeForTest> ptr = in TEST()
57 RetainPtr<ObservableRetainedTreeNodeForTest> parent = in TEST()
60 RetainPtr<ObservableRetainedTreeNodeForTest> ptr = in TEST()
73 RetainPtr<ObservableRetainedTreeNodeForTest> ptr = in TEST()
88 RetainPtr<ObservableRetainedTreeNodeForTest> parent = in TEST()
91 RetainPtr<ObservableRetainedTreeNodeForTest> ptr = in TEST()
101 RetainPtr<ObservableRetainedTreeNodeForTest> ptr = in TEST()
[all …]
/external/pdfium/core/fpdfapi/page/
Dcpdf_image.h29 friend RetainPtr<T> pdfium::MakeRetain(Args&&... args);
48 RetainPtr<CFX_DIBBase> LoadDIBBase() const;
50 void SetImage(const RetainPtr<CFX_DIBitmap>& pBitmap);
51 void SetJpegImage(const RetainPtr<IFX_SeekableReadStream>& pFile);
52 void SetJpegImageInline(const RetainPtr<IFX_SeekableReadStream>& pFile);
66 RetainPtr<CFX_DIBBase> DetachBitmap();
67 RetainPtr<CFX_DIBBase> DetachMask();
69 RetainPtr<CFX_DIBBase> m_pDIBBase;
70 RetainPtr<CFX_DIBBase> m_pMask;
75 CPDF_Image(CPDF_Document* pDoc, RetainPtr<CPDF_Stream> pStream);
[all …]
Dcpdf_docpagedata.h43 RetainPtr<CPDF_StreamAcc> GetFontFileStreamAcc(
55 RetainPtr<CPDF_Font> AddFont(std::unique_ptr<CFX_Font> pFont, int charset);
56 RetainPtr<CPDF_Font> GetFont(CPDF_Dictionary* pFontDict);
57 RetainPtr<CPDF_Font> AddStandardFont(const ByteString& fontName,
59 RetainPtr<CPDF_Font> GetStandardFont(const ByteString& fontName,
62 RetainPtr<CPDF_Font> AddWindowsFont(LOGFONTA* pLogFont);
66 RetainPtr<CPDF_ColorSpace> GetColorSpace(const CPDF_Object* pCSObj,
72 RetainPtr<CPDF_ColorSpace> GetColorSpaceGuarded(
77 RetainPtr<CPDF_Pattern> GetPattern(CPDF_Object* pPatternObj,
81 RetainPtr<CPDF_Image> GetImage(uint32_t dwStreamObjNum);
[all …]
Dcpdf_generalstate.h47 RetainPtr<CPDF_TransferFunc> GetTransferFunc() const;
48 void SetTransferFunc(const RetainPtr<CPDF_TransferFunc>& pFunc);
84 friend RetainPtr<T> pdfium::MakeRetain(Args&&... args);
86 RetainPtr<StateData> Clone() const;
90 RetainPtr<CPDF_Object> m_pSoftMask;
94 RetainPtr<const CPDF_Object> m_pTR;
95 RetainPtr<CPDF_TransferFunc> m_pTransferFunc;
104 RetainPtr<const CPDF_Object> m_pBG;
105 RetainPtr<const CPDF_Object> m_pUCR;
106 RetainPtr<const CPDF_Object> m_pHT;
Dcpdf_dib.h46 friend RetainPtr<T> pdfium::MakeRetain(Args&&... args);
62 RetainPtr<CPDF_ColorSpace> GetColorSpace() const { return m_pColorSpace; } in GetColorSpace()
74 RetainPtr<CPDF_DIB> DetachMask();
83 LoadState StartLoadMaskDIB(RetainPtr<const CPDF_Stream> mask);
89 RetainPtr<CFX_DIBitmap> LoadJpxBitmap();
130 RetainPtr<const CPDF_Stream> m_pStream;
131 RetainPtr<const CPDF_Dictionary> m_pDict;
132 RetainPtr<CPDF_StreamAcc> m_pStreamAcc;
133 RetainPtr<CPDF_ColorSpace> m_pColorSpace;
151 RetainPtr<CFX_DIBitmap> m_pCachedBitmap;
[all …]
Dcpdf_colorstate.h45 void SetFillColor(const RetainPtr<CPDF_ColorSpace>& pCS,
47 void SetStrokeColor(const RetainPtr<CPDF_ColorSpace>& pCS,
49 void SetFillPattern(const RetainPtr<CPDF_Pattern>& pattern,
51 void SetStrokePattern(const RetainPtr<CPDF_Pattern>& pattern,
60 friend RetainPtr<T> pdfium::MakeRetain(Args&&... args);
62 RetainPtr<ColorData> Clone() const;
77 void SetColor(const RetainPtr<CPDF_ColorSpace>& pCS,
81 void SetPattern(const RetainPtr<CPDF_Pattern>& pPattern,
/external/pdfium/core/fpdfapi/parser/
Dcpdf_stream.h23 friend RetainPtr<T> pdfium::MakeRetain(Args&&... args);
27 RetainPtr<CPDF_Object> Clone() const override;
55 RetainPtr<CPDF_Dictionary> pDict);
56 void InitStreamFromFile(const RetainPtr<IFX_SeekableReadStream>& pFile,
57 RetainPtr<CPDF_Dictionary> pDict);
68 RetainPtr<CPDF_Dictionary> pDict);
71 RetainPtr<CPDF_Object> CloneNonCyclic(
77 RetainPtr<CPDF_Dictionary> m_pDict;
79 RetainPtr<IFX_SeekableReadStream> m_pFile;
90 inline RetainPtr<CPDF_Stream> ToStream(RetainPtr<CPDF_Object> obj) { in ToStream()
[all …]
Dcpdf_syntax_parser.h30 const RetainPtr<IFX_SeekableReadStream>& pFileAccess,
34 const RetainPtr<IFX_SeekableReadStream>& pFileAccess);
35 CPDF_SyntaxParser(const RetainPtr<CPDF_ReadValidator>& pValidator,
46 RetainPtr<CPDF_Object> GetObjectBody(CPDF_IndirectObjectHolder* pObjList);
48 RetainPtr<CPDF_Object> GetIndirectObject(CPDF_IndirectObjectHolder* pObjList,
61 const RetainPtr<CPDF_ReadValidator>& GetValidator() const { in GetValidator()
96 RetainPtr<CPDF_Stream> ReadStream(RetainPtr<CPDF_Dictionary> pDict);
100 RetainPtr<CPDF_Object> GetObjectBodyInternal(
104 RetainPtr<CPDF_ReadValidator> m_pFileAccess;
/external/pdfium/xfa/fgas/font/
Dcfgas_gefont.h31 friend RetainPtr<T> pdfium::MakeRetain(Args&&... args);
33 static RetainPtr<CFGAS_GEFont> LoadFont(const wchar_t* pszFontFamily,
37 static RetainPtr<CFGAS_GEFont> LoadFont(const RetainPtr<CPDF_Font>& pPDFFont,
39 static RetainPtr<CFGAS_GEFont> LoadFont(
43 static RetainPtr<CFGAS_GEFont> LoadStockFont(CPDF_Document* pDoc,
56 RetainPtr<CFGAS_GEFont> GetSubstFont(int32_t iGlyphIndex);
74 bool LoadFontInternal(const RetainPtr<CPDF_Font>& pPDFFont);
76 std::pair<int32_t, RetainPtr<CFGAS_GEFont>> GetGlyphIndexAndFont(
82 RetainPtr<CPDF_Font> m_pPDFFont; // Must come before |m_pFont|.
88 std::vector<RetainPtr<CFGAS_GEFont>> m_SubstFonts;
[all …]
Dcfgas_fontmgr.h104 RetainPtr<CFGAS_GEFont> GetFontByCodePage(uint16_t wCodePage,
107 RetainPtr<CFGAS_GEFont> GetFontByUnicode(wchar_t wUnicode,
110 RetainPtr<CFGAS_GEFont> LoadFont(const wchar_t* pszFontFamily,
113 void RemoveFont(const RetainPtr<CFGAS_GEFont>& pFont);
118 RetainPtr<CFGAS_GEFont> GetFontByUnicodeImpl(wchar_t wUnicode,
136 void RegisterFace(RetainPtr<CFX_Face> pFace, const WideString* pFaceName);
137 void RegisterFaces(const RetainPtr<IFX_SeekableReadStream>& pFontStream,
144 RetainPtr<CFGAS_GEFont> LoadFontInternal(const WideString& wsFaceName,
148 std::map<uint32_t, std::vector<RetainPtr<CFGAS_GEFont>>> m_Hash2Fonts;
158 std::map<RetainPtr<CFGAS_GEFont>, RetainPtr<IFX_SeekableReadStream>>
Dcfgas_gefont.cpp23 RetainPtr<CFGAS_GEFont> CFGAS_GEFont::LoadFont(const wchar_t* pszFontFamily, in LoadFont()
40 RetainPtr<CFGAS_GEFont> CFGAS_GEFont::LoadFont( in LoadFont()
41 const RetainPtr<CPDF_Font>& pPDFFont, in LoadFont()
51 RetainPtr<CFGAS_GEFont> CFGAS_GEFont::LoadFont( in LoadFont()
61 RetainPtr<CFGAS_GEFont> CFGAS_GEFont::LoadStockFont( in LoadStockFont()
65 RetainPtr<CPDF_Font> stock_font = in LoadStockFont()
100 bool CFGAS_GEFont::LoadFontInternal(const RetainPtr<CPDF_Font>& pPDFFont) { in LoadFontInternal()
168 RetainPtr<CFGAS_GEFont> pFont; in GetCharWidth()
194 RetainPtr<CFGAS_GEFont> pFont; in GetCharBBox()
218 RetainPtr<CFGAS_GEFont> font; in GetGlyphIndex()
[all …]
/external/pdfium/core/fpdfdoc/
Dcba_fontmap.h29 RetainPtr<CPDF_Font> GetPDFFont(int32_t nFontIndex) override;
45 RetainPtr<CPDF_Font> pFont;
56 RetainPtr<CPDF_Font> FindFontSameCharset(ByteString* sFontAlias,
58 RetainPtr<CPDF_Font> FindResFontSameCharset(const CPDF_Dictionary* pResDict,
61 RetainPtr<CPDF_Font> GetAnnotDefaultFont(ByteString* sAlias);
62 void AddFontToAnnotDict(const RetainPtr<CPDF_Font>& pFont,
71 int32_t AddFontData(const RetainPtr<CPDF_Font>& pFont,
82 RetainPtr<CPDF_Font> AddFontToDocument(ByteString sFontName,
84 RetainPtr<CPDF_Font> AddStandardFont(ByteString sFontName);
85 RetainPtr<CPDF_Font> AddSystemFont(ByteString sFontName, uint8_t nCharset);
[all …]
Dcpdf_structtree.h37 std::map<const CPDF_Dictionary*, RetainPtr<CPDF_StructElement>>;
40 RetainPtr<CPDF_StructElement> AddPageNode(const CPDF_Dictionary* pDict,
44 const RetainPtr<CPDF_StructElement>& pElement);
46 RetainPtr<const CPDF_Dictionary> const m_pTreeRoot;
47 RetainPtr<const CPDF_Dictionary> const m_pRoleMap;
48 RetainPtr<const CPDF_Dictionary> m_pPage;
49 std::vector<RetainPtr<CPDF_StructElement>> m_Kids;
/external/pdfium/core/fxge/skia/
Dfx_skia_device.h28 CFX_SkiaDeviceDriver(const RetainPtr<CFX_DIBitmap>& pBitmap,
30 const RetainPtr<CFX_DIBitmap>& pBackdropBitmap,
82 bool GetDIBits(const RetainPtr<CFX_DIBitmap>& pBitmap,
86 RetainPtr<CFX_DIBitmap> GetBackDrop() override;
88 bool SetDIBits(const RetainPtr<CFX_DIBBase>& pBitmap,
95 bool SetBitsWithMask(const RetainPtr<CFX_DIBBase>& pBitmap,
96 const RetainPtr<CFX_DIBBase>& pMask,
107 bool StretchDIBits(const RetainPtr<CFX_DIBBase>& pBitmap,
117 bool StartDIBits(const RetainPtr<CFX_DIBBase>& pBitmap,
128 bool DrawBitsWithMask(const RetainPtr<CFX_DIBBase>& pBitmap,
[all …]
/external/pdfium/core/fpdfapi/render/
Dcpdf_imagecacheentry.h24 const RetainPtr<CPDF_Image>& pImage);
43 RetainPtr<CFX_DIBBase> DetachBitmap();
44 RetainPtr<CFX_DIBBase> DetachMask();
54 RetainPtr<CPDF_Image> const m_pImage;
55 RetainPtr<CFX_DIBBase> m_pCurBitmap;
56 RetainPtr<CFX_DIBBase> m_pCurMask;
57 RetainPtr<CFX_DIBBase> m_pCachedBitmap;
58 RetainPtr<CFX_DIBBase> m_pCachedMask;
/external/pdfium/core/fxge/
Dcfx_renderdevice.h64 RetainPtr<CFX_DIBitmap> GetBitmap() const;
65 void SetBitmap(const RetainPtr<CFX_DIBitmap>& pBitmap);
66 bool CreateCompatibleBitmap(const RetainPtr<CFX_DIBitmap>& pDIB,
98 RetainPtr<CFX_DIBitmap> GetBackDrop();
99 bool GetDIBits(const RetainPtr<CFX_DIBitmap>& pBitmap, int left, int top);
100 bool SetDIBits(const RetainPtr<CFX_DIBBase>& pBitmap, int left, int top) { in SetDIBits()
103 bool SetDIBitsWithBlend(const RetainPtr<CFX_DIBBase>& pBitmap,
107 bool StretchDIBits(const RetainPtr<CFX_DIBBase>& pBitmap, in StretchDIBits()
116 bool StretchDIBitsWithFlagsAndBlend(const RetainPtr<CFX_DIBBase>& pBitmap,
123 bool SetBitMask(const RetainPtr<CFX_DIBBase>& pBitmap,
[all …]
/external/pdfium/core/fxge/dib/
Dcfx_dibitmap.h20 friend RetainPtr<T> pdfium::MakeRetain(Args&&... args);
30 bool Copy(const RetainPtr<CFX_DIBBase>& pSrc);
43 void TakeOver(RetainPtr<CFX_DIBitmap>&& pSrcBitmap);
51 const RetainPtr<CFX_DIBBase>& pSrcBitmap);
55 bool MultiplyAlpha(const RetainPtr<CFX_DIBBase>& pSrcBitmap);
61 const RetainPtr<CFX_DIBBase>& pSrcBitmap,
69 const RetainPtr<CFX_DIBBase>& pSrcBitmap,
80 const RetainPtr<CFX_DIBBase>& pMask,
132 const RetainPtr<CFX_DIBBase>& pSrcBitmap,
139 const RetainPtr<CFX_DIBBase>& pSrcBitmap,
[all …]
Dcfx_dibbase.h74 RetainPtr<CFX_DIBitmap> Clone(const FX_RECT* pClip) const;
75 RetainPtr<CFX_DIBitmap> CloneConvert(FXDIB_Format format);
76 RetainPtr<CFX_DIBitmap> StretchTo(int dest_width,
80 RetainPtr<CFX_DIBitmap> TransformTo(const CFX_Matrix& mtDest,
83 RetainPtr<CFX_DIBitmap> SwapXY(bool bXFlip, bool bYFlip) const;
84 RetainPtr<CFX_DIBitmap> FlipImage(bool bXFlip, bool bYFlip) const;
86 RetainPtr<CFX_DIBitmap> CloneAlphaMask() const;
89 bool SetAlphaMask(const RetainPtr<CFX_DIBBase>& pAlphaMask,
106 RetainPtr<CFX_DIBitmap> m_pAlphaMask;
116 const RetainPtr<CFX_DIBBase>& pSrcBitmap,
/external/pdfium/core/fxge/win32/
Dwin32_int.h28 RetainPtr<CFX_DIBitmap> FX_WindowsDIB_LoadFromBuf(BITMAPINFO* pbmi,
39 const RetainPtr<CFX_DIBitmap>& pBitmap,
54 RetainPtr<CFX_DIBitmap> LoadDIBitmap(WINDIB_Open_Args_ args);
110 bool GDI_SetDIBits(const RetainPtr<CFX_DIBitmap>& pBitmap,
114 bool GDI_StretchDIBits(const RetainPtr<CFX_DIBitmap>& pBitmap,
120 bool GDI_StretchBitMask(const RetainPtr<CFX_DIBitmap>& pBitmap,
145 bool GetDIBits(const RetainPtr<CFX_DIBitmap>& pBitmap,
148 bool SetDIBits(const RetainPtr<CFX_DIBBase>& pBitmap,
154 bool StretchDIBits(const RetainPtr<CFX_DIBBase>& pBitmap,
163 bool StartDIBits(const RetainPtr<CFX_DIBBase>& pBitmap,
[all …]
Dcfx_windowsdib.h28 friend RetainPtr<T> pdfium::MakeRetain(Args&&... args);
30 static ByteString GetBitmapInfo(const RetainPtr<CFX_DIBitmap>& pBitmap);
31 static HBITMAP GetDDBitmap(const RetainPtr<CFX_DIBitmap>& pBitmap, HDC hDC);
33 static RetainPtr<CFX_DIBitmap> LoadFromBuf(BITMAPINFO* pbmi, void* pData);
34 static RetainPtr<CFX_DIBitmap> LoadFromFile(const wchar_t* filename);
35 static RetainPtr<CFX_DIBitmap> LoadFromFile(const char* filename);
36 static RetainPtr<CFX_DIBitmap> LoadDIBitmap(WINDIB_Open_Args_ args);
/external/pdfium/core/fxcodec/
Dprogressivedecoder.h75 FXCODEC_STATUS LoadImageInfo(const RetainPtr<IFX_SeekableReadStream>& pFile,
88 FXCODEC_STATUS StartDecode(const RetainPtr<CFX_DIBitmap>& pDIBitmap,
187 FXCODEC_STATUS BmpStartDecode(const RetainPtr<CFX_DIBitmap>& pDIBitmap);
194 FXCODEC_STATUS GifStartDecode(const RetainPtr<CFX_DIBitmap>& pDIBitmap);
196 void GifDoubleLineResampleVert(const RetainPtr<CFX_DIBitmap>& pDeviceBitmap,
202 void PngOneOneMapResampleHorz(const RetainPtr<CFX_DIBitmap>& pDeviceBitmap,
207 FXCODEC_STATUS PngStartDecode(const RetainPtr<CFX_DIBitmap>& pDIBitmap);
218 FXCODEC_STATUS JpegStartDecode(const RetainPtr<CFX_DIBitmap>& pDIBitmap);
231 void ReSampleScanline(const RetainPtr<CFX_DIBitmap>& pDeviceBitmap,
235 void Resample(const RetainPtr<CFX_DIBitmap>& pDeviceBitmap,
[all …]
/external/pdfium/xfa/fgas/layout/
Dcfx_textuserdata.h18 friend RetainPtr<T> pdfium::MakeRetain(Args&&... args);
20 RetainPtr<CFX_CSSComputedStyle> m_pStyle;
21 RetainPtr<CFX_LinkUserData> m_pLinkData;
24 explicit CFX_TextUserData(const RetainPtr<CFX_CSSComputedStyle>& pStyle);
25 CFX_TextUserData(const RetainPtr<CFX_CSSComputedStyle>& pStyle,
26 const RetainPtr<CFX_LinkUserData>& pLinkData);
/external/pdfium/xfa/fxfa/layout/
Dcxfa_contentlayoutprocessor.h60 RetainPtr<CXFA_ContentLayoutItem> ExtractLayoutItem();
86 std::vector<RetainPtr<CXFA_ContentLayoutItem>>* rgCurLineLayoutItem,
96 const RetainPtr<CXFA_ContentLayoutItem>& pTrailerItem,
101 RetainPtr<CXFA_ContentLayoutItem> CreateContentLayoutItem(
112 std::vector<RetainPtr<CXFA_ContentLayoutItem>> (&rgCurLineLayoutItems)[3],
126 std::vector<RetainPtr<CXFA_ContentLayoutItem>>* pKeepItems);
154 const RetainPtr<CXFA_ContentLayoutItem>& pLayoutItem);
157 const RetainPtr<CXFA_ContentLayoutItem>& pTrailerLayoutItem,
160 const RetainPtr<CXFA_ContentLayoutItem>& pLeaderLayoutItem);
170 std::vector<RetainPtr<CXFA_ContentLayoutItem>> (&rgCurLineLayoutItems)[3],
[all …]

12345678910>>...18