summaryrefslogtreecommitdiff
path: root/core/fpdfapi/page/cpdf_pageobject.h
diff options
context:
space:
mode:
authorHenrique Nakashima <hnakashima@chromium.org>2018-06-14 16:22:30 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-06-14 16:22:30 +0000
commit27cf78d88fdb44bd246cd17bcc712225388e9134 (patch)
tree437b128710bc065d70d642022483d83b9cc641ef /core/fpdfapi/page/cpdf_pageobject.h
parente16ffd4fc3f286ebfaf7820351d4fee680deca88 (diff)
downloadpdfium-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/page/cpdf_pageobject.h')
-rw-r--r--core/fpdfapi/page/cpdf_pageobject.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/core/fpdfapi/page/cpdf_pageobject.h b/core/fpdfapi/page/cpdf_pageobject.h
index 39e7629541..3fc35aa063 100644
--- a/core/fpdfapi/page/cpdf_pageobject.h
+++ b/core/fpdfapi/page/cpdf_pageobject.h
@@ -65,10 +65,14 @@ class CPDF_PageObject : public CPDF_GraphicStates {
// Get what content stream the object was parsed from in its page. This number
// is the index of the content stream in the "Contents" array, or 0 if there
// is a single content stream. If the object is newly created,
- // kNoContentStream is returned.
+ // |kNoContentStream| is returned.
+ //
// If the object is spread among more than one content stream, this is the
// index of the last stream.
int32_t GetContentStream() const { return m_ContentStream; }
+ void SetContentStream(int32_t new_content_stream) {
+ m_ContentStream = new_content_stream;
+ }
float m_Left;
float m_Right;