summaryrefslogtreecommitdiff
path: root/core/fxge/cfx_pathdata.h
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-03-15 19:27:17 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-03-15 19:27:17 +0000
commit7d75650672a848428aaadb603b2814d33dfb479f (patch)
tree508d0c992231aa1a5faad16d7ebe1bf1c44c4d78 /core/fxge/cfx_pathdata.h
parent35841fa4e3dbf8f9146f78def048c4a287894a8a (diff)
downloadpdfium-7d75650672a848428aaadb603b2814d33dfb479f.tar.xz
Add a CFX_PathData::AppendRect() variant.chromium/3372
One that takes a CFX_FloatRect instead of LBRT floats. Use it where appropriate. Change-Id: I8ba19e86c61c91d8b4ef685b5cb65c8fb717f013 Reviewed-on: https://pdfium-review.googlesource.com/28581 Reviewed-by: Henrique Nakashima <hnakashima@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'core/fxge/cfx_pathdata.h')
-rw-r--r--core/fxge/cfx_pathdata.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/fxge/cfx_pathdata.h b/core/fxge/cfx_pathdata.h
index d346ba0666..5c2be627bf 100644
--- a/core/fxge/cfx_pathdata.h
+++ b/core/fxge/cfx_pathdata.h
@@ -59,6 +59,7 @@ class CFX_PathData : public Retainable {
bool IsRect(const CFX_Matrix* pMatrix, CFX_FloatRect* rect) const;
void Append(const CFX_PathData* pSrc, const CFX_Matrix* pMatrix);
+ void AppendRect(const CFX_FloatRect& rect);
void AppendRect(float left, float bottom, float right, float top);
void AppendLine(const CFX_PointF& pt1, const CFX_PointF& pt2);
void AppendPoint(const CFX_PointF& pos, FXPT_TYPE type, bool closeFigure);