diff options
author | tsepez <tsepez@chromium.org> | 2016-08-31 10:26:38 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-08-31 10:26:38 -0700 |
commit | 4d9df422c340b3bc33e044d3d94e1ff9582e1260 (patch) | |
tree | 8ad5a366cac2a11a133a7e7babd76497a737e554 /core/fpdfapi/fpdf_render | |
parent | 21ce1a68bb9f80bfbd4f295fd3b7181e56502fdc (diff) | |
download | pdfium-4d9df422c340b3bc33e044d3d94e1ff9582e1260.tar.xz |
Make CPDF_GraphState have a CPDF_GraphStateData instead of inheriting.
Get callers out of the copy-before-write business, and let the
class manage it instead.
Review-Url: https://codereview.chromium.org/2292363002
Diffstat (limited to 'core/fpdfapi/fpdf_render')
-rw-r--r-- | core/fpdfapi/fpdf_render/fpdf_render.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/core/fpdfapi/fpdf_render/fpdf_render.cpp b/core/fpdfapi/fpdf_render/fpdf_render.cpp index f77e46d923..c36d7f4cd3 100644 --- a/core/fpdfapi/fpdf_render/fpdf_render.cpp +++ b/core/fpdfapi/fpdf_render/fpdf_render.cpp @@ -495,12 +495,12 @@ FX_BOOL CPDF_RenderStatus::ProcessPath(const CPDF_PathObject* pPathObj, if (m_pType3Char) FillType |= FX_FILL_TEXT_MODE; - CFX_GraphStateData graphState(*pPathObj->m_GraphState.GetObject()); + CPDF_GraphState graphState = pPathObj->m_GraphState; if (m_Options.m_Flags & RENDER_THINLINE) - graphState.m_LineWidth = 0; - return m_pDevice->DrawPathWithBlend(pPathObj->m_Path.GetObject(), - &path_matrix, &graphState, fill_argb, - stroke_argb, FillType, m_curBlend); + graphState.SetLineWidth(0); + return m_pDevice->DrawPathWithBlend( + pPathObj->m_Path.GetObject(), &path_matrix, graphState.GetObject(), + fill_argb, stroke_argb, FillType, m_curBlend); } CPDF_TransferFunc* CPDF_RenderStatus::GetTransferFunc(CPDF_Object* pObj) const { |