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

Side by Side Diff: core/src/fpdfapi/fpdf_render/fpdf_render.cpp

Issue 402463002: Replace agg with skia (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Fix clang compile error Created 6 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/include/fxge/fx_ge.h ('k') | core/src/fxge/agg/agg23/agg_array.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_render.h" 7 #include "../../../include/fpdfapi/fpdf_render.h"
8 #include "../../../include/fpdfapi/fpdf_module.h" 8 #include "../../../include/fpdfapi/fpdf_module.h"
9 #include "../fpdf_page/pageint.h" 9 #include "../fpdf_page/pageint.h"
10 #include "../../../include/fxge/fx_ge.h" 10 #include "../../../include/fxge/fx_ge.h"
(...skipping 854 matching lines...) Expand 10 before | Expand all | Expand 10 after
865 } 865 }
866 CFX_AffineMatrix text_matrix; 866 CFX_AffineMatrix text_matrix;
867 textobj->GetTextMatrix(&text_matrix); 867 textobj->GetTextMatrix(&text_matrix);
868 CPDF_TextRenderer::DrawTextPath(&text_device, textobj->m_nChars, tex tobj->m_pCharCodes, textobj->m_pCharPos, 868 CPDF_TextRenderer::DrawTextPath(&text_device, textobj->m_nChars, tex tobj->m_pCharCodes, textobj->m_pCharPos,
869 textobj->m_TextState.GetFont(), text obj->m_TextState.GetFontSize(), 869 textobj->m_TextState.GetFont(), text obj->m_TextState.GetFontSize(),
870 &text_matrix, &new_matrix, textobj-> m_GraphState, (FX_ARGB) - 1, 0, NULL); 870 &text_matrix, &new_matrix, textobj-> m_GraphState, (FX_ARGB) - 1, 0, NULL);
871 } 871 }
872 } 872 }
873 CPDF_RenderStatus bitmap_render; 873 CPDF_RenderStatus bitmap_render;
874 bitmap_render.Initialize(m_Level + 1, m_pContext, &bitmap_device, NULL, 874 bitmap_render.Initialize(m_Level + 1, m_pContext, &bitmap_device, NULL,
875 m_pStopObj, NULL, NULL, &m_Options, 0, m_bDropObjec ts, pFormResource, TRUE); 875 m_pStopObj, NULL, NULL, &m_Options, 0, m_bDropObjec ts, pFormResource);
876 bitmap_render.ProcessObjectNoClip(pPageObj, &new_matrix); 876 bitmap_render.ProcessObjectNoClip(pPageObj, &new_matrix);
877 m_bStopped = bitmap_render.m_bStopped; 877 m_bStopped = bitmap_render.m_bStopped;
878 if (pSMaskDict) { 878 if (pSMaskDict) {
879 CFX_AffineMatrix smask_matrix; 879 CFX_AffineMatrix smask_matrix;
880 FXSYS_memcpy32(&smask_matrix, pGeneralState->m_SMaskMatrix, sizeof smask _matrix); 880 FXSYS_memcpy32(&smask_matrix, pGeneralState->m_SMaskMatrix, sizeof smask _matrix);
881 smask_matrix.Concat(*pObj2Device); 881 smask_matrix.Concat(*pObj2Device);
882 CFX_DIBSource* pSMaskSource = LoadSMask(pSMaskDict, &rect, &smask_matrix ); 882 CFX_DIBSource* pSMaskSource = LoadSMask(pSMaskDict, &rect, &smask_matrix );
883 if (pSMaskSource) { 883 if (pSMaskSource) {
884 bitmap->MultiplyAlpha(pSMaskSource); 884 bitmap->MultiplyAlpha(pSMaskSource);
885 delete pSMaskSource; 885 delete pSMaskSource;
(...skipping 593 matching lines...) Expand 10 before | Expand all | Expand 10 after
1479 CPDF_ContentMarkItem& item = pData->GetItem(i); 1479 CPDF_ContentMarkItem& item = pData->GetItem(i);
1480 if (item.GetName() == FX_BSTRC("OC") && item.GetParamType() == CPDF_Cont entMarkItem::PropertiesDict) { 1480 if (item.GetName() == FX_BSTRC("OC") && item.GetParamType() == CPDF_Cont entMarkItem::PropertiesDict) {
1481 CPDF_Dictionary* pOCG = (CPDF_Dictionary*)item.GetParam(); 1481 CPDF_Dictionary* pOCG = (CPDF_Dictionary*)item.GetParam();
1482 if (!CheckOCGVisible(pOCG)) { 1482 if (!CheckOCGVisible(pOCG)) {
1483 return FALSE; 1483 return FALSE;
1484 } 1484 }
1485 } 1485 }
1486 } 1486 }
1487 return TRUE; 1487 return TRUE;
1488 } 1488 }
OLDNEW
« no previous file with comments | « core/include/fxge/fx_ge.h ('k') | core/src/fxge/agg/agg23/agg_array.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698