| OLD | NEW |
| 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_render/render_int.h" | 7 #include "core/fpdfapi/fpdf_render/render_int.h" |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 | 10 |
| 11 #include "core/fpdfapi/fpdf_page/cpdf_graphicstates.h" | 11 #include "core/fpdfapi/fpdf_page/cpdf_graphicstates.h" |
| 12 #include "core/fpdfapi/fpdf_page/cpdf_meshstream.h" | 12 #include "core/fpdfapi/fpdf_page/cpdf_meshstream.h" |
| 13 #include "core/fpdfapi/fpdf_page/cpdf_shadingpattern.h" | 13 #include "core/fpdfapi/fpdf_page/cpdf_shadingpattern.h" |
| 14 #include "core/fpdfapi/fpdf_page/cpdf_tilingpattern.h" | 14 #include "core/fpdfapi/fpdf_page/cpdf_tilingpattern.h" |
| 15 #include "core/fpdfapi/fpdf_page/include/cpdf_form.h" | 15 #include "core/fpdfapi/fpdf_page/include/cpdf_form.h" |
| 16 #include "core/fpdfapi/fpdf_page/include/cpdf_pageobject.h" | 16 #include "core/fpdfapi/fpdf_page/include/cpdf_pageobject.h" |
| 17 #include "core/fpdfapi/fpdf_page/include/cpdf_pathobject.h" | 17 #include "core/fpdfapi/fpdf_page/include/cpdf_pathobject.h" |
| 18 #include "core/fpdfapi/fpdf_page/include/cpdf_shadingobject.h" | 18 #include "core/fpdfapi/fpdf_page/include/cpdf_shadingobject.h" |
| 19 #include "core/fpdfapi/fpdf_page/pageint.h" | 19 #include "core/fpdfapi/fpdf_page/pageint.h" |
| 20 #include "core/fpdfapi/fpdf_parser/include/cpdf_array.h" | 20 #include "core/fpdfapi/fpdf_parser/include/cpdf_array.h" |
| 21 #include "core/fpdfapi/fpdf_parser/include/cpdf_dictionary.h" | 21 #include "core/fpdfapi/fpdf_parser/include/cpdf_dictionary.h" |
| 22 #include "core/fpdfapi/fpdf_render/include/cpdf_rendercontext.h" | 22 #include "core/fpdfapi/fpdf_render/include/cpdf_rendercontext.h" |
| 23 #include "core/fpdfapi/fpdf_render/include/cpdf_renderoptions.h" | 23 #include "core/fpdfapi/fpdf_render/include/cpdf_renderoptions.h" |
| 24 #include "core/fxge/include/fx_ge.h" | 24 #include "core/fxge/include/ifx_renderdevicedriver.h" |
| 25 | 25 |
| 26 namespace { | 26 namespace { |
| 27 | 27 |
| 28 uint32_t CountOutputs( | 28 uint32_t CountOutputs( |
| 29 const std::vector<std::unique_ptr<CPDF_Function>>& funcs) { | 29 const std::vector<std::unique_ptr<CPDF_Function>>& funcs) { |
| 30 uint32_t total = 0; | 30 uint32_t total = 0; |
| 31 for (const auto& func : funcs) { | 31 for (const auto& func : funcs) { |
| 32 if (func) | 32 if (func) |
| 33 total += func->CountOutputs(); | 33 total += func->CountOutputs(); |
| 34 } | 34 } |
| (...skipping 1155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1190 } | 1190 } |
| 1191 } | 1191 } |
| 1192 if (bStroke) { | 1192 if (bStroke) { |
| 1193 CPDF_Color& StrokeColor = *pPathObj->m_ColorState.GetStrokeColor(); | 1193 CPDF_Color& StrokeColor = *pPathObj->m_ColorState.GetStrokeColor(); |
| 1194 if (StrokeColor.IsPattern()) { | 1194 if (StrokeColor.IsPattern()) { |
| 1195 DrawPathWithPattern(pPathObj, pObj2Device, &StrokeColor, TRUE); | 1195 DrawPathWithPattern(pPathObj, pObj2Device, &StrokeColor, TRUE); |
| 1196 bStroke = FALSE; | 1196 bStroke = FALSE; |
| 1197 } | 1197 } |
| 1198 } | 1198 } |
| 1199 } | 1199 } |
| OLD | NEW |