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 "core/fpdfapi/fpdf_font/cpdf_type3char.h" | 9 #include "core/fpdfapi/fpdf_font/cpdf_type3char.h" |
10 #include "core/fpdfapi/fpdf_font/cpdf_type3font.h" | 10 #include "core/fpdfapi/fpdf_font/cpdf_type3font.h" |
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
431 CPDF_Dictionary* pResources = nullptr; | 431 CPDF_Dictionary* pResources = nullptr; |
432 if (pFormObj->m_pForm && pFormObj->m_pForm->m_pFormDict) { | 432 if (pFormObj->m_pForm && pFormObj->m_pForm->m_pFormDict) { |
433 pResources = pFormObj->m_pForm->m_pFormDict->GetDictBy("Resources"); | 433 pResources = pFormObj->m_pForm->m_pFormDict->GetDictBy("Resources"); |
434 } | 434 } |
435 CPDF_RenderStatus status; | 435 CPDF_RenderStatus status; |
436 status.Initialize(m_pContext, m_pDevice, nullptr, m_pStopObj, this, pFormObj, | 436 status.Initialize(m_pContext, m_pDevice, nullptr, m_pStopObj, this, pFormObj, |
437 &m_Options, m_Transparency, m_bDropObjects, pResources, | 437 &m_Options, m_Transparency, m_bDropObjects, pResources, |
438 FALSE); | 438 FALSE); |
439 status.m_curBlend = m_curBlend; | 439 status.m_curBlend = m_curBlend; |
440 m_pDevice->SaveState(); | 440 m_pDevice->SaveState(); |
441 status.RenderObjectList(pFormObj->m_pForm, &matrix); | 441 status.RenderObjectList(pFormObj->m_pForm.get(), &matrix); |
442 m_bStopped = status.m_bStopped; | 442 m_bStopped = status.m_bStopped; |
443 m_pDevice->RestoreState(false); | 443 m_pDevice->RestoreState(false); |
444 #if defined _SKIA_SUPPORT_ | 444 #if defined _SKIA_SUPPORT_ |
445 DebugVerifyDeviceIsPreMultiplied(); | 445 DebugVerifyDeviceIsPreMultiplied(); |
446 #endif | 446 #endif |
447 return TRUE; | 447 return TRUE; |
448 } | 448 } |
449 | 449 |
450 FX_BOOL IsAvailableMatrix(const CFX_Matrix& matrix) { | 450 FX_BOOL IsAvailableMatrix(const CFX_Matrix& matrix) { |
451 if (matrix.a == 0 || matrix.d == 0) { | 451 if (matrix.a == 0 || matrix.d == 0) { |
(...skipping 841 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1293 m_pDevice->StretchDIBits(m_pBitmapDevice->GetBitmap(), m_Rect.left, | 1293 m_pDevice->StretchDIBits(m_pBitmapDevice->GetBitmap(), m_Rect.left, |
1294 m_Rect.top, m_Rect.Width(), m_Rect.Height()); | 1294 m_Rect.top, m_Rect.Width(), m_Rect.Height()); |
1295 } | 1295 } |
1296 } | 1296 } |
1297 | 1297 |
1298 #if defined _SKIA_SUPPORT_ | 1298 #if defined _SKIA_SUPPORT_ |
1299 void CPDF_RenderStatus::DebugVerifyDeviceIsPreMultiplied() const { | 1299 void CPDF_RenderStatus::DebugVerifyDeviceIsPreMultiplied() const { |
1300 m_pDevice->DebugVerifyBitmapIsPreMultiplied(); | 1300 m_pDevice->DebugVerifyBitmapIsPreMultiplied(); |
1301 } | 1301 } |
1302 #endif | 1302 #endif |
OLD | NEW |