summaryrefslogtreecommitdiff
path: root/core/include
diff options
context:
space:
mode:
authorBo Xu <bo_xu@foxitsoftware.com>2014-09-16 13:24:37 -0700
committerBo Xu <bo_xu@foxitsoftware.com>2014-09-16 13:24:37 -0700
commit69dcf148b3755c11d5da47fbee767aa920ee2f58 (patch)
tree94aed55258480846c8f757a9db308a70975c800f /core/include
parent4481496892d3d9555556df54edd6f98e9f63645e (diff)
downloadpdfium-69dcf148b3755c11d5da47fbee767aa920ee2f58.tar.xz
When forcing clear page data, no need to release colorspace when releasing pattern
BUG=414661 R=tsepez@chromium.org Review URL: https://codereview.chromium.org/572853006
Diffstat (limited to 'core/include')
-rw-r--r--core/include/fpdfapi/fpdf_resource.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/include/fpdfapi/fpdf_resource.h b/core/include/fpdfapi/fpdf_resource.h
index a7a644435e..937024c94e 100644
--- a/core/include/fpdfapi/fpdf_resource.h
+++ b/core/include/fpdfapi/fpdf_resource.h
@@ -730,6 +730,7 @@ class CPDF_Pattern : public CFX_Object
public:
virtual ~CPDF_Pattern();
+ void SetForceClear(FX_BOOL bForceClear) { m_bForceClear = bForceClear; }
CPDF_Object* m_pPatternObj;
@@ -741,8 +742,8 @@ public:
CPDF_Document* m_pDocument;
protected:
-
CPDF_Pattern(const CFX_AffineMatrix* pParentMatrix);
+ FX_BOOL m_bForceClear;
};
class CPDF_TilingPattern : public CPDF_Pattern