diff options
author | thestig <thestig@chromium.org> | 2016-05-11 18:31:20 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-05-11 18:31:20 -0700 |
commit | 9febfe6373f26d9e59eb1e137b88a2aeff5dc39a (patch) | |
tree | 67564a5e76b0bb9deff988d4d83f3fad76c845b1 /core/fxge/agg | |
parent | f0db33fa39b4497e1b275d0798c1def08741480f (diff) | |
download | pdfium-9febfe6373f26d9e59eb1e137b88a2aeff5dc39a.tar.xz |
Clean up CFX_ImageStretcher.
Review-Url: https://codereview.chromium.org/1968273002
Diffstat (limited to 'core/fxge/agg')
-rw-r--r-- | core/fxge/agg/fx_agg_driver.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/core/fxge/agg/fx_agg_driver.cpp b/core/fxge/agg/fx_agg_driver.cpp index 364185534e..ff254f0200 100644 --- a/core/fxge/agg/fx_agg_driver.cpp +++ b/core/fxge/agg/fx_agg_driver.cpp @@ -1754,11 +1754,10 @@ FX_BOOL CFX_AggDeviceDriver::StretchDIBits(const CFX_DIBSource* pSource, FALSE, m_bRgbByteOrder, alpha_flag, pIccTransform, blend_type); dest_clip.Offset(-dest_rect.left, -dest_rect.top); - CFX_ImageStretcher stretcher; - if (stretcher.Start(&composer, pSource, dest_width, dest_height, dest_clip, - flags)) { - stretcher.Continue(NULL); - } + CFX_ImageStretcher stretcher(&composer, pSource, dest_width, dest_height, + dest_clip, flags); + if (stretcher.Start()) + stretcher.Continue(nullptr); return TRUE; } |