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

Unified Diff: core/fpdfapi/parser/cpdf_document.h

Issue 2414423002: Traverse PDF page tree only once in CPDF_Document (Closed)
Patch Set: Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | core/fpdfapi/parser/cpdf_document.cpp » ('j') | core/fpdfapi/parser/cpdf_document.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/fpdfapi/parser/cpdf_document.h
diff --git a/core/fpdfapi/parser/cpdf_document.h b/core/fpdfapi/parser/cpdf_document.h
index c557a56013f71da4dc7106ad5faa97eb154c56ae..27971e9947cf99463441abb40b0a2c0ff928862c 100644
--- a/core/fpdfapi/parser/cpdf_document.h
+++ b/core/fpdfapi/parser/cpdf_document.h
@@ -107,10 +107,7 @@ class CPDF_Document : public CPDF_IndirectObjectHolder {
// Retrieve page count information by getting count value from the tree nodes
int RetrievePageCount() const;
- CPDF_Dictionary* FindPDFPage(CPDF_Dictionary* pPages,
- int iPage,
- int nPagesToGo,
- int level);
+ void TraversePDFPages(CPDF_Dictionary* pPages, int iPage, int level);
int FindPageIndex(CPDF_Dictionary* pNode,
uint32_t& skip_count,
uint32_t objnum,
@@ -131,6 +128,7 @@ class CPDF_Document : public CPDF_IndirectObjectHolder {
CPDF_Dictionary* m_pRootDict;
CPDF_Dictionary* m_pInfoDict;
bool m_bLinearized;
+ bool m_bPagesTraversed;
int m_iFirstPageNo;
uint32_t m_dwFirstPageObjNum;
// TODO(thestig): Figure out why this cannot be a std::unique_ptr.
« no previous file with comments | « no previous file | core/fpdfapi/parser/cpdf_document.cpp » ('j') | core/fpdfapi/parser/cpdf_document.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698