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 "../../../../include/fxcodec/fx_codec.h" |
7 #include "../../../../include/fxge/fx_ge.h" | 8 #include "../../../../include/fxge/fx_ge.h" |
8 #include "../../dib/dib_int.h" | 9 #include "../../dib/dib_int.h" |
9 #include "../../ge/text_int.h" | 10 #include "../../ge/text_int.h" |
10 #include "../../../../include/fxcodec/fx_codec.h" | |
11 #include "../../../../../third_party/agg23/agg_pixfmt_gray.h" | |
12 #include "../../../../../third_party/agg23/agg_path_storage.h" | |
13 #include "../../../../../third_party/agg23/agg_scanline_u.h" | |
14 #include "../../../../../third_party/agg23/agg_rasterizer_scanline_aa.h" | |
15 #include "../../../../../third_party/agg23/agg_renderer_scanline.h" | |
16 #include "../../../../../third_party/agg23/agg_curves.h" | |
17 #include "../../../../../third_party/agg23/agg_conv_stroke.h" | |
18 #include "../../../../../third_party/agg23/agg_conv_dash.h" | |
19 #include "../include/fx_agg_driver.h" | 11 #include "../include/fx_agg_driver.h" |
| 12 #include "third_party/agg23/agg_conv_dash.h" |
| 13 #include "third_party/agg23/agg_conv_stroke.h" |
| 14 #include "third_party/agg23/agg_curves.h" |
| 15 #include "third_party/agg23/agg_path_storage.h" |
| 16 #include "third_party/agg23/agg_pixfmt_gray.h" |
| 17 #include "third_party/agg23/agg_rasterizer_scanline_aa.h" |
| 18 #include "third_party/agg23/agg_renderer_scanline.h" |
| 19 #include "third_party/agg23/agg_scanline_u.h" |
| 20 |
20 void _HardClip(FX_FLOAT& x, FX_FLOAT& y) { | 21 void _HardClip(FX_FLOAT& x, FX_FLOAT& y) { |
21 if (x > 50000) { | 22 if (x > 50000) { |
22 x = 50000; | 23 x = 50000; |
23 } | 24 } |
24 if (x < -50000) { | 25 if (x < -50000) { |
25 x = -50000; | 26 x = -50000; |
26 } | 27 } |
27 if (y > 50000) { | 28 if (y > 50000) { |
28 y = 50000; | 29 y = 50000; |
29 } | 30 } |
(...skipping 1755 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1785 IFX_RenderDeviceDriver* pDriver = | 1786 IFX_RenderDeviceDriver* pDriver = |
1786 new CFX_AggDeviceDriver(pBitmap, dither_bits, FALSE, pOriDevice, FALSE); | 1787 new CFX_AggDeviceDriver(pBitmap, dither_bits, FALSE, pOriDevice, FALSE); |
1787 SetDeviceDriver(pDriver); | 1788 SetDeviceDriver(pDriver); |
1788 return TRUE; | 1789 return TRUE; |
1789 } | 1790 } |
1790 CFX_FxgeDevice::~CFX_FxgeDevice() { | 1791 CFX_FxgeDevice::~CFX_FxgeDevice() { |
1791 if (m_bOwnedBitmap) { | 1792 if (m_bOwnedBitmap) { |
1792 delete GetBitmap(); | 1793 delete GetBitmap(); |
1793 } | 1794 } |
1794 } | 1795 } |
OLD | NEW |