diff options
author | Henrique Nakashima <hnakashima@chromium.org> | 2018-06-14 16:22:30 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-06-14 16:22:30 +0000 |
commit | 27cf78d88fdb44bd246cd17bcc712225388e9134 (patch) | |
tree | 437b128710bc065d70d642022483d83b9cc641ef /core/fpdfapi/edit/cpdf_pagecontentgenerator.h | |
parent | e16ffd4fc3f286ebfaf7820351d4fee680deca88 (diff) | |
download | pdfium-27cf78d88fdb44bd246cd17bcc712225388e9134.tar.xz |
Rewrite content stream regeneration.
Loop through the dirty page objects and streams and regenerate all
streams that are dirty.
Bug: pdfium:1051
Change-Id: I837b5a7cd9542b7777e7c7ae7ac9cc75f69f30b5
Reviewed-on: https://pdfium-review.googlesource.com/34330
Commit-Queue: Henrique Nakashima <hnakashima@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 | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/core/fpdfapi/edit/cpdf_pagecontentgenerator.h b/core/fpdfapi/edit/cpdf_pagecontentgenerator.h index 04adf1c1d2..13b8431f18 100644 --- a/core/fpdfapi/edit/cpdf_pagecontentgenerator.h +++ b/core/fpdfapi/edit/cpdf_pagecontentgenerator.h @@ -35,6 +35,7 @@ class CPDF_PageContentGenerator { private: friend class CPDF_PageContentGeneratorTest; + void ProcessPageObject(std::ostringstream* buf, CPDF_PageObject* pPageObj); void ProcessPath(std::ostringstream* buf, CPDF_PathObject* pPathObj); void ProcessImage(std::ostringstream* buf, CPDF_ImageObject* pImageObj); void ProcessGraphics(std::ostringstream* buf, CPDF_PageObject* pPageObj); @@ -49,9 +50,6 @@ class CPDF_PageContentGenerator { std::map<int32_t, std::unique_ptr<std::ostringstream>> GenerateModifiedStreams(); - // Generate new stream data with all dirty page objects. - bool GenerateStreamWithNewObjects(std::ostringstream* buf); - // Add buffer as a stream in page's 'Contents' void UpdateContentStreams( std::map<int32_t, std::unique_ptr<std::ostringstream>>* buf); |