summaryrefslogtreecommitdiff
path: root/core/fxge/dib/cfx_dibsource.cpp
diff options
context:
space:
mode:
authorNicolas Pena <npm@chromium.org>2017-06-29 17:02:48 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-06-29 21:54:18 +0000
commitcaf6d61fbb38083f213a9d3441e12c5082d3ad3a (patch)
treeddfaf73e97af75ac862dddc34b47603d5492cfa1 /core/fxge/dib/cfx_dibsource.cpp
parentcd984752d05a58c0bd6f8ddd740d5cd4bfca20c6 (diff)
downloadpdfium-caf6d61fbb38083f213a9d3441e12c5082d3ad3a.tar.xz
Move Start to constructor in CFX_Image(Renderer|Transformer)chromium/3145
The bool returned by Start was not being used and the method was always called right after the constructor, so it should be in the constructor. Change-Id: I98abf9f7c11fbe42b3aa15ec5e46731198aa23d5 Reviewed-on: https://pdfium-review.googlesource.com/7151 Commit-Queue: Nicolás Peña <npm@chromium.org> Reviewed-by: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'core/fxge/dib/cfx_dibsource.cpp')
-rw-r--r--core/fxge/dib/cfx_dibsource.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/core/fxge/dib/cfx_dibsource.cpp b/core/fxge/dib/cfx_dibsource.cpp
index deb8e15f49..458baa56ca 100644
--- a/core/fxge/dib/cfx_dibsource.cpp
+++ b/core/fxge/dib/cfx_dibsource.cpp
@@ -1089,7 +1089,6 @@ CFX_RetainPtr<CFX_DIBitmap> CFX_DIBSource::TransformTo(
int* result_top) {
CFX_RetainPtr<CFX_DIBSource> holder(this);
CFX_ImageTransformer transformer(holder, pDestMatrix, 0, nullptr);
- transformer.Start();
transformer.Continue(nullptr);
*result_left = transformer.result().left;
*result_top = transformer.result().top;