summaryrefslogtreecommitdiffstats
path: root/WebCore/platform/image-encoders
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/platform/image-encoders')
-rw-r--r--WebCore/platform/image-encoders/skia/PNGImageEncoder.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/WebCore/platform/image-encoders/skia/PNGImageEncoder.cpp b/WebCore/platform/image-encoders/skia/PNGImageEncoder.cpp
index aa20c62..19363c8 100644
--- a/WebCore/platform/image-encoders/skia/PNGImageEncoder.cpp
+++ b/WebCore/platform/image-encoders/skia/PNGImageEncoder.cpp
@@ -129,10 +129,7 @@ bool PNGImageEncoder::encode(const unsigned char* input, const IntSize& size,
return false;
}
- png_struct* pngPtr = png_create_write_struct(PNG_LIBPNG_VER_STRING,
- png_voidp_NULL,
- png_error_ptr_NULL,
- png_error_ptr_NULL);
+ png_struct* pngPtr = png_create_write_struct(PNG_LIBPNG_VER_STRING, 0, 0, 0);
if (!pngPtr)
return false;