RELAND: JPEGCodec{RobustSlow}::Decode: refactor to use unique_ptr.
crrev.com/c/1245467 got reverted due to a silly oversight -- I
have to delete the pointer in the Deleter operator(). Solution
is crrev.com/c/1249481/1..5
Original CL description -------------------------------------
JPEGCodec{RobustSlow}::Decode: refactor to use unique_ptr.
This CL removes the class DecompressDestroyer in favour of
a unique_ptr<> with specific Deleter. Less lines of code.
Functionality covered by gfx_unittest, also under asan bot.
Bug: 868400
Change-Id: I53ff80d4304b02c08719a1b0c5b1175e3a0d061d
Reviewed-on: https://chromium-review.googlesource.com/1249481
Commit-Queue: Daniel Cheng <dcheng@chromium.org>
Reviewed-by:
Daniel Cheng <dcheng@chromium.org>
Cr-Commit-Position: refs/heads/master@{#595271}
Showing
Please register or sign in to comment