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

Side by Side Diff: core/src/fpdfapi/fpdf_page/fpdf_page_parser_old.cpp

Issue 1257503002: FX_BOOL not always 0 or 1 in CPDF_PageObjects::m_ParserState (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Dead Code. Created 5 years, 5 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
« no previous file with comments | « core/src/fpdfapi/fpdf_page/fpdf_page.cpp ('k') | core/src/fpdfapi/fpdf_page/pageint.h » ('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 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 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 #include "../../../include/fpdfapi/fpdf_page.h" 7 #include "../../../include/fpdfapi/fpdf_page.h"
8 #include "../../../include/fpdfapi/fpdf_module.h" 8 #include "../../../include/fpdfapi/fpdf_module.h"
9 #include "../../../include/fxcodec/fx_codec.h" 9 #include "../../../include/fxcodec/fx_codec.h"
10 #include "pageint.h" 10 #include "pageint.h"
(...skipping 1115 matching lines...) Expand 10 before | Expand all | Expand 10 after
1126 } 1126 }
1127 m_Status = Done; 1127 m_Status = Done;
1128 return; 1128 return;
1129 } 1129 }
1130 steps ++; 1130 steps ++;
1131 if (pPause && pPause->NeedToPauseNow()) { 1131 if (pPause && pPause->NeedToPauseNow()) {
1132 break; 1132 break;
1133 } 1133 }
1134 } 1134 }
1135 } 1135 }
1136 int CPDF_ContentParser::EstimateProgress()
1137 {
1138 if (m_Status == Ready) {
1139 return 0;
1140 }
1141 if (m_Status == Done) {
1142 return 100;
1143 }
1144 if (m_InternalStage == PAGEPARSE_STAGE_GETCONTENT) {
1145 return 10;
1146 }
1147 if (m_InternalStage == PAGEPARSE_STAGE_CHECKCLIP) {
1148 return 90;
1149 }
1150 return 10 + 80 * m_CurrentOffset / m_Size;
1151 }
OLDNEW
« no previous file with comments | « core/src/fpdfapi/fpdf_page/fpdf_page.cpp ('k') | core/src/fpdfapi/fpdf_page/pageint.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698