diff options
author | Nicolas Pena <npm@chromium.org> | 2017-02-02 14:32:21 -0500 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-02-02 20:07:07 +0000 |
commit | 4bd0d99c11102514fb43328b67b7674165888619 (patch) | |
tree | 4e502ba15f2279bd563e270d620472e37a2a5c24 /core/fpdfapi/edit/cpdf_pagecontentgenerator.h | |
parent | 5c19c3597b2865c0b5bc2c61fc5911cbd5d6ba90 (diff) | |
download | pdfium-4bd0d99c11102514fb43328b67b7674165888619.tar.xz |
Add CPDF_PageContentGenerator::ProcessPath supporting path construction
See Table 4.9 for path construction operators. Ignoring v, y, because those can
be replaced with the more powerful c operator. The code added will be called by
public methods that do not exist yet.
BUG=pdfium:661
Change-Id: I9a1ad3fd0a601e4e3a292b55f3e5708fe0c9c8fb
Reviewed-on: https://pdfium-review.googlesource.com/2495
Commit-Queue: Nicolás Peña <npm@chromium.org>
Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'core/fpdfapi/edit/cpdf_pagecontentgenerator.h')
-rw-r--r-- | core/fpdfapi/edit/cpdf_pagecontentgenerator.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/fpdfapi/edit/cpdf_pagecontentgenerator.h b/core/fpdfapi/edit/cpdf_pagecontentgenerator.h index ac06dcb554..c74652e206 100644 --- a/core/fpdfapi/edit/cpdf_pagecontentgenerator.h +++ b/core/fpdfapi/edit/cpdf_pagecontentgenerator.h @@ -16,6 +16,7 @@ class CPDF_Document; class CPDF_ImageObject; class CPDF_Page; class CPDF_PageObject; +class CPDF_PathObject; class CPDF_PageContentGenerator { public: @@ -25,6 +26,10 @@ class CPDF_PageContentGenerator { void GenerateContent(); private: + friend class cpdf_pagecontentgenerator_ProcessRect_Test; + friend class cpdf_pagecontentgenerator_ProcessPath_Test; + + void ProcessPath(CFX_ByteTextBuf* buf, CPDF_PathObject* pPathObj); void ProcessImage(CFX_ByteTextBuf* buf, CPDF_ImageObject* pImageObj); CFX_ByteString RealizeResource(uint32_t dwResourceObjNum, const CFX_ByteString& bsType); |