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

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

Issue 2393593002: Move core/fpdfapi/fpdf_render to core/fpdfapi/render (Closed)
Patch Set: Rebase to master Created 4 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
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/render/render_int.h"
8 8
9 #include <algorithm> 9 #include <algorithm>
10 10
11 #include "core/fpdfapi/fpdf_render/cpdf_rendercontext.h"
12 #include "core/fpdfapi/fpdf_render/cpdf_renderoptions.h"
13 #include "core/fpdfapi/page/cpdf_form.h" 11 #include "core/fpdfapi/page/cpdf_form.h"
14 #include "core/fpdfapi/page/cpdf_graphicstates.h" 12 #include "core/fpdfapi/page/cpdf_graphicstates.h"
15 #include "core/fpdfapi/page/cpdf_meshstream.h" 13 #include "core/fpdfapi/page/cpdf_meshstream.h"
16 #include "core/fpdfapi/page/cpdf_pageobject.h" 14 #include "core/fpdfapi/page/cpdf_pageobject.h"
17 #include "core/fpdfapi/page/cpdf_pathobject.h" 15 #include "core/fpdfapi/page/cpdf_pathobject.h"
18 #include "core/fpdfapi/page/cpdf_shadingobject.h" 16 #include "core/fpdfapi/page/cpdf_shadingobject.h"
19 #include "core/fpdfapi/page/cpdf_shadingpattern.h" 17 #include "core/fpdfapi/page/cpdf_shadingpattern.h"
20 #include "core/fpdfapi/page/cpdf_tilingpattern.h" 18 #include "core/fpdfapi/page/cpdf_tilingpattern.h"
21 #include "core/fpdfapi/page/pageint.h" 19 #include "core/fpdfapi/page/pageint.h"
22 #include "core/fpdfapi/parser/cpdf_array.h" 20 #include "core/fpdfapi/parser/cpdf_array.h"
23 #include "core/fpdfapi/parser/cpdf_dictionary.h" 21 #include "core/fpdfapi/parser/cpdf_dictionary.h"
22 #include "core/fpdfapi/render/cpdf_rendercontext.h"
23 #include "core/fpdfapi/render/cpdf_renderoptions.h"
24 #include "core/fxge/cfx_fxgedevice.h" 24 #include "core/fxge/cfx_fxgedevice.h"
25 #include "core/fxge/cfx_pathdata.h" 25 #include "core/fxge/cfx_pathdata.h"
26 #include "core/fxge/cfx_renderdevice.h" 26 #include "core/fxge/cfx_renderdevice.h"
27 #include "core/fxge/ifx_renderdevicedriver.h" 27 #include "core/fxge/ifx_renderdevicedriver.h"
28 28
29 namespace { 29 namespace {
30 30
31 uint32_t CountOutputs( 31 uint32_t CountOutputs(
32 const std::vector<std::unique_ptr<CPDF_Function>>& funcs) { 32 const std::vector<std::unique_ptr<CPDF_Function>>& funcs) {
33 uint32_t total = 0; 33 uint32_t total = 0;
(...skipping 1172 matching lines...) Expand 10 before | Expand all | Expand 10 after
1206 } 1206 }
1207 } 1207 }
1208 if (bStroke) { 1208 if (bStroke) {
1209 const CPDF_Color& StrokeColor = *pPathObj->m_ColorState.GetStrokeColor(); 1209 const CPDF_Color& StrokeColor = *pPathObj->m_ColorState.GetStrokeColor();
1210 if (StrokeColor.IsPattern()) { 1210 if (StrokeColor.IsPattern()) {
1211 DrawPathWithPattern(pPathObj, pObj2Device, &StrokeColor, TRUE); 1211 DrawPathWithPattern(pPathObj, pObj2Device, &StrokeColor, TRUE);
1212 bStroke = FALSE; 1212 bStroke = FALSE;
1213 } 1213 }
1214 } 1214 }
1215 } 1215 }
OLDNEW
« no previous file with comments | « core/fpdfapi/render/fpdf_render_loadimage_embeddertest.cpp ('k') | core/fpdfapi/render/fpdf_render_pattern_embeddertest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698