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

Unified Diff: xfa/fxgraphics/cfx_graphics.cpp

Issue 2009803003: Remove default argument from RestoreState() methods. (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: rebase Created 4 years, 7 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 | « xfa/fxfa/app/xfa_ffwidget.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: xfa/fxgraphics/cfx_graphics.cpp
diff --git a/xfa/fxgraphics/cfx_graphics.cpp b/xfa/fxgraphics/cfx_graphics.cpp
index 179e470e90f9218303702bef071d8c22711acd1a..8de0def44f6a745e0d9b2d3fc847247a3e591540 100644
--- a/xfa/fxgraphics/cfx_graphics.cpp
+++ b/xfa/fxgraphics/cfx_graphics.cpp
@@ -639,7 +639,7 @@ FWL_Error CFX_Graphics::SaveGraphState() {
FWL_Error CFX_Graphics::RestoreGraphState() {
if (m_type == FX_CONTEXT_Device && m_renderDevice) {
- m_renderDevice->RestoreState();
+ m_renderDevice->RestoreState(false);
int32_t size = m_infoStack.GetSize();
if (size <= 0) {
return FWL_Error::IntermediateValueInvalid;
@@ -1356,7 +1356,7 @@ FWL_Error CFX_Graphics::FillPathWithPattern(CFX_Path* path,
m_renderDevice->SetClip_PathFill(path->GetPathData(), (CFX_Matrix*)matrix,
fillMode);
SetDIBitsWithMatrix(&bmp, &pattern->m_matrix);
- m_renderDevice->RestoreState();
+ m_renderDevice->RestoreState(false);
return FWL_Error::Succeeded;
}
@@ -1477,7 +1477,7 @@ FWL_Error CFX_Graphics::FillPathWithShading(CFX_Path* path,
m_renderDevice->SetClip_PathFill(path->GetPathData(), (CFX_Matrix*)matrix,
fillMode);
SetDIBitsWithMatrix(&bmp, matrix);
- m_renderDevice->RestoreState();
+ m_renderDevice->RestoreState(false);
}
return result ? FWL_Error::Succeeded : FWL_Error::PropertyInvalid;
}
« no previous file with comments | « xfa/fxfa/app/xfa_ffwidget.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698