| 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 | 10 |
| (...skipping 791 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 802 text_device.Attach(pTextMask.get(), false, nullptr, false); | 802 text_device.Attach(pTextMask.get(), false, nullptr, false); |
| 803 for (uint32_t i = 0; i < pPageObj->m_ClipPath.GetTextCount(); i++) { | 803 for (uint32_t i = 0; i < pPageObj->m_ClipPath.GetTextCount(); i++) { |
| 804 CPDF_TextObject* textobj = pPageObj->m_ClipPath.GetText(i); | 804 CPDF_TextObject* textobj = pPageObj->m_ClipPath.GetText(i); |
| 805 if (!textobj) { | 805 if (!textobj) { |
| 806 break; | 806 break; |
| 807 } | 807 } |
| 808 CFX_Matrix text_matrix; | 808 CFX_Matrix text_matrix; |
| 809 textobj->GetTextMatrix(&text_matrix); | 809 textobj->GetTextMatrix(&text_matrix); |
| 810 CPDF_TextRenderer::DrawTextPath( | 810 CPDF_TextRenderer::DrawTextPath( |
| 811 &text_device, textobj->m_nChars, textobj->m_pCharCodes, | 811 &text_device, textobj->m_nChars, textobj->m_pCharCodes, |
| 812 textobj->m_pCharPos, textobj->m_TextState->GetFont(), | 812 textobj->m_pCharPos, textobj->m_TextState.GetFont(), |
| 813 textobj->m_TextState->GetFontSize(), &text_matrix, &new_matrix, | 813 textobj->m_TextState.GetFontSize(), &text_matrix, &new_matrix, |
| 814 textobj->m_GraphState.GetObject(), (FX_ARGB)-1, 0, nullptr, 0); | 814 textobj->m_GraphState.GetObject(), (FX_ARGB)-1, 0, nullptr, 0); |
| 815 } | 815 } |
| 816 } | 816 } |
| 817 CPDF_RenderStatus bitmap_render; | 817 CPDF_RenderStatus bitmap_render; |
| 818 bitmap_render.Initialize(m_pContext, &bitmap_device, nullptr, m_pStopObj, | 818 bitmap_render.Initialize(m_pContext, &bitmap_device, nullptr, m_pStopObj, |
| 819 nullptr, nullptr, &m_Options, 0, m_bDropObjects, | 819 nullptr, nullptr, &m_Options, 0, m_bDropObjects, |
| 820 pFormResource, TRUE); | 820 pFormResource, TRUE); |
| 821 bitmap_render.ProcessObjectNoClip(pPageObj, &new_matrix); | 821 bitmap_render.ProcessObjectNoClip(pPageObj, &new_matrix); |
| 822 m_bStopped = bitmap_render.m_bStopped; | 822 m_bStopped = bitmap_render.m_bStopped; |
| 823 if (pSMaskDict) { | 823 if (pSMaskDict) { |
| (...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1297 m_pDevice->StretchDIBits(m_pBitmapDevice->GetBitmap(), m_Rect.left, | 1297 m_pDevice->StretchDIBits(m_pBitmapDevice->GetBitmap(), m_Rect.left, |
| 1298 m_Rect.top, m_Rect.Width(), m_Rect.Height()); | 1298 m_Rect.top, m_Rect.Width(), m_Rect.Height()); |
| 1299 } | 1299 } |
| 1300 } | 1300 } |
| 1301 | 1301 |
| 1302 #if defined _SKIA_SUPPORT_ | 1302 #if defined _SKIA_SUPPORT_ |
| 1303 void CPDF_RenderStatus::DebugVerifyDeviceIsPreMultiplied() const { | 1303 void CPDF_RenderStatus::DebugVerifyDeviceIsPreMultiplied() const { |
| 1304 m_pDevice->DebugVerifyBitmapIsPreMultiplied(); | 1304 m_pDevice->DebugVerifyBitmapIsPreMultiplied(); |
| 1305 } | 1305 } |
| 1306 #endif | 1306 #endif |
| OLD | NEW |