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 475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
486 if (bStroke) | 486 if (bStroke) |
487 FillType |= FX_FILL_STROKE; | 487 FillType |= FX_FILL_STROKE; |
488 | 488 |
489 const CPDF_PageObject* pPageObj = | 489 const CPDF_PageObject* pPageObj = |
490 static_cast<const CPDF_PageObject*>(pPathObj); | 490 static_cast<const CPDF_PageObject*>(pPathObj); |
491 if (pPageObj->m_GeneralState.GetStrokeAdjust()) | 491 if (pPageObj->m_GeneralState.GetStrokeAdjust()) |
492 FillType |= FX_STROKE_ADJUST; | 492 FillType |= FX_STROKE_ADJUST; |
493 if (m_pType3Char) | 493 if (m_pType3Char) |
494 FillType |= FX_FILL_TEXT_MODE; | 494 FillType |= FX_FILL_TEXT_MODE; |
495 | 495 |
496 CPDF_GraphState graphState = pPathObj->m_GraphState; | 496 CFX_GraphState graphState = pPathObj->m_GraphState; |
497 if (m_Options.m_Flags & RENDER_THINLINE) | 497 if (m_Options.m_Flags & RENDER_THINLINE) |
498 graphState.SetLineWidth(0); | 498 graphState.SetLineWidth(0); |
499 return m_pDevice->DrawPathWithBlend( | 499 return m_pDevice->DrawPathWithBlend( |
500 pPathObj->m_Path.GetObject(), &path_matrix, graphState.GetObject(), | 500 pPathObj->m_Path.GetObject(), &path_matrix, graphState.GetObject(), |
501 fill_argb, stroke_argb, FillType, m_curBlend); | 501 fill_argb, stroke_argb, FillType, m_curBlend); |
502 } | 502 } |
503 | 503 |
504 CPDF_TransferFunc* CPDF_RenderStatus::GetTransferFunc(CPDF_Object* pObj) const { | 504 CPDF_TransferFunc* CPDF_RenderStatus::GetTransferFunc(CPDF_Object* pObj) const { |
505 ASSERT(pObj); | 505 ASSERT(pObj); |
506 CPDF_DocRenderData* pDocCache = m_pContext->GetDocument()->GetRenderData(); | 506 CPDF_DocRenderData* pDocCache = m_pContext->GetDocument()->GetRenderData(); |
(...skipping 770 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1277 m_pDevice->StretchDIBits(m_pBitmapDevice->GetBitmap(), m_Rect.left, | 1277 m_pDevice->StretchDIBits(m_pBitmapDevice->GetBitmap(), m_Rect.left, |
1278 m_Rect.top, m_Rect.Width(), m_Rect.Height()); | 1278 m_Rect.top, m_Rect.Width(), m_Rect.Height()); |
1279 } | 1279 } |
1280 } | 1280 } |
1281 | 1281 |
1282 #if defined _SKIA_SUPPORT_ | 1282 #if defined _SKIA_SUPPORT_ |
1283 void CPDF_RenderStatus::DebugVerifyDeviceIsPreMultiplied() const { | 1283 void CPDF_RenderStatus::DebugVerifyDeviceIsPreMultiplied() const { |
1284 m_pDevice->DebugVerifyBitmapIsPreMultiplied(); | 1284 m_pDevice->DebugVerifyBitmapIsPreMultiplied(); |
1285 } | 1285 } |
1286 #endif | 1286 #endif |
OLD | NEW |