summaryrefslogtreecommitdiff
path: root/core/fxge/cfx_pathdata.h
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-02-15 11:10:16 -0500
committerChromium commit bot <commit-bot@chromium.org>2017-02-15 18:10:40 +0000
commit4093039d19f832173ec58cfd9f2e8ac393a76091 (patch)
treed39987d19bfc1d66aee3c88b58e6b8236c6ec65a /core/fxge/cfx_pathdata.h
parente4602321f3175fa5addb6761d0e94f5c2fc93d0c (diff)
downloadpdfium-4093039d19f832173ec58cfd9f2e8ac393a76091.tar.xz
Cleanup GetZeroAreaPath methodchromium/3014
This CL simplifies some of the logic in GetZeroAreaPath. It also removes the side effect of resetting the object device matrix. Change-Id: Id1e355bde811341c5ceab0331fbe64b1aed895d5 Reviewed-on: https://pdfium-review.googlesource.com/2712 Reviewed-by: Nicolás Peña <npm@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'core/fxge/cfx_pathdata.h')
-rw-r--r--core/fxge/cfx_pathdata.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/core/fxge/cfx_pathdata.h b/core/fxge/cfx_pathdata.h
index 7d5e6e28c6..14a8d992b9 100644
--- a/core/fxge/cfx_pathdata.h
+++ b/core/fxge/cfx_pathdata.h
@@ -47,10 +47,11 @@ class CFX_PathData {
void Transform(const CFX_Matrix* pMatrix);
bool IsRect() const;
- bool GetZeroAreaPath(CFX_PathData* NewPath,
- CFX_Matrix* pMatrix,
- bool& bThin,
- bool bAdjust) const;
+ bool GetZeroAreaPath(const CFX_Matrix* pMatrix,
+ bool bAdjust,
+ CFX_PathData* NewPath,
+ bool* bThin,
+ bool* setIdentity) const;
bool IsRect(const CFX_Matrix* pMatrix, CFX_FloatRect* rect) const;
void Append(const CFX_PathData& data);