| 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 "xfa/fde/fde_gedevice.h" | 7 #include "xfa/fde/fde_gedevice.h" |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 | 10 |
| 11 #include "core/fxge/cfx_gemodule.h" | 11 #include "core/fxge/cfx_gemodule.h" |
| 12 #include "core/fxge/cfx_graphstatedata.h" | 12 #include "core/fxge/cfx_graphstatedata.h" |
| 13 #include "core/fxge/cfx_renderdevice.h" | 13 #include "core/fxge/cfx_renderdevice.h" |
| 14 #include "core/fxge/cfx_substfont.h" | 14 #include "core/fxge/cfx_substfont.h" |
| 15 #include "xfa/fde/cfde_path.h" | 15 #include "xfa/fde/cfde_path.h" |
| 16 #include "xfa/fde/fde_object.h" | 16 #include "xfa/fde/fde_object.h" |
| 17 #include "xfa/fgas/font/fgas_font.h" | 17 #include "xfa/fgas/font/cfgas_fontmgr.h" |
| 18 #include "xfa/fgas/font/fgas_gefont.h" | 18 #include "xfa/fgas/font/fgas_gefont.h" |
| 19 | 19 |
| 20 CFDE_RenderDevice::CFDE_RenderDevice(CFX_RenderDevice* pDevice, | 20 CFDE_RenderDevice::CFDE_RenderDevice(CFX_RenderDevice* pDevice, |
| 21 bool bOwnerDevice) | 21 bool bOwnerDevice) |
| 22 : m_pDevice(pDevice), m_bOwnerDevice(bOwnerDevice), m_iCharCount(0) { | 22 : m_pDevice(pDevice), m_bOwnerDevice(bOwnerDevice), m_iCharCount(0) { |
| 23 ASSERT(pDevice); | 23 ASSERT(pDevice); |
| 24 | 24 |
| 25 FX_RECT rt = m_pDevice->GetClipBox(); | 25 FX_RECT rt = m_pDevice->GetClipBox(); |
| 26 m_rtClip.Set((FX_FLOAT)rt.left, (FX_FLOAT)rt.top, (FX_FLOAT)rt.Width(), | 26 m_rtClip.Set((FX_FLOAT)rt.left, (FX_FLOAT)rt.top, (FX_FLOAT)rt.Width(), |
| 27 (FX_FLOAT)rt.Height()); | 27 (FX_FLOAT)rt.Height()); |
| (...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 const CFX_Matrix* pMatrix) { | 320 const CFX_Matrix* pMatrix) { |
| 321 CFDE_Path* pGePath = (CFDE_Path*)pPath; | 321 CFDE_Path* pGePath = (CFDE_Path*)pPath; |
| 322 if (!pGePath) | 322 if (!pGePath) |
| 323 return false; | 323 return false; |
| 324 if (!pBrush) | 324 if (!pBrush) |
| 325 return false; | 325 return false; |
| 326 return m_pDevice->DrawPath(&pGePath->m_Path, pMatrix, nullptr, | 326 return m_pDevice->DrawPath(&pGePath->m_Path, pMatrix, nullptr, |
| 327 pBrush->GetColor(), 0, FXFILL_WINDING); | 327 pBrush->GetColor(), 0, FXFILL_WINDING); |
| 328 } | 328 } |
| 329 | 329 |
| OLD | NEW |