diff options
author | tsepez <tsepez@chromium.org> | 2016-05-25 16:16:32 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-05-25 16:16:32 -0700 |
commit | 5ce09684216ed6b74836de9bd056b8f15bd66a4e (patch) | |
tree | 841e23498e3684f4b83062c958169bb05573af7d /core/fpdfapi/fpdf_render | |
parent | 65be4b1818ab99df2bf5b6265604fc25456db49d (diff) | |
download | pdfium-5ce09684216ed6b74836de9bd056b8f15bd66a4e.tar.xz |
Remove CFX_PrivateData from CPDF_Document
Replace it with two generic slots for Links and Codec usage.
Since the codec is at a lower layer than the document, we
don't provide separate get/set methods, since having a
document upon which to call these would be a layering
violation. Do the same for the Links for simplicity.
Review-Url: https://codereview.chromium.org/2005193003
Diffstat (limited to 'core/fpdfapi/fpdf_render')
-rw-r--r-- | core/fpdfapi/fpdf_render/fpdf_render_loadimage.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/fpdfapi/fpdf_render/fpdf_render_loadimage.cpp b/core/fpdfapi/fpdf_render/fpdf_render_loadimage.cpp index 19aeb71e9a..75f6a231a4 100644 --- a/core/fpdfapi/fpdf_render/fpdf_render_loadimage.cpp +++ b/core/fpdfapi/fpdf_render/fpdf_render_loadimage.cpp @@ -355,9 +355,9 @@ int CPDF_DIBSource::ContinueLoadDIBSource(IFX_Pause* pPause) { } } ret = pJbig2Module->StartDecode( - m_pJbig2Context, m_pDocument, m_Width, m_Height, m_pStreamAcc.get(), - m_pGlobalStream.get(), m_pCachedBitmap->GetBuffer(), - m_pCachedBitmap->GetPitch(), pPause); + m_pJbig2Context, m_pDocument->CodecContext(), m_Width, m_Height, + m_pStreamAcc.get(), m_pGlobalStream.get(), + m_pCachedBitmap->GetBuffer(), m_pCachedBitmap->GetPitch(), pPause); if (ret < 0) { m_pCachedBitmap.reset(); m_pGlobalStream.reset(); |