Index: fpdfsdk/fpdfformfill.cpp |
diff --git a/fpdfsdk/fpdfformfill.cpp b/fpdfsdk/fpdfformfill.cpp |
index 9f4e2944ca4f680a1e31d0ec4ec78ae6aefbc4a7..153c1057a576b9e4836c6ac7d2e22ab514c537fb 100644 |
--- a/fpdfsdk/fpdfformfill.cpp |
+++ b/fpdfsdk/fpdfformfill.cpp |
@@ -342,11 +342,9 @@ static void FFLCommon(FPDF_FORMHANDLE hHandle, |
FX_RECT clip(start_x, start_y, start_x + size_x, start_y + size_y); |
+ std::unique_ptr<CFX_FxgeDevice> pDevice(new CFX_FxgeDevice); |
#ifdef _SKIA_SUPPORT_ |
- std::unique_ptr<CFX_SkiaDevice> pDevice(new CFX_SkiaDevice()); |
pDevice->AttachRecorder(static_cast<SkPictureRecorder*>(recorder)); |
-#else |
- std::unique_ptr<CFX_FxgeDevice> pDevice(new CFX_FxgeDevice); |
#endif |
pDevice->Attach((CFX_DIBitmap*)bitmap); |
pDevice->SaveState(); |