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

Side by Side Diff: core/fpdfapi/fpdf_render/cpdf_pagerendercache.h

Issue 2032613003: Get rid of NULLs in core/ (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: Fix a bad merge Created 4 years, 6 months 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
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_FPDF_RENDER_CPDF_PAGERENDERCACHE_H_ 7 #ifndef CORE_FPDFAPI_FPDF_RENDER_CPDF_PAGERENDERCACHE_H_
8 #define CORE_FPDFAPI_FPDF_RENDER_CPDF_PAGERENDERCACHE_H_ 8 #define CORE_FPDFAPI_FPDF_RENDER_CPDF_PAGERENDERCACHE_H_
9 9
10 #include <map> 10 #include <map>
(...skipping 23 matching lines...) Expand all
34 uint32_t GetTimeCount() const { return m_nTimeCount; } 34 uint32_t GetTimeCount() const { return m_nTimeCount; }
35 void SetTimeCount(uint32_t dwTimeCount) { m_nTimeCount = dwTimeCount; } 35 void SetTimeCount(uint32_t dwTimeCount) { m_nTimeCount = dwTimeCount; }
36 36
37 void GetCachedBitmap(CPDF_Stream* pStream, 37 void GetCachedBitmap(CPDF_Stream* pStream,
38 CFX_DIBSource*& pBitmap, 38 CFX_DIBSource*& pBitmap,
39 CFX_DIBSource*& pMask, 39 CFX_DIBSource*& pMask,
40 uint32_t& MatteColor, 40 uint32_t& MatteColor,
41 FX_BOOL bStdCS = FALSE, 41 FX_BOOL bStdCS = FALSE,
42 uint32_t GroupFamily = 0, 42 uint32_t GroupFamily = 0,
43 FX_BOOL bLoadMask = FALSE, 43 FX_BOOL bLoadMask = FALSE,
44 CPDF_RenderStatus* pRenderStatus = NULL, 44 CPDF_RenderStatus* pRenderStatus = nullptr,
45 int32_t downsampleWidth = 0, 45 int32_t downsampleWidth = 0,
46 int32_t downsampleHeight = 0); 46 int32_t downsampleHeight = 0);
47 47
48 void ResetBitmap(CPDF_Stream* pStream, const CFX_DIBitmap* pBitmap); 48 void ResetBitmap(CPDF_Stream* pStream, const CFX_DIBitmap* pBitmap);
49 void ClearImageCacheEntry(CPDF_Stream* pStream); 49 void ClearImageCacheEntry(CPDF_Stream* pStream);
50 CPDF_Page* GetPage() const { return m_pPage; } 50 CPDF_Page* GetPage() const { return m_pPage; }
51 CPDF_ImageCacheEntry* GetCurImageCacheEntry() const { 51 CPDF_ImageCacheEntry* GetCurImageCacheEntry() const {
52 return m_pCurImageCacheEntry; 52 return m_pCurImageCacheEntry;
53 } 53 }
54 54
55 FX_BOOL StartGetCachedBitmap(CPDF_Stream* pStream, 55 FX_BOOL StartGetCachedBitmap(CPDF_Stream* pStream,
56 FX_BOOL bStdCS = FALSE, 56 FX_BOOL bStdCS = FALSE,
57 uint32_t GroupFamily = 0, 57 uint32_t GroupFamily = 0,
58 FX_BOOL bLoadMask = FALSE, 58 FX_BOOL bLoadMask = FALSE,
59 CPDF_RenderStatus* pRenderStatus = NULL, 59 CPDF_RenderStatus* pRenderStatus = nullptr,
60 int32_t downsampleWidth = 0, 60 int32_t downsampleWidth = 0,
61 int32_t downsampleHeight = 0); 61 int32_t downsampleHeight = 0);
62 62
63 FX_BOOL Continue(IFX_Pause* pPause); 63 FX_BOOL Continue(IFX_Pause* pPause);
64 64
65 protected: 65 protected:
66 friend class CPDF_Page; 66 friend class CPDF_Page;
67 67
68 CPDF_Page* const m_pPage; 68 CPDF_Page* const m_pPage;
69 CPDF_ImageCacheEntry* m_pCurImageCacheEntry; 69 CPDF_ImageCacheEntry* m_pCurImageCacheEntry;
70 std::map<CPDF_Stream*, CPDF_ImageCacheEntry*> m_ImageCache; 70 std::map<CPDF_Stream*, CPDF_ImageCacheEntry*> m_ImageCache;
71 uint32_t m_nTimeCount; 71 uint32_t m_nTimeCount;
72 uint32_t m_nCacheSize; 72 uint32_t m_nCacheSize;
73 FX_BOOL m_bCurFindCache; 73 FX_BOOL m_bCurFindCache;
74 }; 74 };
75 75
76 #endif // CORE_FPDFAPI_FPDF_RENDER_CPDF_PAGERENDERCACHE_H_ 76 #endif // CORE_FPDFAPI_FPDF_RENDER_CPDF_PAGERENDERCACHE_H_
OLDNEW
« no previous file with comments | « core/fpdfapi/fpdf_parser/include/cpdf_document.h ('k') | core/fpdfapi/fpdf_render/fpdf_render.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698