diff options
author | thestig <thestig@chromium.org> | 2016-05-26 11:04:40 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-05-26 11:04:40 -0700 |
commit | d3e354a43531eaed87e43d9ff2df4525186ea28d (patch) | |
tree | fe4ddb4219e7027f200eb240f18fdabfd70a9a4c /core/fpdfapi/fpdf_render/fpdf_render_text.cpp | |
parent | 41846a0fcc7d98476a18ec6c97778ead58069d99 (diff) | |
download | pdfium-d3e354a43531eaed87e43d9ff2df4525186ea28d.tar.xz |
Remove default arguments in CFX_RenderDevice.
Review-Url: https://codereview.chromium.org/2011943004
Diffstat (limited to 'core/fpdfapi/fpdf_render/fpdf_render_text.cpp')
-rw-r--r-- | core/fpdfapi/fpdf_render/fpdf_render_text.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
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, |