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

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

Issue 2078783002: Move ifx_renderdevicedriver to a separate file to share (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: rebase to master Created 4 years, 6 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/fpdfapi/fpdf_font/cpdf_type1font.cpp ('k') | core/fxge/agg/fx_agg_driver.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 "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
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 }
OLDNEW
« no previous file with comments | « core/fpdfapi/fpdf_font/cpdf_type1font.cpp ('k') | core/fxge/agg/fx_agg_driver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698