summaryrefslogtreecommitdiff
path: root/core/src/fpdfapi/fpdf_render/render_int.h
diff options
context:
space:
mode:
authorBo Xu <bo_xu@foxitsoftware.com>2014-09-03 13:30:43 -0700
committerBo Xu <bo_xu@foxitsoftware.com>2014-09-03 13:30:43 -0700
commitbb3c1a29348511afdc140cccdf5b1f5d0292794c (patch)
tree6af3eb03b3928e9bb12033ad9a87565ce81bd7d9 /core/src/fpdfapi/fpdf_render/render_int.h
parent5f8a503b2a8701c5c4f6e0aadf334affcdd03d28 (diff)
downloadpdfium-bb3c1a29348511afdc140cccdf5b1f5d0292794c.tar.xz
Allocate m_pCompData when |m_nComponents| is updated.
When |m_nComponents| is changed from loading stream information, previously allocated memory that depends on |m_nComponents| needes to be freed and allocated again to enforce memory size consistency. BUG=409695 R=tsepez@chromium.org Review URL: https://codereview.chromium.org/528163002
Diffstat (limited to 'core/src/fpdfapi/fpdf_render/render_int.h')
-rw-r--r--core/src/fpdfapi/fpdf_render/render_int.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/src/fpdfapi/fpdf_render/render_int.h b/core/src/fpdfapi/fpdf_render/render_int.h
index 8fb4aca1c5..f9a04a99a4 100644
--- a/core/src/fpdfapi/fpdf_render/render_int.h
+++ b/core/src/fpdfapi/fpdf_render/render_int.h
@@ -412,6 +412,7 @@ public:
FX_BOOL m_bHasMask;
protected:
FX_BOOL LoadColorInfo(CPDF_Dictionary* pFormResources, CPDF_Dictionary* pPageResources);
+ DIB_COMP_DATA* GetDecodeAndMaskArray(FX_BOOL& bDefaultDecode, FX_BOOL& bColorKey);
CPDF_DIBSource* LoadMask(FX_DWORD& MatteColor);
CPDF_DIBSource* LoadMaskDIB(CPDF_Stream* pMask);
void LoadJpxBitmap();