From d3e354a43531eaed87e43d9ff2df4525186ea28d Mon Sep 17 00:00:00 2001 From: thestig Date: Thu, 26 May 2016 11:04:40 -0700 Subject: Remove default arguments in CFX_RenderDevice. Review-Url: https://codereview.chromium.org/2011943004 --- core/fpdfapi/fpdf_render/fpdf_render_text.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'core/fpdfapi/fpdf_render/fpdf_render_text.cpp') diff --git a/core/fpdfapi/fpdf_render/fpdf_render_text.cpp b/core/fpdfapi/fpdf_render/fpdf_render_text.cpp index 5bd7c35059..7c2fec7c78 100644 --- a/core/fpdfapi/fpdf_render/fpdf_render_text.cpp +++ b/core/fpdfapi/fpdf_render/fpdf_render_text.cpp @@ -589,6 +589,7 @@ void CPDF_CharPosList::Load(int nChars, } } } + FX_BOOL CPDF_TextRenderer::DrawTextPath(CFX_RenderDevice* pDevice, int nChars, uint32_t* pCharCodes, @@ -604,14 +605,15 @@ FX_BOOL CPDF_TextRenderer::DrawTextPath(CFX_RenderDevice* pDevice, int nFlag) { CFX_FontCache* pCache = pFont->m_pDocument ? pFont->m_pDocument->GetRenderData()->GetFontCache() - : NULL; + : nullptr; CPDF_CharPosList CharPosList; CharPosList.Load(nChars, pCharCodes, pCharPos, pFont, font_size); - return pDevice->DrawTextPath(CharPosList.m_nChars, CharPosList.m_pCharPos, - &pFont->m_Font, pCache, font_size, pText2User, - pUser2Device, pGraphState, fill_argb, - stroke_argb, pClippingPath, nFlag); + return pDevice->DrawTextPathWithFlags( + CharPosList.m_nChars, CharPosList.m_pCharPos, &pFont->m_Font, pCache, + font_size, pText2User, pUser2Device, pGraphState, fill_argb, stroke_argb, + pClippingPath, nFlag); } + void CPDF_TextRenderer::DrawTextString(CFX_RenderDevice* pDevice, int left, int top, -- cgit v1.2.3