| OLD | NEW |
| 1 // Copyright 2016 PDFium Authors. All rights reserved. | 1 // Copyright 2016 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/render/cpdf_renderstatus.h" | 7 #include "core/fpdfapi/render/cpdf_renderstatus.h" |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <memory> | 10 #include <memory> |
| 11 #include <utility> | 11 #include <utility> |
| 12 #include <vector> | 12 #include <vector> |
| 13 | 13 |
| 14 #include "core/fpdfapi/font/cpdf_font.h" | 14 #include "core/fpdfapi/font/cpdf_font.h" |
| 15 #include "core/fpdfapi/font/cpdf_type3char.h" | 15 #include "core/fpdfapi/font/cpdf_type3char.h" |
| 16 #include "core/fpdfapi/font/cpdf_type3font.h" | 16 #include "core/fpdfapi/font/cpdf_type3font.h" |
| 17 #include "core/fpdfapi/page/cpdf_docpagedata.h" | 17 #include "core/fpdfapi/page/cpdf_docpagedata.h" |
| 18 #include "core/fpdfapi/page/cpdf_graphicstates.h" | |
| 19 #include "core/fpdfapi/page/cpdf_form.h" | 18 #include "core/fpdfapi/page/cpdf_form.h" |
| 20 #include "core/fpdfapi/page/cpdf_formobject.h" | 19 #include "core/fpdfapi/page/cpdf_formobject.h" |
| 20 #include "core/fpdfapi/page/cpdf_graphicstates.h" |
| 21 #include "core/fpdfapi/page/cpdf_image.h" | 21 #include "core/fpdfapi/page/cpdf_image.h" |
| 22 #include "core/fpdfapi/page/cpdf_imageobject.h" | 22 #include "core/fpdfapi/page/cpdf_imageobject.h" |
| 23 #include "core/fpdfapi/page/cpdf_meshstream.h" | 23 #include "core/fpdfapi/page/cpdf_meshstream.h" |
| 24 #include "core/fpdfapi/page/cpdf_page.h" | 24 #include "core/fpdfapi/page/cpdf_page.h" |
| 25 #include "core/fpdfapi/page/cpdf_pageobject.h" | 25 #include "core/fpdfapi/page/cpdf_pageobject.h" |
| 26 #include "core/fpdfapi/page/cpdf_pathobject.h" | 26 #include "core/fpdfapi/page/cpdf_pathobject.h" |
| 27 #include "core/fpdfapi/page/cpdf_shadingobject.h" | 27 #include "core/fpdfapi/page/cpdf_shadingobject.h" |
| 28 #include "core/fpdfapi/page/cpdf_shadingpattern.h" | 28 #include "core/fpdfapi/page/cpdf_shadingpattern.h" |
| 29 #include "core/fpdfapi/page/cpdf_textobject.h" | 29 #include "core/fpdfapi/page/cpdf_textobject.h" |
| 30 #include "core/fpdfapi/page/cpdf_tilingpattern.h" | 30 #include "core/fpdfapi/page/cpdf_tilingpattern.h" |
| 31 #include "core/fpdfapi/page/pageint.h" | 31 #include "core/fpdfapi/page/pageint.h" |
| 32 #include "core/fpdfapi/parser/cpdf_array.h" | 32 #include "core/fpdfapi/parser/cpdf_array.h" |
| 33 #include "core/fpdfapi/parser/cpdf_dictionary.h" | 33 #include "core/fpdfapi/parser/cpdf_dictionary.h" |
| 34 #include "core/fpdfapi/parser/cpdf_document.h" | 34 #include "core/fpdfapi/parser/cpdf_document.h" |
| 35 #include "core/fpdfapi/render/cpdf_charposlist.h" | 35 #include "core/fpdfapi/render/cpdf_charposlist.h" |
| 36 #include "core/fpdfapi/render/cpdf_docrenderdata.h" | 36 #include "core/fpdfapi/render/cpdf_docrenderdata.h" |
| 37 #include "core/fpdfapi/render/cpdf_pagerendercache.h" | 37 #include "core/fpdfapi/render/cpdf_pagerendercache.h" |
| 38 #include "core/fpdfapi/render/cpdf_rendercontext.h" | 38 #include "core/fpdfapi/render/cpdf_rendercontext.h" |
| 39 #include "core/fpdfapi/render/cpdf_renderoptions.h" | 39 #include "core/fpdfapi/render/cpdf_renderoptions.h" |
| 40 #include "core/fpdfapi/render/cpdf_textrenderer.h" | 40 #include "core/fpdfapi/render/cpdf_textrenderer.h" |
| 41 #include "core/fpdfapi/render/cpdf_transferfunc.h" | 41 #include "core/fpdfapi/render/cpdf_transferfunc.h" |
| 42 #include "core/fpdfapi/render/cpdf_type3cache.h" | 42 #include "core/fpdfapi/render/cpdf_type3cache.h" |
| 43 #include "core/fpdfapi/render/render_int.h" | 43 #include "core/fpdfapi/render/render_int.h" |
| 44 #include "core/fpdfdoc/cpdf_occontext.h" | 44 #include "core/fpdfdoc/cpdf_occontext.h" |
| 45 #include "core/fxcodec/fx_codec.h" | 45 #include "core/fxcodec/fx_codec.h" |
| 46 #include "core/fxcrt/fx_safe_types.h" | 46 #include "core/fxcrt/fx_safe_types.h" |
| 47 #include "core/fxge/cfx_fxgedevice.h" |
| 47 #include "core/fxge/cfx_graphstatedata.h" | 48 #include "core/fxge/cfx_graphstatedata.h" |
| 48 #include "core/fxge/cfx_fxgedevice.h" | 49 #include "core/fxge/cfx_pathdata.h" |
| 49 #include "core/fxge/cfx_renderdevice.h" | 50 #include "core/fxge/cfx_renderdevice.h" |
| 50 #include "core/fxge/cfx_pathdata.h" | |
| 51 #include "core/fxge/ifx_renderdevicedriver.h" | 51 #include "core/fxge/ifx_renderdevicedriver.h" |
| 52 #include "third_party/base/numerics/safe_math.h" | 52 #include "third_party/base/numerics/safe_math.h" |
| 53 | 53 |
| 54 #ifdef _SKIA_SUPPORT_ | 54 #ifdef _SKIA_SUPPORT_ |
| 55 #include "core/fxge/skia/fx_skia_device.h" | 55 #include "core/fxge/skia/fx_skia_device.h" |
| 56 #endif | 56 #endif |
| 57 | 57 |
| 58 #define SHADING_STEPS 256 | 58 #define SHADING_STEPS 256 |
| 59 | 59 |
| 60 namespace { | 60 namespace { |
| (...skipping 2566 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2627 } else if (pFunc) { | 2627 } else if (pFunc) { |
| 2628 int size = dest_pitch * height; | 2628 int size = dest_pitch * height; |
| 2629 for (int i = 0; i < size; i++) { | 2629 for (int i = 0; i < size; i++) { |
| 2630 dest_buf[i] = transfers[src_buf[i]]; | 2630 dest_buf[i] = transfers[src_buf[i]]; |
| 2631 } | 2631 } |
| 2632 } else { | 2632 } else { |
| 2633 FXSYS_memcpy(dest_buf, src_buf, dest_pitch * height); | 2633 FXSYS_memcpy(dest_buf, src_buf, dest_pitch * height); |
| 2634 } | 2634 } |
| 2635 return pMask.release(); | 2635 return pMask.release(); |
| 2636 } | 2636 } |
| OLD | NEW |