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

Side by Side Diff: core/fpdfapi/fpdf_page/fpdf_page_parser.cpp

Issue 2303553002: Make CPDF_GeneralState have a CPDF_GeneralStateData (Closed)
Patch Set: Nit Created 4 years, 3 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 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 "core/fpdfapi/fpdf_page/pageint.h" 7 #include "core/fpdfapi/fpdf_page/pageint.h"
8 8
9 #include <memory> 9 #include <memory>
10 #include <utility> 10 #include <utility>
(...skipping 847 matching lines...) Expand 10 before | Expand all | Expand 10 after
858 return; 858 return;
859 } 859 }
860 if (m_PathStartX != m_PathCurrentX || m_PathStartY != m_PathCurrentY) { 860 if (m_PathStartX != m_PathCurrentX || m_PathStartY != m_PathCurrentY) {
861 AddPathPoint(m_PathStartX, m_PathStartY, FXPT_LINETO | FXPT_CLOSEFIGURE); 861 AddPathPoint(m_PathStartX, m_PathStartY, FXPT_LINETO | FXPT_CLOSEFIGURE);
862 } else if (m_pPathPoints[m_PathPointCount - 1].m_Flag != FXPT_MOVETO) { 862 } else if (m_pPathPoints[m_PathPointCount - 1].m_Flag != FXPT_MOVETO) {
863 m_pPathPoints[m_PathPointCount - 1].m_Flag |= FXPT_CLOSEFIGURE; 863 m_pPathPoints[m_PathPointCount - 1].m_Flag |= FXPT_CLOSEFIGURE;
864 } 864 }
865 } 865 }
866 866
867 void CPDF_StreamContentParser::Handle_SetFlat() { 867 void CPDF_StreamContentParser::Handle_SetFlat() {
868 m_pCurStates->m_GeneralState.GetPrivateCopy()->m_Flatness = GetNumber(0); 868 m_pCurStates->m_GeneralState.SetFlatness(GetNumber(0));
869 } 869 }
870 870
871 void CPDF_StreamContentParser::Handle_BeginImageData() {} 871 void CPDF_StreamContentParser::Handle_BeginImageData() {}
872 872
873 void CPDF_StreamContentParser::Handle_SetLineJoin() { 873 void CPDF_StreamContentParser::Handle_SetLineJoin() {
874 m_pCurStates->m_GraphState.SetLineJoin( 874 m_pCurStates->m_GraphState.SetLineJoin(
875 static_cast<CFX_GraphStateData::LineJoin>(GetInteger(0))); 875 static_cast<CFX_GraphStateData::LineJoin>(GetInteger(0)));
876 } 876 }
877 877
878 void CPDF_StreamContentParser::Handle_SetLineCap() { 878 void CPDF_StreamContentParser::Handle_SetLineCap() {
(...skipping 794 matching lines...) Expand 10 before | Expand all | Expand 10 after
1673 } else { 1673 } else {
1674 PDF_ReplaceAbbr(pElement); 1674 PDF_ReplaceAbbr(pElement);
1675 } 1675 }
1676 } 1676 }
1677 break; 1677 break;
1678 } 1678 }
1679 default: 1679 default:
1680 break; 1680 break;
1681 } 1681 }
1682 } 1682 }
OLDNEW
« no previous file with comments | « core/fpdfapi/fpdf_page/cpdf_pageobject.cpp ('k') | core/fpdfapi/fpdf_page/fpdf_page_parser_old.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698