| 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 <memory> | 9 #include <memory> |
| 10 #include <utility> | 10 #include <utility> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "core/fpdfapi/fpdf_page/cpdf_form.h" | 13 #include "core/fpdfapi/fpdf_page/cpdf_form.h" |
| 14 #include "core/fpdfapi/fpdf_page/cpdf_image.h" | 14 #include "core/fpdfapi/fpdf_page/cpdf_image.h" |
| 15 #include "core/fpdfapi/fpdf_page/cpdf_imageobject.h" | 15 #include "core/fpdfapi/fpdf_page/cpdf_imageobject.h" |
| 16 #include "core/fpdfapi/fpdf_page/cpdf_page.h" | 16 #include "core/fpdfapi/fpdf_page/cpdf_page.h" |
| 17 #include "core/fpdfapi/fpdf_page/cpdf_shadingpattern.h" | 17 #include "core/fpdfapi/fpdf_page/cpdf_shadingpattern.h" |
| 18 #include "core/fpdfapi/fpdf_page/cpdf_tilingpattern.h" | 18 #include "core/fpdfapi/fpdf_page/cpdf_tilingpattern.h" |
| 19 #include "core/fpdfapi/fpdf_page/pageint.h" | 19 #include "core/fpdfapi/fpdf_page/pageint.h" |
| 20 #include "core/fpdfapi/fpdf_parser/cpdf_array.h" | 20 #include "core/fpdfapi/fpdf_parser/cpdf_array.h" |
| 21 #include "core/fpdfapi/fpdf_parser/cpdf_dictionary.h" | 21 #include "core/fpdfapi/fpdf_parser/cpdf_dictionary.h" |
| 22 #include "core/fpdfapi/fpdf_parser/cpdf_document.h" | 22 #include "core/fpdfapi/fpdf_parser/cpdf_document.h" |
| 23 #include "core/fpdfapi/fpdf_render/cpdf_pagerendercache.h" | 23 #include "core/fpdfapi/fpdf_render/cpdf_pagerendercache.h" |
| 24 #include "core/fpdfapi/fpdf_render/cpdf_rendercontext.h" | 24 #include "core/fpdfapi/fpdf_render/cpdf_rendercontext.h" |
| 25 #include "core/fpdfapi/fpdf_render/cpdf_renderoptions.h" | 25 #include "core/fpdfapi/fpdf_render/cpdf_renderoptions.h" |
| 26 #include "core/fpdfdoc/cpdf_occontext.h" | 26 #include "core/fpdfdoc/cpdf_occontext.h" |
| 27 #include "core/fxcodec/fx_codec.h" | 27 #include "core/fxcodec/fx_codec.h" |
| 28 #include "core/fxcrt/fx_safe_types.h" | 28 #include "core/fxcrt/fx_safe_types.h" |
| 29 #include "core/fxge/include/cfx_fxgedevice.h" | 29 #include "core/fxge/cfx_fxgedevice.h" |
| 30 #include "core/fxge/include/cfx_pathdata.h" | 30 #include "core/fxge/cfx_pathdata.h" |
| 31 | 31 |
| 32 #ifdef _SKIA_SUPPORT_ | 32 #ifdef _SKIA_SUPPORT_ |
| 33 #include "core/fxge/skia/fx_skia_device.h" | 33 #include "core/fxge/skia/fx_skia_device.h" |
| 34 #endif | 34 #endif |
| 35 | 35 |
| 36 FX_BOOL CPDF_RenderStatus::ProcessImage(CPDF_ImageObject* pImageObj, | 36 FX_BOOL CPDF_RenderStatus::ProcessImage(CPDF_ImageObject* pImageObj, |
| 37 const CFX_Matrix* pObj2Device) { | 37 const CFX_Matrix* pObj2Device) { |
| 38 CPDF_ImageRenderer render; | 38 CPDF_ImageRenderer render; |
| 39 if (render.Start(this, pImageObj, pObj2Device, m_bStdCS, m_curBlend)) { | 39 if (render.Start(this, pImageObj, pObj2Device, m_bStdCS, m_curBlend)) { |
| 40 render.Continue(nullptr); | 40 render.Continue(nullptr); |
| (...skipping 1038 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1079 } else if (pFunc) { | 1079 } else if (pFunc) { |
| 1080 int size = dest_pitch * height; | 1080 int size = dest_pitch * height; |
| 1081 for (int i = 0; i < size; i++) { | 1081 for (int i = 0; i < size; i++) { |
| 1082 dest_buf[i] = transfers[src_buf[i]]; | 1082 dest_buf[i] = transfers[src_buf[i]]; |
| 1083 } | 1083 } |
| 1084 } else { | 1084 } else { |
| 1085 FXSYS_memcpy(dest_buf, src_buf, dest_pitch * height); | 1085 FXSYS_memcpy(dest_buf, src_buf, dest_pitch * height); |
| 1086 } | 1086 } |
| 1087 return pMask.release(); | 1087 return pMask.release(); |
| 1088 } | 1088 } |
| OLD | NEW |