aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar halcanary <halcanary@google.com>2016-05-04 08:42:35 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-05-04 08:42:35 -0700
commitf5bf5785bcf3026f6432a5a17ec14763c5d9d96e (patch)
treebb1c4588bca99036d10417c458357c5b5b9adc92
parentfb08327e592a1dd19a0c3107243ccd01f6b7f848 (diff)
experimental/tools/coreGraphicsPdf2png: fix
NOTRY=true TBR= Review-Url: https://codereview.chromium.org/1944403002
-rw-r--r--experimental/tools/coreGraphicsPdf2png.cpp3
-rw-r--r--gyp/experimental.gyp2
2 files changed, 4 insertions, 1 deletions
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', ],
},
],
},