From f5bf5785bcf3026f6432a5a17ec14763c5d9d96e Mon Sep 17 00:00:00 2001 From: halcanary Date: Wed, 4 May 2016 08:42:35 -0700 Subject: experimental/tools/coreGraphicsPdf2png: fix NOTRY=true TBR= Review-Url: https://codereview.chromium.org/1944403002 --- experimental/tools/coreGraphicsPdf2png.cpp | 3 +++ gyp/experimental.gyp | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/experimental/tools/coreGraphicsPdf2png.cpp b/experimental/tools/coreGraphicsPdf2png.cpp index d02e3deffb..a845932616 100644 --- a/experimental/tools/coreGraphicsPdf2png.cpp +++ b/experimental/tools/coreGraphicsPdf2png.cpp @@ -9,9 +9,12 @@ #include "SkBitmap.h" #include "SkCGUtils.h" +#include "SkForceLinking.h" #include "SkImageEncoder.h" #include "SkStream.h" +__SK_FORCE_IMAGE_DECODER_LINKING; + class StdOutWStream : public SkWStream { public: StdOutWStream() : fBytesWritten(0) {} diff --git a/gyp/experimental.gyp b/gyp/experimental.gyp index 1fc86999b6..b67524a916 100644 --- a/gyp/experimental.gyp +++ b/gyp/experimental.gyp @@ -33,7 +33,7 @@ 'type': 'executable', 'include_dirs': [ '../src/core', ], 'sources': [ '../experimental/tools/coreGraphicsPdf2png.cpp', ], - 'dependencies': [ 'skia_lib.gyp:skia_lib', ] + 'dependencies': [ 'skia_lib.gyp:skia_lib', 'libpng.gyp:libpng', ], }, ], }, -- cgit v1.2.3