summaryrefslogtreecommitdiff
path: root/core/fxge/skia
diff options
context:
space:
mode:
authorcaryclark <caryclark@google.com>2016-05-12 09:55:00 -0700
committerCommit bot <commit-bot@chromium.org>2016-05-12 09:55:00 -0700
commitfc1136525693c4aad2c803ca14bd25ff4a658f37 (patch)
tree6d1f5ec588ec95fec6e62dab4d53ab92e0ace62a /core/fxge/skia
parent77f45f2376e0baf39144db553c0ede6a5d3844c8 (diff)
downloadpdfium-fc1136525693c4aad2c803ca14bd25ff4a658f37.tar.xz
put change to CFX_ImageStretcher in Skia as well
R=tsepez@chromium.org,thestig@chromium.org Review-Url: https://codereview.chromium.org/1975823002
Diffstat (limited to 'core/fxge/skia')
-rw-r--r--core/fxge/skia/fx_skia_device.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/core/fxge/skia/fx_skia_device.cpp b/core/fxge/skia/fx_skia_device.cpp
index 89a7902d51..4180d58e21 100644
--- a/core/fxge/skia/fx_skia_device.cpp
+++ b/core/fxge/skia/fx_skia_device.cpp
@@ -1031,11 +1031,10 @@ FX_BOOL CFX_SkiaDeviceDriver::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;
}