Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(21)

Unified Diff: core/fpdfapi/fpdf_render/fpdf_render.cpp

Issue 2292363002: Make CPDF_GraphState have a CPDF_GraphStateData instead of inheriting (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Rebase, nits Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « core/fpdfapi/fpdf_page/fpdf_page_parser.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/fpdfapi/fpdf_render/fpdf_render.cpp
diff --git a/core/fpdfapi/fpdf_render/fpdf_render.cpp b/core/fpdfapi/fpdf_render/fpdf_render.cpp
index f77e46d92347483f8bb6edfef6e550295c87b155..c36d7f4cd31de79652d6eb51983edf0d88a482a2 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 {
« no previous file with comments | « core/fpdfapi/fpdf_page/fpdf_page_parser.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698