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

Side by Side Diff: core/src/fxcodec/jbig2/JBig2_Context.h

Issue 1382613003: Remove gotos in JBig2 code. (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: address comments Created 5 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 unified diff | Download patch
« no previous file with comments | « no previous file | core/src/fxcodec/jbig2/JBig2_Context.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 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 #ifndef CORE_SRC_FXCODEC_JBIG2_JBIG2_CONTEXT_H_ 7 #ifndef CORE_SRC_FXCODEC_JBIG2_JBIG2_CONTEXT_H_
8 #define CORE_SRC_FXCODEC_JBIG2_JBIG2_CONTEXT_H_ 8 #define CORE_SRC_FXCODEC_JBIG2_JBIG2_CONTEXT_H_
9 9
10 #include <list> 10 #include <list>
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 nonstd::unique_ptr<CJBig2_BitStream> m_pStream; 111 nonstd::unique_ptr<CJBig2_BitStream> m_pStream;
112 CJBig2_List<CJBig2_Segment> m_SegmentList; 112 CJBig2_List<CJBig2_Segment> m_SegmentList;
113 CJBig2_List<JBig2PageInfo> m_PageInfoList; 113 CJBig2_List<JBig2PageInfo> m_PageInfoList;
114 nonstd::unique_ptr<CJBig2_Image> m_pPage; 114 nonstd::unique_ptr<CJBig2_Image> m_pPage;
115 size_t m_nSegmentDecoded; 115 size_t m_nSegmentDecoded;
116 bool m_bInPage; 116 bool m_bInPage;
117 bool m_bBufSpecified; 117 bool m_bBufSpecified;
118 int32_t m_PauseStep; 118 int32_t m_PauseStep;
119 IFX_Pause* m_pPause; 119 IFX_Pause* m_pPause;
120 FXCODEC_STATUS m_ProcessingStatus; 120 FXCODEC_STATUS m_ProcessingStatus;
121 CJBig2_ArithDecoder* m_pArithDecoder; 121 nonstd::unique_ptr<CJBig2_ArithDecoder> m_pArithDecoder;
122 nonstd::unique_ptr<CJBig2_GRDProc> m_pGRD; 122 nonstd::unique_ptr<CJBig2_GRDProc> m_pGRD;
123 JBig2ArithCtx* m_gbContext; 123 JBig2ArithCtx* m_gbContext;
124 nonstd::unique_ptr<CJBig2_Segment> m_pSegment; 124 nonstd::unique_ptr<CJBig2_Segment> m_pSegment;
125 FX_DWORD m_dwOffset; 125 FX_DWORD m_dwOffset;
126 JBig2RegionInfo m_ri; 126 JBig2RegionInfo m_ri;
127 std::list<CJBig2_CachePair>* const m_pSymbolDictCache; 127 std::list<CJBig2_CachePair>* const m_pSymbolDictCache;
128 }; 128 };
129 129
130 #endif // CORE_SRC_FXCODEC_JBIG2_JBIG2_CONTEXT_H_ 130 #endif // CORE_SRC_FXCODEC_JBIG2_JBIG2_CONTEXT_H_
OLDNEW
« no previous file with comments | « no previous file | core/src/fxcodec/jbig2/JBig2_Context.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698