summaryrefslogtreecommitdiff
path: root/core/fxcrt/fx_random.cpp
diff options
context:
space:
mode:
authorRyan Harrison <rharrison@chromium.org>2017-09-08 10:10:26 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-09-08 15:44:34 +0000
commit808b52ac76bb5d9ee3e6a8371ddab25f62c8ed51 (patch)
treea71d8749c8c9a4a99f509b110ef287321141ab74 /core/fxcrt/fx_random.cpp
parentf76741e65e9947b168f108842b715cdaeb74f4f7 (diff)
downloadpdfium-808b52ac76bb5d9ee3e6a8371ddab25f62c8ed51.tar.xz
Move decompressing of JPX out of Init and into Decode
In the existing implementation of the JPX decoder, Init extracts the header from the image and then immediately decompresses it. This is problematic if it is a very large image that we won't be able to allocate a bitmap for. The code has been changed to instead delay decompression until the Decode method, since things like dest Bitmap generation can be performed using just the header information. There is also a bit of renaming/casting cleanup, because I was having a hard time parsing what was a local vs member variable. BUG=chromium:761005 Change-Id: I55a55c0be2f88a5352a6ca056c2a816137d7c749 Reviewed-on: https://pdfium-review.googlesource.com/13550 Reviewed-by: Henrique Nakashima <hnakashima@chromium.org> Commit-Queue: Ryan Harrison <rharrison@chromium.org>
Diffstat (limited to 'core/fxcrt/fx_random.cpp')
0 files changed, 0 insertions, 0 deletions